try to adjust jest config

This commit is contained in:
Ulf Gebhardt 2022-01-25 21:48:45 +01:00
parent 2a48133790
commit 6f6ba3a2e9
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -9,10 +9,13 @@ module.exports = async () => {
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/(.*)': '<rootDir>/../database/src/$1',
/*
'@dbTools/(.*)':
process.env.NODE_ENV === 'development'
? '<rootDir>/../database/src/$1'
: '<rootDir>/../database/build/src/$1',
*/
},
}
}