2024-08-01 18:51:25 +00:00
|
|
|
module.exports = {
|
|
|
|
moduleDirectories: ['node_modules', 'release/app/node_modules', 'src'],
|
|
|
|
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
|
|
|
|
moduleNameMapper: {
|
|
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
|
|
|
'<rootDir>/.erb/mocks/fileMock.js',
|
|
|
|
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
|
|
|
|
},
|
2024-08-01 21:31:36 +00:00
|
|
|
setupFiles: [
|
|
|
|
'./.erb/scripts/check-build-exists.ts',
|
|
|
|
'<rootDir>/setupTests.js',
|
|
|
|
],
|
2024-08-01 18:51:25 +00:00
|
|
|
testEnvironment: 'jsdom',
|
|
|
|
testEnvironmentOptions: {
|
|
|
|
url: 'http://localhost/',
|
|
|
|
},
|
|
|
|
testPathIgnorePatterns: ['release/app/dist', '.erb/dll'],
|
|
|
|
transform: {
|
|
|
|
'\\.(ts|tsx|js|jsx)$': 'ts-jest',
|
|
|
|
},
|
|
|
|
};
|