mocha 6.0.0-1 → 6.0.0
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.
- package/CHANGELOG.md +38 -0
- package/bin/mocha +79 -45
- package/lib/browser/growl.js +3 -2
- package/lib/cli/node-flags.js +21 -0
- package/lib/cli/options.js +44 -13
- package/lib/cli/run-helpers.js +19 -10
- package/lib/cli/run-option-metadata.js +4 -0
- package/lib/cli/run.js +12 -8
- package/lib/errors.js +16 -14
- package/lib/growl.js +3 -2
- package/lib/interfaces/bdd.js +3 -1
- package/lib/interfaces/common.js +7 -6
- package/lib/interfaces/exports.js +1 -1
- package/lib/interfaces/qunit.js +3 -1
- package/lib/interfaces/tdd.js +3 -1
- package/lib/mocha.js +61 -27
- package/lib/reporters/base.js +5 -2
- package/lib/reporters/doc.js +9 -4
- package/lib/reporters/dot.js +11 -5
- package/lib/reporters/html.js +11 -5
- package/lib/reporters/json-stream.js +9 -4
- package/lib/reporters/json.js +11 -5
- package/lib/reporters/landing.js +10 -4
- package/lib/reporters/list.js +13 -6
- package/lib/reporters/markdown.js +9 -4
- package/lib/reporters/min.js +5 -2
- package/lib/reporters/nyan.js +11 -5
- package/lib/reporters/progress.js +7 -3
- package/lib/reporters/spec.js +15 -7
- package/lib/reporters/tap.js +13 -6
- package/lib/reporters/xunit.js +16 -9
- package/lib/runnable.js +50 -6
- package/lib/runner.js +187 -188
- package/lib/stats-collector.js +17 -15
- package/lib/suite.js +239 -26
- package/lib/test.js +3 -2
- package/lib/utils.js +256 -72
- package/mocha.js +1029 -458
- package/package.json +19 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mocha",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "simple, flexible, fun test framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mocha",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"amsul <reach@amsul.ca>",
|
|
33
33
|
"Anders Olsen Sandvik <Andersos@users.noreply.github.com>",
|
|
34
34
|
"Andreas Brekken <andreas@opuno.com>",
|
|
35
|
+
"Andreas Lind <andreaslindpetersen@gmail.com>",
|
|
35
36
|
"Andreas Lind Petersen <andreas@one.com>",
|
|
36
37
|
"Andrew Krawchyk <903716+akrawchyk@users.noreply.github.com>",
|
|
37
38
|
"Andrew Nesbitt <andrewnez@gmail.com>",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"Angelica Valenta <angelicavalenta@gmail.com>",
|
|
42
43
|
"Anis Safine <anis.safine.ext@francetv.fr>",
|
|
43
44
|
"Anish Karandikar <anishkny@gmail.com>",
|
|
45
|
+
"Anna Henningsen <github@addaleax.net>",
|
|
44
46
|
"Anthony <keppi@o2.pl>",
|
|
45
47
|
"Anton <anton.redfox@gmail.com>",
|
|
46
48
|
"anton <anton.valickij@gmail.com>",
|
|
@@ -87,6 +89,7 @@
|
|
|
87
89
|
"Charles Merriam <charles.merriam@gmail.com>",
|
|
88
90
|
"Charles Samborski <demurgos@demurgos.net>",
|
|
89
91
|
"Charlie Rudolph <charles.w.rudolph@gmail.com>",
|
|
92
|
+
"Chen Yangjian <252317+cyjake@users.noreply.github.com>",
|
|
90
93
|
"Chris <chrisleck@users.noreply.github.com>",
|
|
91
94
|
"Chris Buckley <chris@cmbuckley.co.uk>",
|
|
92
95
|
"Chris Lamb <chris@chris-lamb.co.uk>",
|
|
@@ -98,6 +101,7 @@
|
|
|
98
101
|
"claudyus <claudyus@HEX.(none)>",
|
|
99
102
|
"Connor Dunn <connorhd@gmail.com>",
|
|
100
103
|
"Corey Butler <corey@coreybutler.com>",
|
|
104
|
+
"Corey Farrell <git@cfware.com>",
|
|
101
105
|
"Cory Thomas <cory.thomas@bazaarvoice.com>",
|
|
102
106
|
"Craig Taub <craigtaub@gmail.com>",
|
|
103
107
|
"Cube <maty21@gmail.com>",
|
|
@@ -280,6 +284,7 @@
|
|
|
280
284
|
"Mark Banner <standard8@mozilla.com>",
|
|
281
285
|
"Mark Owsiak <mark.owsiak@gmail.com>",
|
|
282
286
|
"Markus Tacker <m@coderbyheart.com>",
|
|
287
|
+
"Martijn Cuppens <martijn.cuppens@intracto.com>",
|
|
283
288
|
"Martin Marko <marcus@gratex.com>",
|
|
284
289
|
"Mathieu Desvé <mathieudesve@MacBook-Pro-de-Mathieu.local>",
|
|
285
290
|
"Matija Marohnić <matija.marohnic@gmail.com>",
|
|
@@ -440,6 +445,7 @@
|
|
|
440
445
|
"vlad <iamvlad@gmail.com>",
|
|
441
446
|
"Vlad Magdalin <vlad@webflow.com>",
|
|
442
447
|
"Volker Buzek <volker.buzek@sap.com>",
|
|
448
|
+
"Wanseob Lim <email@wanseob.com>",
|
|
443
449
|
"Wil Moore III <wil.moore@wilmoore.com>",
|
|
444
450
|
"Will Langstroth <will@langstroth.com>",
|
|
445
451
|
"wsw <wsw0108@gmail.com>",
|
|
@@ -498,7 +504,7 @@
|
|
|
498
504
|
"minimatch": "3.0.4",
|
|
499
505
|
"mkdirp": "0.5.1",
|
|
500
506
|
"ms": "2.1.1",
|
|
501
|
-
"node-environment-flags": "1.0.
|
|
507
|
+
"node-environment-flags": "1.0.4",
|
|
502
508
|
"object.assign": "4.1.0",
|
|
503
509
|
"strip-json-comments": "2.0.1",
|
|
504
510
|
"supports-color": "6.0.0",
|
|
@@ -509,6 +515,7 @@
|
|
|
509
515
|
"yargs-unparser": "1.5.0"
|
|
510
516
|
},
|
|
511
517
|
"devDependencies": {
|
|
518
|
+
"@11ty/eleventy": "^0.6.0",
|
|
512
519
|
"@mocha/contributors": "^1.0.3",
|
|
513
520
|
"@mocha/docdash": "^1.0.1",
|
|
514
521
|
"assetgraph-builder": "^6.4.2",
|
|
@@ -517,6 +524,7 @@
|
|
|
517
524
|
"chai": "^4.2.0",
|
|
518
525
|
"coffee-script": "^1.10.0",
|
|
519
526
|
"coveralls": "^3.0.2",
|
|
527
|
+
"cross-env": "^5.2.0",
|
|
520
528
|
"cross-spawn": "^6.0.5",
|
|
521
529
|
"eslint": "^5.10.0",
|
|
522
530
|
"eslint-config-prettier": "^3.3.0",
|
|
@@ -536,12 +544,16 @@
|
|
|
536
544
|
"karma-mocha-reporter": "^2.2.4",
|
|
537
545
|
"karma-sauce-launcher": "^1.2.0",
|
|
538
546
|
"lint-staged": "^8.1.0",
|
|
547
|
+
"markdown-it": "^8.4.2",
|
|
548
|
+
"markdown-it-anchor": "^5.0.2",
|
|
549
|
+
"markdown-it-attrs": "^2.3.2",
|
|
550
|
+
"markdown-it-prism": "^2.0.1",
|
|
539
551
|
"markdown-magic": "^0.1.25",
|
|
540
552
|
"markdown-magic-package-json": "^2.0.0",
|
|
541
553
|
"markdown-toc": "^1.2.0",
|
|
542
554
|
"markdownlint-cli": "^0.13.0",
|
|
543
555
|
"nps": "^5.9.3",
|
|
544
|
-
"nyc": "^13.
|
|
556
|
+
"nyc": "^13.3.0",
|
|
545
557
|
"prettier": "^1.15.3",
|
|
546
558
|
"remark": "^10.0.1",
|
|
547
559
|
"remark-github": "^7.0.5",
|
|
@@ -554,7 +566,9 @@
|
|
|
554
566
|
"through2": "^3.0.0",
|
|
555
567
|
"to-vfile": "^5.0.2",
|
|
556
568
|
"unexpected": "^10.39.2",
|
|
569
|
+
"unexpected-eventemitter": "^1.1.3",
|
|
557
570
|
"unexpected-sinon": "^10.10.1",
|
|
571
|
+
"uslug": "^1.0.4",
|
|
558
572
|
"watchify": "^3.7.0"
|
|
559
573
|
},
|
|
560
574
|
"files": [
|
|
@@ -582,7 +596,8 @@
|
|
|
582
596
|
},
|
|
583
597
|
"prettier": {
|
|
584
598
|
"singleQuote": true,
|
|
585
|
-
"bracketSpacing": false
|
|
599
|
+
"bracketSpacing": false,
|
|
600
|
+
"endOfLine": "auto"
|
|
586
601
|
},
|
|
587
602
|
"yargs": {
|
|
588
603
|
"combine-arrays": true,
|