diff options
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index 34d47acc43..2767c1b7ae 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,4 @@ +// to run tests with ES6 module, node must run with "--experimental-vm-modules", or see Makefile's "test-frontend" for reference export default { rootDir: 'web_src', setupFilesAfterEnv: ['jest-extended/all'], @@ -7,6 +8,8 @@ export default { transform: { '\\.svg$': '<rootDir>/js/testUtils/jestRawLoader.js', }, + setupFiles: [ + './js/testUtils/jestSetup.js', // prepare global variables used by our code (eg: window.config) + ], verbose: false, }; - |