2024-01-10 21:58:43 +00:00
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
2022-08-31 20:09:48 +00:00
|
|
|
const reporters = ['default'];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
|
|
modulePaths: [
|
|
|
|
'test',
|
|
|
|
],
|
|
|
|
modulePathIgnorePatterns: ['dist'],
|
|
|
|
preset: 'ts-jest',
|
|
|
|
reporters,
|
|
|
|
testEnvironment: 'jsdom',
|
|
|
|
testEnvironmentOptions: {
|
|
|
|
url: 'http://localhost/',
|
|
|
|
},
|
|
|
|
testMatch: ['**/test/*.test.ts'],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.[jt]s$': 'ts-jest',
|
|
|
|
'\\.(pug)$': 'jest-transform-pug',
|
|
|
|
'.+\\.(css)$': 'jest-transform-stub',
|
2023-10-10 10:16:45 +00:00
|
|
|
'^.+\\.svg$': 'jest-transform-stub',
|
2022-08-31 20:09:48 +00:00
|
|
|
},
|
|
|
|
};
|