Skip to content

Commit 734f252

Browse files
committed
Jest Babel support added
- GQL unnecessary cast removed
1 parent 47f2ffa commit 734f252

File tree

5 files changed

+1166
-62
lines changed

5 files changed

+1166
-62
lines changed

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {presets: ['@babel/preset-env']}

jestconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2+
"preset": "ts-jest",
23
"transform": {
3-
"^.+\\.(t|j)sx?$": "ts-jest"
4+
"^.+\\.(t|j)sx?$": "ts-jest",
5+
"^.+\\.(js|jsx)$": "babel-jest"
46
},
57
"testMatch": [
68
"**/__test__/**/?(*.)+(spec|test).[jt]s?(x)"

0 commit comments

Comments
 (0)