Skip to content

Commit 4eccad7

Browse files
committed
Add jest config
1 parent 49a59f5 commit 4eccad7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

jest.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
preset: "jest-preset-typescript",
3+
moduleFileExtensions: ["ts", "js"],
4+
transform: {
5+
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
6+
"\\.(ts)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
7+
},
8+
testRegex: "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
9+
testPathIgnorePatterns: ["\\.snap$", "<rootDir>/node_modules/"],
10+
cacheDirectory: ".jest/cache"
11+
};

0 commit comments

Comments
 (0)