diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-12-11 12:18:42 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-12-11 13:06:19 +0100 |
commit | 2c1d4343311d2e77e615ee37df5bcce720ed9c85 (patch) | |
tree | 83668051ef117dd26f2e1a54b974d7ff4e8a0d05 /jest.config.js | |
parent | 635686263006d906de981c5be97a1f2f2747eb1f (diff) | |
download | gitlab-ce-2c1d4343311d2e77e615ee37df5bcce720ed9c85.tar.gz |
Automatically restore all Jest mocks after each test
see https://jestjs.io/docs/en/configuration.html#restoremocks-boolean
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index 8e4f207af64..23554a117f6 100644 --- a/jest.config.js +++ b/jest.config.js @@ -25,4 +25,5 @@ module.exports = { modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'], reporters, setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js', + restoreMocks: true, }; |