Skip to content

Commit

Permalink
Update mocha & chai (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Jun 24, 2020
1 parent ebbe5e2 commit e07735f
Show file tree
Hide file tree
Showing 3 changed files with 469 additions and 68 deletions.
4 changes: 4 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
throw-deprecation: true
check-leaks: true
require:
- '@babel/register'
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@
"README.md",
"LICENSE"
],
"options": {
"mocha": "src/**/__tests__/**/*.js"
},
"scripts": {
"prepublish": "./resources/prepublish.sh",
"prettier": "prettier --write --list-different .",
"prettier:check": "prettier --check .",
"test": "npm run lint && npm run check && npm run testonly && npm run prettier:check",
"testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha",
"testonly": "mocha src/**/__tests__/**/*.js",
"lint": "eslint src",
"check": "flow check",
"build": "rm -rf lib/* && babel src --ignore __tests__ --out-dir lib && npm run build:flow",
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
"cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha"
"cover": "isparta cover --root src --report html mocha src/**/__tests__/**/*.js",
"cover:lcov": "isparta cover --root src --report lcovonly mocha src/**/__tests__/**/*.js"
},
"peerDependencies": {
"graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
Expand All @@ -45,16 +42,17 @@
"@babel/node": "7.10.3",
"@babel/plugin-transform-flow-strip-types": "7.10.1",
"@babel/preset-env": "7.10.2",
"@babel/register": "7.10.3",
"babel-eslint": "10.1.0",
"chai": "4.1.2",
"chai": "4.2.0",
"coveralls": "3.0.2",
"eslint": "^5.5.0",
"eslint-plugin-babel": "^5.2.0",
"eslint-plugin-flowtype": "^2.50.0",
"flow-bin": "0.127.0",
"graphql": "^14.1.1",
"isparta": "4.1.0",
"mocha": "^5.2.0",
"mocha": "8.0.1",
"prettier": "2.0.5"
}
}
Loading

0 comments on commit e07735f

Please sign in to comment.