Comparing version 10.7.0 to 10.7.3
@@ -10,5 +10,6 @@ 'use strict'; | ||
exports.init = require('./init'); | ||
// default command | ||
exports.run = require('./run'); | ||
module.exports = { | ||
init: require('./init'), | ||
// default command | ||
run: require('./run'), | ||
} |
@@ -27,3 +27,3 @@ 'use strict'; | ||
const debug = require('debug')('mocha:cli:run'); | ||
const defaults = require('../mocharc'); | ||
const defaults = require('../mocharc.json'); | ||
const {types, aliases} = require('./run-option-metadata'); | ||
@@ -30,0 +30,0 @@ |
@@ -262,3 +262,3 @@ /** | ||
// mutates the object | ||
breakCircularDeps(result); | ||
breakCircularDeps(result.error); | ||
@@ -265,0 +265,0 @@ const pairs = Object.keys(result).map(key => [result, key]); |
{ | ||
"name": "mocha", | ||
"version": "10.7.0", | ||
"version": "10.7.3", | ||
"type": "commonjs", | ||
@@ -46,8 +46,50 @@ "description": "simple, flexible, fun test framework", | ||
"scripts": { | ||
"lint": "npx eslint . --max-warnings 0", | ||
"prepublishOnly": "nps test clean build", | ||
"start": "nps", | ||
"test": "nps test", | ||
"version": "nps version", | ||
"test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js" | ||
"build": "rollup -c ./rollup.config.js", | ||
"clean": "rimraf mocha.js mocha.js.map", | ||
"docs-clean": "rimraf docs/_site docs/api", | ||
"docs-watch": "eleventy --serve", | ||
"docs:api": "jsdoc -c jsdoc.conf.json", | ||
"docs:site": "eleventy", | ||
"docs": "run-s docs-clean docs:*", | ||
"format:eslint": "eslint --fix . 'bin/*'", | ||
"format:prettier": "prettier --write '!(package*).json' '.*.json' 'lib/**/*.json' '*.yml'", | ||
"format": "run-s format:*", | ||
"lint:knip": "knip --cache", | ||
"lint:code": "eslint . 'bin/*' --max-warnings 0", | ||
"lint:markdown": "markdownlint '*.md' 'docs/**/*.md' '.github/*.md' 'lib/**/*.md' 'test/**/*.md' 'example/**/*.md' -i CHANGELOG.md", | ||
"lint": "run-p lint:*", | ||
"prepublishOnly": "run-s clean build", | ||
"test-browser-run": "cross-env NODE_PATH=. karma start ./karma.conf.js --single-run", | ||
"test-browser:reporters:bdd": "cross-env MOCHA_TEST=bdd npm run -s test-browser-run", | ||
"test-browser:reporters:esm": "cross-env MOCHA_TEST=esm npm run -s test-browser-run", | ||
"test-browser:reporters:qunit": "cross-env MOCHA_TEST=qunit npm run -s test-browser-run", | ||
"test-browser:reporters:tdd": "cross-env MOCHA_TEST=tdd npm run -s test-browser-run", | ||
"test-browser:reporters": "run-s test-browser:reporters:*", | ||
"test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.js", | ||
"test-browser": "run-s clean build test-browser:*", | ||
"test-coverage-clean": "rimraf .nyc_output coverage", | ||
"test-coverage-generate": "nyc report --reporter=lcov --reporter=text", | ||
"test-node-run-only": "nyc --no-clean --reporter=json node bin/mocha.js", | ||
"test-node-run": "nyc --no-clean --reporter=json node bin/mocha.js --forbid-only", | ||
"test-node:integration": "run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 'test/integration/**/*.spec.js'", | ||
"test-node:interfaces:bdd": "npm run -s test-node-run -- --ui bdd test/interfaces/bdd.spec", | ||
"test-node:interfaces:exports": "npm run -s test-node-run -- --ui exports test/interfaces/exports.spec", | ||
"test-node:interfaces:qunit": "npm run -s test-node-run -- --ui qunit test/interfaces/qunit.spec", | ||
"test-node:interfaces:tdd": "npm run -s test-node-run -- --ui tdd test/interfaces/tdd.spec", | ||
"test-node:interfaces": "run-p test-node:interfaces:*", | ||
"test-node:jsapi": "node test/jsapi/index.js", | ||
"test-node:only:bddRequire": "npm run -s test-node-run-only -- --ui qunit test/only/bdd-require.spec --no-parallel", | ||
"test-node:only:globalBdd": "npm run -s test-node-run-only -- --ui bdd test/only/global/bdd.spec --no-parallel", | ||
"test-node:only:globalQunit": "npm run -s test-node-run-only -- --ui qunit test/only/global/qunit.spec --no-parallel", | ||
"test-node:only:globalTdd": "npm run -s test-node-run-only -- --ui tdd test/only/global/tdd.spec --no-parallel", | ||
"test-node:only": "run-p test-node:only:*", | ||
"test-node:reporters": "npm run -s test-node-run -- 'test/reporters/*.spec.js'", | ||
"test-node:requires": "npm run -s test-node-run -- --require coffeescript/register --require test/require/a.js --require test/require/b.coffee --require test/require/c.js --require test/require/d.coffee test/require/require.spec.js", | ||
"test-node:unit": "npm run -s test-node-run -- 'test/unit/*.spec.js' 'test/node-unit/**/*.spec.js'", | ||
"test-node": "run-s test-coverage-clean test-node:* test-coverage-generate", | ||
"test-smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js", | ||
"test": "run-s lint test-node test-browser", | ||
"version:linkify-changelog": "node scripts/linkify-changelog.mjs", | ||
"version:update-authors": "node scripts/update-authors.js", | ||
"version": "run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md" | ||
}, | ||
@@ -85,8 +127,4 @@ "dependencies": { | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"assetgraph-builder": "^9.0.0", | ||
"autoprefixer": "^9.8.6", | ||
"canvas": "^2.11.2", | ||
"chai": "^4.3.4", | ||
"coffeescript": "^2.6.1", | ||
"coveralls": "^3.1.1", | ||
"cross-env": "^7.0.2", | ||
@@ -104,3 +142,3 @@ "eslint": "^8.56.0", | ||
"karma-sauce-launcher": "^4.3.6", | ||
"lint-staged": "^10.2.11", | ||
"knip": "^5.27.0", | ||
"markdown-it": "^12.3.2", | ||
@@ -114,3 +152,3 @@ "markdown-it-anchor": "^8.4.1", | ||
"needle": "^2.5.0", | ||
"nps": "^5.10.0", | ||
"npm-run-all2": "^6.2.0", | ||
"nyc": "^15.1.0", | ||
@@ -130,3 +168,2 @@ "pidtree": "^0.5.0", | ||
"strip-ansi": "^6.0.0", | ||
"svgo": "^1.3.2", | ||
"unexpected": "^11.14.0", | ||
@@ -137,3 +174,2 @@ "unexpected-eventemitter": "^2.2.0", | ||
"unexpected-sinon": "^10.11.2", | ||
"update-notifier": "^4.1.0", | ||
"uslug": "^1.0.4", | ||
@@ -140,0 +176,0 @@ "webpack": "^5.67.0", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2122977
54
30520