-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (23 loc) · 777 Bytes
/
jest.config.js
File metadata and controls
26 lines (23 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// /* eslint-disable */
// const { pathsToModuleNameMapper } = require("ts-jest");
// const { compilerOptions } = require("./tsconfig");
// /** @type {import('ts-jest').JestConfigWithTsJest} */
// module.exports = {
// preset: "ts-jest",
// testEnvironment: "jsdom",
// modulePaths: [compilerOptions.baseUrl],
// moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths ?? {}),
// transform: {
// ".+\\.(css|less|sass|scss|png|jpg|gif|ttf|woff|woff2|svg)$":
// "jest-transform-stub",
// },
// };
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
testEnvironment: "node",
transform: {
".+\\.(css|less|sass|scss|png|jpg|gif|ttf|woff|woff2|svg)$":
"jest-transform-stub",
"^.+.tsx?$": ["ts-jest",{}],
},
};