* chore: move to swc * chore: fix tax rate tests * chore: undo failed test * chore: fix unit tests script * chore: use node 20 * Update scripts/run-workspace-unit-tests-in-chunks.sh
24 lines
635 B
JavaScript
24 lines
635 B
JavaScript
module.exports = {
|
|
moduleNameMapper: {
|
|
"^@models": "<rootDir>/src/models",
|
|
"^@services": "<rootDir>/src/services",
|
|
"^@repositories": "<rootDir>/src/repositories",
|
|
},
|
|
transform: {
|
|
"^.+\\.[jt]s$": [
|
|
"@swc/jest",
|
|
{
|
|
jsc: {
|
|
parser: { syntax: "typescript", decorators: true },
|
|
transform: { decoratorMetadata: true },
|
|
},
|
|
},
|
|
],
|
|
},
|
|
testEnvironment: `node`,
|
|
moduleFileExtensions: [`js`, `ts`],
|
|
modulePathIgnorePatterns: ["dist/"],
|
|
setupFiles: ["<rootDir>/integration-tests/setup-env.js"],
|
|
setupFilesAfterEnv: ["<rootDir>/integration-tests/setup.js"],
|
|
}
|