add tests infrastructure

This commit is contained in:
Emily
2024-08-29 16:31:44 +02:00
parent 9b9ed3e9ad
commit 79309cc537
5 changed files with 2469 additions and 4 deletions

13
broker/jest.config.js Normal file
View File

@@ -0,0 +1,13 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
module.exports = {
testEnvironment: "node",
transform: {
"^.+.tsx?$": ["ts-jest",{}],
},
moduleNameMapper: {
'@services/(.*)': '<rootDir>/../shared/services/$1',
'@data/(.*)': '<rootDir>/../shared/data/$1',
'@functions/(.*)': '<rootDir>/../shared/functions/$1',
'@schema/(.*)': '<rootDir>/../shared/schema/$1',
}
};