From d62b6c31d83113e39a60a4d70cec57006fe29ba7 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Tue, 26 Nov 2024 10:46:01 -0300 Subject: [PATCH] angular: adjust jest.conf --- generators/angular/templates/jest.conf.js.ejs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generators/angular/templates/jest.conf.js.ejs b/generators/angular/templates/jest.conf.js.ejs index 4b876b35e520..ad6f7bbaedab 100644 --- a/generators/angular/templates/jest.conf.js.ejs +++ b/generators/angular/templates/jest.conf.js.ejs @@ -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: ['', `/${baseUrl}`], modulePaths: [`/${baseUrl}`],