mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
480 B
JavaScript
17 lines
480 B
JavaScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
setupFiles: ["<rootDir>/src/test/setup-tests.ts"],
|
|
// TODO: update to app dir
|
|
moduleNameMapper: {
|
|
"@lib/(.*)": "<rootDir>/src/lib/$1",
|
|
"@components/(.*)": "<rootDir>/src/app/components/$1",
|
|
"\\.(css)$": "identity-obj-proxy"
|
|
},
|
|
testPathIgnorePatterns: ["/node_modules/", "/.next/"],
|
|
transform: {
|
|
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
|
}
|
|
}
|