14 lines
358 B
JavaScript
14 lines
358 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "jsdom",
|
|
testMatch: [
|
|
"<rootDir>/src/**/__tests__/**/*.(ts|tsx)",
|
|
"<rootDir>/src/**/*.(test|spec).(ts|tsx)",
|
|
],
|
|
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
|
|
moduleNameMapper: {
|
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
},
|
|
};
|