2023-11-27 15:57:51 +01:00
|
|
|
const { pathsToModuleNameMapper } = require('ts-jest');
|
2020-10-06 09:44:27 +02:00
|
|
|
const { compilerOptions } = require('./tsconfig');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
preset: 'jest-preset-angular',
|
2020-11-19 12:40:18 +01:00
|
|
|
setupFilesAfterEnv: ['<rootDir>/src/testing/setup.ts'],
|
2020-10-06 09:44:27 +02:00
|
|
|
testMatch: ['**/?(*.)test.ts'],
|
|
|
|
collectCoverageFrom: [
|
|
|
|
'src/**/*.{ts,html}',
|
2020-11-19 12:40:18 +01:00
|
|
|
'!src/testing/**/*',
|
2020-10-06 09:44:27 +02:00
|
|
|
],
|
2023-11-27 15:57:51 +01:00
|
|
|
transformIgnorePatterns: ['node_modules/(?!@stencil|@angular|@ionic|@moodlehq|@ngx-translate|swiper)'],
|
2023-11-14 15:55:51 +01:00
|
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/src/' }),
|
2020-10-06 09:44:27 +02:00
|
|
|
};
|