mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
13 lines
555 B
JavaScript
13 lines
555 B
JavaScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
verbose: true,
|
|
preset: 'ts-jest',
|
|
collectCoverage: true,
|
|
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**'],
|
|
moduleNameMapper: {
|
|
'@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',
|
|
},
|
|
}
|