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