committed by
styve Lioumba
parent
1dc1109482
commit
4fb600b0cb
16
jest.config.js
Normal file
16
jest.config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
preset: 'jest-preset-angular',
|
||||
rootDir: '.',
|
||||
setupFilesAfterEnv: ['<rootDir>/src/setup-jest.ts'],
|
||||
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/dist/'],
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest', // Only transform .ts files
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'/node_modules/(?!flat)/', // Exclude modules except 'flat' from transformation
|
||||
],
|
||||
moduleNameMapper: {
|
||||
'^@app/(.*)$': '<rootDir>/src/app/$1',
|
||||
'^@env/(.*)$': '<rootDir>/src/environments/$1',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user