diff --git a/jest.js b/jest.js index 7fb2da5..ce0acdf 100644 --- a/jest.js +++ b/jest.js @@ -9,31 +9,13 @@ module.exports = { 'plugin:jest-formatting/recommended' ], env: { - 'jest/globals': false + 'jest/globals': true }, rules: { // Allow padding before beforeAll and beforeEach blocks as we often declare variables there to be initialised within the block 'jest-formatting/padding-around-before-all-blocks': 'off', - 'jest-formatting/padding-around-before-each-blocks': 'off' - }, - overrides: [ - { - files: [ - 'setupTests.js', - 'test-setup-*.browser.js', - '**/*.spec.js', - '**/__mocks__/**', - '**/__test_helpers__/**', - '**/__tests__/**', - '**/__TESTS__/**' - ], - env: { - 'jest/globals': true - }, - rules: { - // Allow inline require() when using doMock conventions - 'global-require': 'off', - } - } - ] + 'jest-formatting/padding-around-before-each-blocks': 'off', + // Allow inline require() when using doMock conventions + 'global-require': 'off', + } } \ No newline at end of file