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