mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update backend/jest.config.js
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
parent
e39d51d335
commit
69d983b891
@ -6,6 +6,7 @@ module.exports = {
|
|||||||
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**'],
|
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**'],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'@entity/(.*)': '<rootDir>/../database/build/entity/$1',
|
'@entity/(.*)': '<rootDir>/../database/build/entity/$1',
|
||||||
|
// This is hack to fix a problem with the library `ts-mysql-migrate` which does differentiate between its ts/js state
|
||||||
'@dbTools/(.*)': process.env.NODE_ENV === 'development' ? '<rootDir>/../database/src/$1' : '<rootDir>/../database/build/src/$1',
|
'@dbTools/(.*)': process.env.NODE_ENV === 'development' ? '<rootDir>/../database/src/$1' : '<rootDir>/../database/build/src/$1',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user