Skip to content

Commit ddd0d65

Browse files
test: Fixes broken tests
1 parent 1510b0d commit ddd0d65

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"presets" : [
33
["es2015", { "modules": false }]
44
],
5+
"env": {
6+
"test": {
7+
"plugins": ["transform-es2015-modules-commonjs"]
8+
}
9+
},
510
"plugins": [
611
"transform-class-properties",
712
"transform-object-rest-spread"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@
4141
"devDependencies": {
4242
"babel-core": "^6.24.0",
4343
"babel-eslint": "^7.2.1",
44-
"babel-jest": "^20.0.1",
44+
"babel-jest": "^20.0.3",
4545
"babel-loader": "^7.0.0",
4646
"babel-plugin-transform-class-properties": "^6.23.0",
47+
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
4748
"babel-plugin-transform-object-rest-spread": "^6.23.0",
4849
"babel-preset-es2015": "^6.24.0",
4950
"commitizen": "^2.9.6",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ babel-helpers@^6.24.1:
420420
babel-runtime "^6.22.0"
421421
babel-template "^6.24.1"
422422

423-
babel-jest@^20.0.1, babel-jest@^20.0.3:
423+
babel-jest@^20.0.3:
424424
version "20.0.3"
425425
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-20.0.3.tgz#e4a03b13dc10389e140fc645d09ffc4ced301671"
426426
dependencies:
@@ -987,9 +987,9 @@ camelcase@^4.1.0:
987987
version "4.1.0"
988988
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
989989

990-
caporal@^0.6.0:
991-
version "0.6.0"
992-
resolved "https://registry.yarnpkg.com/caporal/-/caporal-0.6.0.tgz#90ef6bed5c5940f6d913136488a4575373030306"
990+
caporal@^0.7.0:
991+
version "0.7.0"
992+
resolved "https://registry.yarnpkg.com/caporal/-/caporal-0.7.0.tgz#3beaaf816f9a5b34f267deb1f92f3e156a1be2f8"
993993
dependencies:
994994
bluebird "^3.4.7"
995995
chalk "^1.1.3"

0 commit comments

Comments
 (0)