Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #692 from rashley-iqt/mocha-fixes
Browse files Browse the repository at this point in the history
chore(deps): Update mocha for deprecation
  • Loading branch information
rashley-iqt authored Feb 24, 2020
2 parents f5057f2 + 61c0bdf commit e7b1dd0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .mocha

This file was deleted.

21 changes: 21 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"diff": true,
"extension": ["js", "jsx"],
"opts": false,
"package": "./package.json",
"reporter": "spec",
"slow": 75,
"timeout": 2000,
"ui": "bdd",
"watch-files": ["lib/**/*.js", "test/**/*.js"],
"watch-ignore": ["lib/vendor"],
"recursive": true,
"exit": true,
"ignore":["node_modules"],
"require":["@babel/core",
"@babel/register",
"jsdom",
"./src/test/test-dom.js",
"./src/test/ignore-styles.js"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"start": "REACT_APP_VERSION=$npm_package_version PORT=5000 react-scripts start",
"build": "REACT_APP_VERSION=$npm_package_version react-scripts build",
"coverage": "nyc report --reporter=text-lcov > coverage/coverage.lcov && codecov",
"test": "NODE_ENV=test NODE_PATH=./src nyc mocha --opts ./.mocha --exit --recursive 'src/**/*.test.js*'",
"test": "NODE_ENV=test NODE_PATH=./src nyc mocha src/**/*.test.js*",
"eject": "react-scripts eject",
"deploy": "gh-pages -d build",
"deploy-experimental": "gh-pages -r https://github.com/rashley-iqt/CRviz -d build",
Expand Down

0 comments on commit e7b1dd0

Please sign in to comment.