diff --git a/CHANGELOG.md b/CHANGELOG.md index 66c3c810..44ad9958 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Added - New Rules: `node/prefer-promises/dns` and `node/prefer-promises/fs`. These rules disallow the callback API in favor of promise API for the dns and fs modules. ([257](https://github.com/Shopify/eslint-plugin-shopify/pull/257)) +- New Rule: `jest/no-mocks-import` This rule disallows manually importing from `__mocks__`. ## [28.0.0] - 2019-04-26 diff --git a/lib/config/rules/jest.js b/lib/config/rules/jest.js index cb25ded8..6e56a711 100644 --- a/lib/config/rules/jest.js +++ b/lib/config/rules/jest.js @@ -61,4 +61,6 @@ module.exports = { 'jest/require-tothrow-message': 'error', // Disallow empty titles 'jest/no-empty-title': 'error', + // Disallow manually importing from `__mocks__` + 'jest/no-mocks-import': 'error', };