25 lines
729 B
JavaScript
25 lines
729 B
JavaScript
export default {
|
|
setupFilesAfterEnv: ['./tests/init.js'],
|
|
moduleNameMapper: {
|
|
'\\.(css|scss|wasm|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|tgs)$':
|
|
'<rootDir>/tests/staticFileMock.js',
|
|
'^@teact$': '<rootDir>/src/lib/teact/teact.ts',
|
|
'^@teact/(.*)$': '<rootDir>/src/lib/teact/$1',
|
|
},
|
|
testPathIgnorePatterns: [
|
|
'<rootDir>/tests/playwright/',
|
|
'<rootDir>/node_modules/',
|
|
'<rootDir>/legacy_notes_and_workbook/',
|
|
'<rootDir>/client/src/stylesheets/',
|
|
],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'\\.(jsx?|tsx?)$': 'babel-jest',
|
|
'\\.txt$': '@glen/jest-raw-loader',
|
|
},
|
|
globals: {
|
|
APP_REVISION: 'jest-test',
|
|
APP_VERSION: '0.0.1',
|
|
},
|
|
};
|