forked from Crowdfunding-DApp/stellar-raise-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.json
More file actions
28 lines (28 loc) · 750 Bytes
/
jest.config.json
File metadata and controls
28 lines (28 loc) · 750 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
27
28
{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"setupFilesAfterEnv": ["./jest.setup.js"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx"],
"transform": {
"^.+\\.(ts|tsx|js|jsx)$": ["ts-jest", {
"tsconfig": {
"jsx": "react-jsx",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"module": "commonjs",
"types": ["jest", "node", "@testing-library/jest-dom"]
}
}]
},
"testMatch": [
"**/*.test.(ts|tsx|js|jsx)"
],
"transformIgnorePatterns": [
"node_modules/(?!(@?react|react-dom)/)"
],
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"setupFilesAfterEnv": ["<rootDir>/jest.setup.ts"]
}