Skip to content

Commit 2ecf3c0

Browse files
committed
Explicitly add babel-jest config
1 parent 924f0f8 commit 2ecf3c0

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

package.json

+7-13
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@
2727
"url": "git+https://github.com/springload/react-accessible-accordion.git"
2828
},
2929
"jest": {
30-
"setupFiles": [
31-
"./src/setupTests.js"
32-
],
30+
"setupFiles": ["./src/setupTests.js"],
3331
"setupTestFrameworkScriptFile": "./src/setupTestFramework.js",
34-
"testPathIgnorePatterns": [
35-
"/node_modules/",
36-
"/dist/"
37-
]
32+
"testPathIgnorePatterns": ["/node_modules/", "/dist/"],
33+
"transform": {
34+
"^.+\\.jsx?$": "babel-jest"
35+
}
3836
},
3937
"keywords": [
4038
"react",
@@ -44,9 +42,7 @@
4442
"accessible",
4543
"accessibility"
4644
],
47-
"authors": [
48-
"Vincent Audebert <[email protected]>"
49-
],
45+
"authors": ["Vincent Audebert <[email protected]>"],
5046
"contributors": [
5147
{
5248
"name": "Mitch Ryan",
@@ -127,9 +123,7 @@
127123
},
128124
"lint-staged": {
129125
"linters": {
130-
"*.{js,jsx}": [
131-
"eslint"
132-
]
126+
"*.{js,jsx}": ["eslint"]
133127
}
134128
}
135129
}

0 commit comments

Comments
 (0)