|
14 | 14 | "type": "git",
|
15 | 15 | "url": "http://github.com/graphql/graphql-js.git"
|
16 | 16 | },
|
17 |
| - "options": { |
18 |
| - "mocha": "--check-leaks --full-trace --timeout 15000 src/**/__tests__/**/*-test.js" |
19 |
| - }, |
20 | 17 | "scripts": {
|
21 | 18 | "watch": "babel-node ./resources/watch.js",
|
22 | 19 | "test": "npm run lint && npm run check && npm run testonly",
|
23 | 20 | "test:ci": "npm run lint && npm run check && npm run testonly:coveralls",
|
24 |
| - "t": "babel-node ./node_modules/.bin/_mocha --require ./resources/mocha-bootload", |
25 |
| - "testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha", |
26 |
| - "testonly:cover": "babel-node ./node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha", |
27 |
| - "testonly:coveralls": "babel-node ./node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | coveralls", |
| 21 | + "t": "mocha --require babel-register --require babel-polyfill", |
| 22 | + "testonly": "mocha --require babel-register --require babel-polyfill --check-leaks --full-trace --timeout 15000 src/**/__tests__/**/*-test.js", |
| 23 | + "testonly:cover": "nyc --reporter html --reporter text-summary -- npm run testonly", |
| 24 | + "testonly:coveralls": "nyc --reporter text-lcov npm run testonly | coveralls", |
28 | 25 | "lint": "eslint --rulesdir ./resources/lint src || (printf '\\033[33mTry: \\033[7m npm run lint -- --fix \\033[0m\\n' && exit 1)",
|
29 | 26 | "benchmark": "node ./resources/benchmark.js",
|
30 | 27 | "prettier": "prettier --write 'src/**/*.js'",
|
|
53 | 50 | "babel-plugin-transform-es2015-modules-commonjs": "6.26.0",
|
54 | 51 | "babel-plugin-transform-flow-strip-types": "6.22.0",
|
55 | 52 | "babel-plugin-transform-object-rest-spread": "6.26.0",
|
| 53 | + "babel-polyfill": "^6.26.0", |
56 | 54 | "babel-preset-env": "^1.5.2",
|
| 55 | + "babel-register": "^6.26.0", |
57 | 56 | "beautify-benchmark": "0.2.4",
|
58 | 57 | "benchmark": "2.1.4",
|
59 | 58 | "chai": "4.1.2",
|
|
63 | 62 | "eslint-plugin-flowtype": "2.46.3",
|
64 | 63 | "eslint-plugin-prettier": "2.6.0",
|
65 | 64 | "flow-bin": "0.71.0",
|
66 |
| - "isparta": "4.0.0", |
67 | 65 | "mocha": "5.1.1",
|
| 66 | + "nyc": "^11.7.1", |
68 | 67 | "prettier": "1.12.1",
|
69 | 68 | "sane": "2.5.0"
|
70 | 69 | }
|
|
0 commit comments