Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv committed Feb 20, 2017
1 parent 2ba002a commit 5c8c9ae
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 113 deletions.
6 changes: 5 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
},
"test": {
"plugins": [
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": false }]
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": true }],
"babel-plugin-rewire",
["transform-define", {
"__TEST__": "true"
}]
]
}
}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build-docs": "./scripts/update-gh-pages.sh",
"serve-docs": "./node_modules/.bin/gitbook serve",
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --recursive --require ./test/setup.js test/**/*.spec.js",
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --recursive --require ./test/setup.js test/**/*.js",
"test-all": "npm run lint && npm run test && npm run build",
"test-watch": "npm test -- --watch",
"test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --require ./test/setup.js ./test/e2e.js",
Expand Down Expand Up @@ -107,9 +107,10 @@
"babel-loader": "6.2.10",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-dev-expression": "0.2.1",
"babel-plugin-rewire": "0.1.22",
"babel-plugin-rewire": "1.0.0",
"babel-plugin-tcomb": "0.3.24",
"babel-plugin-transform-class-properties": "6.22.0",
"babel-plugin-transform-define": "1.2.0",
"babel-plugin-transform-es2015-classes": "6.22.0",
"babel-plugin-webpack-loaders": "0.8.0",
"babel-polyfill": "6.22.0",
Expand Down
Loading

0 comments on commit 5c8c9ae

Please sign in to comment.