2022-10-08 11:22:44 +00:00
|
|
|
// to run tests with ES6 module, node must run with "--experimental-vm-modules", or see Makefile's "test-frontend" for reference
|
2021-04-08 10:41:57 +00:00
|
|
|
export default {
|
2021-08-17 05:32:48 +00:00
|
|
|
rootDir: 'web_src',
|
2021-10-19 07:23:58 +00:00
|
|
|
setupFilesAfterEnv: ['jest-extended/all'],
|
2022-08-23 12:58:04 +00:00
|
|
|
testEnvironment: 'jest-environment-jsdom',
|
2021-08-17 05:32:48 +00:00
|
|
|
testMatch: ['<rootDir>/**/*.test.js'],
|
2021-04-08 10:41:57 +00:00
|
|
|
testTimeout: 20000,
|
2021-11-16 08:16:05 +00:00
|
|
|
transform: {
|
2022-05-10 19:44:36 +00:00
|
|
|
'\\.svg$': '<rootDir>/js/testUtils/jestRawLoader.js',
|
2021-11-16 08:16:05 +00:00
|
|
|
},
|
2022-10-08 11:22:44 +00:00
|
|
|
setupFiles: [
|
|
|
|
'./js/testUtils/jestSetup.js', // prepare global variables used by our code (eg: window.config)
|
|
|
|
],
|
2021-04-08 10:41:57 +00:00
|
|
|
verbose: false,
|
|
|
|
};
|