diff --git a/backend/jest.config.js b/backend/jest.config.js index 9e6ca4602..79add8789 100644 --- a/backend/jest.config.js +++ b/backend/jest.config.js @@ -6,6 +6,7 @@ module.exports = { collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**'], moduleNameMapper: { '@entity/(.*)': '/../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' ? '/../database/src/$1' : '/../database/build/src/$1', }, }