2021-04-09 12:29:59 +02:00
|
|
|
module.exports = {
|
|
|
|
setupFilesAfterEnv: ['./tests/init.js'],
|
|
|
|
moduleNameMapper: {
|
2021-08-16 13:21:20 +02:00
|
|
|
'\\.(css|scss|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|tgs)$':
|
2021-04-09 12:29:59 +02:00
|
|
|
'<rootDir>/tests/staticFileMock.js',
|
|
|
|
},
|
|
|
|
testPathIgnorePatterns: [
|
2022-05-03 15:17:05 +02:00
|
|
|
'<rootDir>/tests/playwright/',
|
2021-04-09 12:29:59 +02:00
|
|
|
'<rootDir>/node_modules/',
|
|
|
|
'<rootDir>/legacy_notes_and_workbook/',
|
|
|
|
'<rootDir>/client/src/stylesheets/',
|
|
|
|
],
|
2021-08-16 13:21:20 +02:00
|
|
|
testEnvironment: 'jsdom',
|
2021-10-22 12:49:27 +02:00
|
|
|
transform: {
|
|
|
|
'\\.(jsx?|tsx?)$': 'babel-jest',
|
|
|
|
'\\.txt$': 'jest-raw-loader',
|
|
|
|
},
|
2022-04-26 17:08:41 +02:00
|
|
|
globals: {
|
|
|
|
APP_REVISION: "jest-test",
|
|
|
|
},
|
2021-04-09 12:29:59 +02:00
|
|
|
};
|