test(rewrite): Forgot the Jest config file!

This commit is contained in:
tecc 2023-09-19 23:45:43 +02:00
parent de9f5c1c06
commit 29fe79bdf7
No known key found for this signature in database
GPG Key ID: 622EEC5BAE5EBD3A

View File

@ -0,0 +1,16 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
testEnvironment: 'node',
testMatch: ["<rootDir>/test/**/*.ts"],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: "<rootDir>/test/tsconfig.json"
},
],
},
moduleNameMapper: {
'^#self/(.*)$': '<rootDir>/src/$1'
}
};