2022-10-08 07:22:44 -04: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 06:41:57 -04:00
|
|
|
export default {
|
2021-08-17 01:32:48 -04:00
|
|
|
rootDir: 'web_src',
|
2021-10-19 03:23:58 -04:00
|
|
|
setupFilesAfterEnv: ['jest-extended/all'],
|
2022-08-23 08:58:04 -04:00
|
|
|
testEnvironment: 'jest-environment-jsdom',
|
2021-08-17 01:32:48 -04:00
|
|
|
testMatch: ['<rootDir>/**/*.test.js'],
|
2021-04-08 06:41:57 -04:00
|
|
|
testTimeout: 20000,
|
2021-11-16 03:16:05 -05:00
|
|
|
transform: {
|
2022-05-10 15:44:36 -04:00
|
|
|
'\\.svg$': '<rootDir>/js/testUtils/jestRawLoader.js',
|
2021-11-16 03:16:05 -05:00
|
|
|
},
|
2022-10-08 07:22:44 -04:00
|
|
|
setupFiles: [
|
|
|
|
'./js/testUtils/jestSetup.js', // prepare global variables used by our code (eg: window.config)
|
|
|
|
],
|
2021-04-08 06:41:57 -04:00
|
|
|
verbose: false,
|
|
|
|
};
|