From 69d983b891f14bb6cc5668c986f4979c8f6ee8c1 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 29 Dec 2021 23:16:47 +0100 Subject: [PATCH] Update backend/jest.config.js Co-authored-by: Ulf Gebhardt --- backend/jest.config.js | 1 + 1 file changed, 1 insertion(+) 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', }, }