Skip to content

Commit 620414a

Browse files
committed
update test env
1 parent 58e8842 commit 620414a

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.babelrc

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
{
2-
"presets": [
3-
["env", {
4-
"modules": false
5-
}],
6-
"react"
7-
]
2+
"env": {
3+
"production": {
4+
"presets": [
5+
["env", {
6+
"modules": false
7+
}],
8+
"react"
9+
]
10+
},
11+
"test": {
12+
"presets": ["env", "react"]
13+
}
14+
}
815
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"publish": "np",
3030
"start": "npm run storybook",
3131
"storybook": "start-storybook -p 6006",
32-
"test": "jest",
32+
"test": "BABEL_ENV=test jest",
3333
"test:watch": "jest --watch"
3434
},
3535
"dependencies": {

0 commit comments

Comments
 (0)