mirror of https://github.com/MaxLeiter/Drift
server: modify jest config to ignore node_modules, dist directories
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
pull/73/head
parent
76a2b50c6b
commit
f6cd545ca7
@ -1,10 +1,11 @@
|
||||
/** @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"
|
||||
},
|
||||
};
|
||||
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/"]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue