mocha 10.7.0 → 10.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,8 @@
7
7
  * @module
8
8
  */
9
9
 
10
- exports.init = require('./init');
11
-
12
- // default command
13
- exports.run = require('./run');
10
+ module.exports = {
11
+ init: require('./init'),
12
+ // default command
13
+ run: require('./run'),
14
+ }
package/lib/cli/run.js CHANGED
@@ -24,7 +24,7 @@ const {
24
24
  } = require('./run-helpers');
25
25
  const {ONE_AND_DONES, ONE_AND_DONE_ARGS} = require('./one-and-dones');
26
26
  const debug = require('debug')('mocha:cli:run');
27
- const defaults = require('../mocharc');
27
+ const defaults = require('../mocharc.json');
28
28
  const {types, aliases} = require('./run-option-metadata');
29
29
 
30
30
  /**
@@ -259,7 +259,7 @@ class SerializableEvent {
259
259
  });
260
260
 
261
261
  // mutates the object
262
- breakCircularDeps(result);
262
+ breakCircularDeps(result.error);
263
263
 
264
264
  const pairs = Object.keys(result).map(key => [result, key]);
265
265
 
package/mocha.js CHANGED
@@ -1,4 +1,4 @@
1
- // mocha@10.7.0 in javascript ES2018
1
+ // mocha@10.7.3 in javascript ES2018
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -19174,7 +19174,7 @@
19174
19174
  };
19175
19175
 
19176
19176
  var name = "mocha";
19177
- var version = "10.7.0";
19177
+ var version = "10.7.3";
19178
19178
  var homepage = "https://mochajs.org/";
19179
19179
  var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
19180
19180
  var require$$17 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "10.7.0",
3
+ "version": "10.7.3",
4
4
  "type": "commonjs",
5
5
  "description": "simple, flexible, fun test framework",
6
6
  "keywords": [
@@ -43,12 +43,54 @@
43
43
  "node": ">= 14.0.0"
44
44
  },
45
45
  "scripts": {
46
- "lint": "npx eslint . --max-warnings 0",
47
- "prepublishOnly": "nps test clean build",
48
- "start": "nps",
49
- "test": "nps test",
50
- "version": "nps version",
51
- "test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
46
+ "build": "rollup -c ./rollup.config.js",
47
+ "clean": "rimraf mocha.js mocha.js.map",
48
+ "docs-clean": "rimraf docs/_site docs/api",
49
+ "docs-watch": "eleventy --serve",
50
+ "docs:api": "jsdoc -c jsdoc.conf.json",
51
+ "docs:site": "eleventy",
52
+ "docs": "run-s docs-clean docs:*",
53
+ "format:eslint": "eslint --fix . 'bin/*'",
54
+ "format:prettier": "prettier --write '!(package*).json' '.*.json' 'lib/**/*.json' '*.yml'",
55
+ "format": "run-s format:*",
56
+ "lint:knip": "knip --cache",
57
+ "lint:code": "eslint . 'bin/*' --max-warnings 0",
58
+ "lint:markdown": "markdownlint '*.md' 'docs/**/*.md' '.github/*.md' 'lib/**/*.md' 'test/**/*.md' 'example/**/*.md' -i CHANGELOG.md",
59
+ "lint": "run-p lint:*",
60
+ "prepublishOnly": "run-s clean build",
61
+ "test-browser-run": "cross-env NODE_PATH=. karma start ./karma.conf.js --single-run",
62
+ "test-browser:reporters:bdd": "cross-env MOCHA_TEST=bdd npm run -s test-browser-run",
63
+ "test-browser:reporters:esm": "cross-env MOCHA_TEST=esm npm run -s test-browser-run",
64
+ "test-browser:reporters:qunit": "cross-env MOCHA_TEST=qunit npm run -s test-browser-run",
65
+ "test-browser:reporters:tdd": "cross-env MOCHA_TEST=tdd npm run -s test-browser-run",
66
+ "test-browser:reporters": "run-s test-browser:reporters:*",
67
+ "test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.js",
68
+ "test-browser": "run-s clean build test-browser:*",
69
+ "test-coverage-clean": "rimraf .nyc_output coverage",
70
+ "test-coverage-generate": "nyc report --reporter=lcov --reporter=text",
71
+ "test-node-run-only": "nyc --no-clean --reporter=json node bin/mocha.js",
72
+ "test-node-run": "nyc --no-clean --reporter=json node bin/mocha.js --forbid-only",
73
+ "test-node:integration": "run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 'test/integration/**/*.spec.js'",
74
+ "test-node:interfaces:bdd": "npm run -s test-node-run -- --ui bdd test/interfaces/bdd.spec",
75
+ "test-node:interfaces:exports": "npm run -s test-node-run -- --ui exports test/interfaces/exports.spec",
76
+ "test-node:interfaces:qunit": "npm run -s test-node-run -- --ui qunit test/interfaces/qunit.spec",
77
+ "test-node:interfaces:tdd": "npm run -s test-node-run -- --ui tdd test/interfaces/tdd.spec",
78
+ "test-node:interfaces": "run-p test-node:interfaces:*",
79
+ "test-node:jsapi": "node test/jsapi/index.js",
80
+ "test-node:only:bddRequire": "npm run -s test-node-run-only -- --ui qunit test/only/bdd-require.spec --no-parallel",
81
+ "test-node:only:globalBdd": "npm run -s test-node-run-only -- --ui bdd test/only/global/bdd.spec --no-parallel",
82
+ "test-node:only:globalQunit": "npm run -s test-node-run-only -- --ui qunit test/only/global/qunit.spec --no-parallel",
83
+ "test-node:only:globalTdd": "npm run -s test-node-run-only -- --ui tdd test/only/global/tdd.spec --no-parallel",
84
+ "test-node:only": "run-p test-node:only:*",
85
+ "test-node:reporters": "npm run -s test-node-run -- 'test/reporters/*.spec.js'",
86
+ "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",
87
+ "test-node:unit": "npm run -s test-node-run -- 'test/unit/*.spec.js' 'test/node-unit/**/*.spec.js'",
88
+ "test-node": "run-s test-coverage-clean test-node:* test-coverage-generate",
89
+ "test-smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js",
90
+ "test": "run-s lint test-node test-browser",
91
+ "version:linkify-changelog": "node scripts/linkify-changelog.mjs",
92
+ "version:update-authors": "node scripts/update-authors.js",
93
+ "version": "run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md"
52
94
  },
