Skip to content

Commit

Permalink
update mocha example with yml configuration. (#11214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt committed Mar 20, 2020
1 parent c14d983 commit c25447c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions examples/with-mocha/.mocharc.yml
@@ -0,0 +1,3 @@
file:
- mocha.setup.js
require: '@babel/register'
9 changes: 5 additions & 4 deletions examples/with-mocha/package.json
Expand Up @@ -2,7 +2,7 @@
"name": "with-mocha",
"version": "1.0.0",
"scripts": {
"test": "NODE_ENV=test mocha",
"test": "cross-env NODE_ENV=test mocha",
"dev": "next",
"build": "next build",
"start": "next start"
Expand All @@ -15,9 +15,10 @@
"devDependencies": {
"@babel/core": "^7.0.1",
"@babel/register": "^7.0.0",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"cross-env": "7.0.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"expect.js": "^0.3.1",
"mocha": "^5.2.0"
"mocha": "^7.1.1"
}
}
2 changes: 0 additions & 2 deletions examples/with-mocha/test/mocha.opts

This file was deleted.

0 comments on commit c25447c

Please sign in to comment.