How to use ESLint with Jest

后端 未结 9 1692
滥情空心
滥情空心 2020-12-07 11:56

I\'m attempting to use the ESLint linter with the Jest testing framework.

Jest tests run with some globals like jest, which I\'ll need to tell the lin

9条回答
  •  [愿得一人]
    2020-12-07 12:12

    In your .eslintignore file add the following value:

    **/__tests__/
    

    This should ignore all instances of the __tests__ directory and their children.

提交回复
热议问题