Skip to content

Commit cf0fccc

Browse files
Unit test cases - React testing library
1 parent 2ee9034 commit cf0fccc

29 files changed

Lines changed: 35870 additions & 26320 deletions

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
// Other configuration above...
3+
4+
// Add the next three options if using TypeScript
5+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
6+
preset: "ts-jest",
7+
roots: ["<rootDir>/src"],
8+
transform: {
9+
"^.+\\.[t|j]sx?$": "ts-jest",
10+
"^.+\\.svg?$": "<rootDir>/svgTransform.js"
11+
},
12+
"testEnvironment": "jsdom",
13+
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
14+
};

0 commit comments

Comments
 (0)