Skip to content

Commit

Permalink
Merge pull request #3862 from NoelDeMartin/MOBILE-3947
Browse files Browse the repository at this point in the history
MOBILE-3947: Fix tests configuration
  • Loading branch information
crazyserver authored Nov 28, 2023
2 parents af215a7 + b0f8f73 commit d2fa4e6
Show file tree
Hide file tree
Showing 18 changed files with 507 additions and 1,152 deletions.
12 changes: 2 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig');

module.exports = {
Expand All @@ -9,17 +9,9 @@ module.exports = {
'src/**/*.{ts,html}',
'!src/testing/**/*',
],
transform: {
'^.+\\.(ts|html)$': 'ts-jest',
},
transformIgnorePatterns: ['node_modules/(?!@awesome-cordova-plugins|@ionic/core|@stencil/core|ionicons|@moodlehq/ionic-native-push)'],
transformIgnorePatterns: ['node_modules/(?!@stencil|@angular|@ionic|@moodlehq|@ngx-translate|swiper)'],
moduleNameMapper: {
...pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/src/' }),
'^!raw-loader!.*': 'jest-raw-loader',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.test.json',
},
},
};
Loading

0 comments on commit d2fa4e6

Please sign in to comment.