1 | const config = {
|
2 | roots: ["<rootDir>/tests"],
|
3 | transform: {
|
4 | "^.+\\.tsx?$": "ts-jest",
|
5 | },
|
6 | preset: "ts-jest",
|
7 | testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
|
8 | moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "d.ts"],
|
9 | moduleNameMapper: {
|
10 | "^.+\\.(css|less|scss)$": "identity-obj-proxy",
|
11 | },
|
12 | testEnvironment: "jsdom",
|
13 | };
|
14 | module.exports = config;
|