Commit 2c1d4343 authored by Winnie Hellmann's avatar Winnie Hellmann

Automatically restore all Jest mocks after each test

see https://jestjs.io/docs/en/configuration.html#restoremocks-boolean
parent 63568626
......@@ -25,4 +25,5 @@ module.exports = {
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment