Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-12-11 14:18:42 +0300
committerWinnie Hellmann <winnie@gitlab.com>2018-12-11 15:06:19 +0300
commit2c1d4343311d2e77e615ee37df5bcce720ed9c85 (patch)
tree83668051ef117dd26f2e1a54b974d7ff4e8a0d05 /jest.config.js
parent635686263006d906de981c5be97a1f2f2747eb1f (diff)
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.js1
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,
};