Skip to content

Commit

Permalink
Use mocha --require
Browse files Browse the repository at this point in the history
  • Loading branch information
timdp committed Dec 17, 2017
1 parent cdd53fd commit cd22665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.1",
"babel-register": "^6.24.1",
"chai": "^4.0.2",
"chai-as-promised": "^7.0.0",
"coveralls": "^3.0.0",
Expand All @@ -56,10 +56,10 @@
"build": "yarn run clean && babel src --out-dir lib",
"test": "yarn run test:lint && yarn run test:cover",
"test:lint": "standard",
"test:unit": "mocha --compilers js:babel-register test/lib/setup.js test/**/*.spec.js",
"test:unit": "mocha --require babel-core/register test/lib/setup.js test/**/*.spec.js",
"test:cover": "nyc yarn run test:unit",
"test:ci": "yarn run test:ci:cover && yarn run test:ci:report",
"test:ci:cover": "nyc mocha --reporter mocha-junit-reporter --compilers js:babel-register test/lib/setup.js test/**/*.spec.js",
"test:ci:cover": "nyc mocha --reporter mocha-junit-reporter --require babel-core/register test/lib/setup.js test/**/*.spec.js",
"test:ci:report": "nyc report --reporter text-lcov | coveralls",
"dev": "babel src --out-dir lib --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ babel-preset-env@^1.5.1:
invariant "^2.2.2"
semver "^5.3.0"

babel-register@^6.24.1, babel-register@^6.26.0:
babel-register@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071"
dependencies:
Expand Down

0 comments on commit cd22665

Please sign in to comment.