f6cd545ca7
without this, invoking `jest` would cause this warning: jest-haste-map: Haste module naming collision: sequelize-typescript-starter The following files share their name; please adjust your hasteImpl: * <rootDir>/package.json * <rootDir>/dist/package.json
11 lines
360 B
JavaScript
11 lines
360 B
JavaScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
setupFiles: ["<rootDir>/test/setup-tests.ts"],
|
|
moduleNameMapper: {
|
|
"@lib/(.*)": "<rootDir>/src/lib/$1",
|
|
"@routes/(.*)": "<rootDir>/src/routes/$1"
|
|
},
|
|
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/dist/"]
|
|
}
|