Skip to content

Commit

Permalink
angular: adjust jest.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 26, 2024
1 parent 91b3e25 commit d62b6c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generators/angular/templates/jest.conf.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ const { pathsToModuleNameMapper } = require('ts-jest');
const {
compilerOptions: { paths = {}, baseUrl = './' },
} = require('./tsconfig.json');
const environment = require('./webpack/environment');

module.exports = {
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$|dayjs/esm<% if (applicationTypeGateway && microfrontend) { %>|@angular-architects/module-federation-runtime<% } %>)'],
resolver: 'jest-preset-angular/build/resolvers/ng-jest-resolver.js',
globals: {
...environment,
__VERSION__: 'test',
},
roots: ['<rootDir>', `<rootDir>/${baseUrl}`],
modulePaths: [`<rootDir>/${baseUrl}`],
Expand Down

0 comments on commit d62b6c3

Please sign in to comment.