2022-11-14 01:28:40 -08:00
|
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
|
|
module.exports = {
|
|
|
|
preset: "ts-jest",
|
|
|
|
testEnvironment: "node",
|
2023-02-26 14:44:32 -08:00
|
|
|
setupFiles: ["<rootDir>/src/test/setup-tests.ts"],
|
2023-02-23 20:35:25 -08:00
|
|
|
// TODO: update to app dir
|
2022-11-14 01:28:40 -08:00
|
|
|
moduleNameMapper: {
|
|
|
|
"@lib/(.*)": "<rootDir>/src/lib/$1",
|
2023-02-26 14:44:32 -08:00
|
|
|
"@components/(.*)": "<rootDir>/src/app/components/$1",
|
|
|
|
"\\.(css)$": "identity-obj-proxy"
|
2022-11-14 01:28:40 -08:00
|
|
|
},
|
2023-02-26 14:44:32 -08:00
|
|
|
testPathIgnorePatterns: ["/node_modules/", "/.next/"],
|
|
|
|
transform: {
|
|
|
|
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
|
|
|
}
|
2022-11-14 01:28:40 -08:00
|
|
|
}
|