53
95
  "dependencies": {
54
96
  "ansi-colors": "^4.1.3",
@@ -81,12 +123,8 @@
81
123
  "@rollup/plugin-json": "^4.1.0",
82
124
  "@rollup/plugin-multi-entry": "^4.0.1",
83
125
  "@rollup/plugin-node-resolve": "^13.1.3",
84
- "assetgraph-builder": "^9.0.0",
85
- "autoprefixer": "^9.8.6",
86
- "canvas": "^2.11.2",
87
126
  "chai": "^4.3.4",
88
127
  "coffeescript": "^2.6.1",
89
- "coveralls": "^3.1.1",
90
128
  "cross-env": "^7.0.2",
91
129
  "eslint": "^8.56.0",
92
130
  "fail-on-errors-webpack-plugin": "^3.0.0",
@@ -99,7 +137,7 @@
99
137
  "karma-mocha": "^2.0.1",
100
138
  "karma-mocha-reporter": "^2.2.5",
101
139
  "karma-sauce-launcher": "^4.3.6",
102
- "lint-staged": "^10.2.11",
140
+ "knip": "^5.27.0",
103
141
  "markdown-it": "^12.3.2",
104
142
  "markdown-it-anchor": "^8.4.1",
105
143
  "markdown-it-attrs": "^4.1.3",
@@ -108,7 +146,7 @@
108
146
  "markdown-toc": "^1.2.0",
109
147
  "markdownlint-cli": "^0.30.0",
110
148
  "needle": "^2.5.0",
111
- "nps": "^5.10.0",
149
+ "npm-run-all2": "^6.2.0",
112
150
  "nyc": "^15.1.0",
113
151
  "pidtree": "^0.5.0",
114
152
  "prettier": "^2.4.1",
@@ -123,13 +161,11 @@
123
161
  "rollup-plugin-visualizer": "^5.6.0",
124
162
  "sinon": "^9.0.3",
125
163
  "strip-ansi": "^6.0.0",
126
- "svgo": "^1.3.2",
127
164
  "unexpected": "^11.14.0",
128
165
  "unexpected-eventemitter": "^2.2.0",
129
166
  "unexpected-map": "^2.0.0",
130
167
  "unexpected-set": "^3.0.0",
131
168
  "unexpected-sinon": "^10.11.2",
132
- "update-notifier": "^4.1.0",
133
169
  "uslug": "^1.0.4",
134
170
  "webpack": "^5.67.0",
135
171
  "webpack-cli": "^4.9.1"