Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncing from original #1

Merged
merged 903 commits into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
903 commits
Select commit Hold shift + click to select a range
cc8304d
drop node.js v4 support
outsideris Apr 30, 2018
d401ee1
Update an example for browsers in docs (#3338)
outsideris Aug 11, 2018
69bc0c7
Added a "run cycle overview" to documentation (#3455)
craigtaub Sep 22, 2018
04469bf
Update ruby-ffi (#3464)
craigtaub Sep 23, 2018
5ec3010
Clarify docs for watch that it watches files in the CWD (#3361)
benglass Oct 8, 2018
a03e23a
fix slow test properly fot dot reporter
outsideris Sep 25, 2018
01171b1
docs(lib/mocha.js): Update API documentation (#3515)
plroebuck Oct 15, 2018
24c7067
Improve Contributing Docs (#3525)
markowsiak Oct 19, 2018
ceff283
level -> label (#3477)
Bamieh Oct 20, 2018
2344119
Native types exceptions can crash Mocha (#3471)
fargies Oct 21, 2018
4ddfcaf
3483: Squelch CI Growl-related spawn errors (#3517)
plroebuck Oct 24, 2018
adb1f61
test(test/reporters/base.spec.js): Fix Base reporter test failure due…
plroebuck Oct 20, 2018
741c4c7
Update "commander" to correct display of falsy default values (#3529)
outsideris Oct 27, 2018
835ac33
refactor(bin/options.js): Refactor and improve documentation (#3533)
plroebuck Oct 30, 2018
b9b3ac0
refactor(json-stream.js): Consistent output stream usage (#3532)
plroebuck Oct 30, 2018
a371e2f
fix(_mocha): Update '--no-timeouts' argument description (#3546)
plroebuck Nov 2, 2018
1ded82f
build(ESLint/Git): Ignore JSDoc output directory (#3544)
plroebuck Nov 2, 2018
c16fb76
ci(Travis/Appveyor): Update Node versions in CI matrix (#3543)
plroebuck Nov 2, 2018
3e77008
update release instructions [ci skip]
boneskull Nov 2, 2018
00ca06b
fix runner to emit start/end event (#3395)
outsideris Nov 2, 2018
be17ea5
Warn that suites cannot return a value (#3550)
plroebuck Nov 4, 2018
f2b62ec
upgrade jekyll; closes #3548 (#3549)
boneskull Nov 4, 2018
8256b65
Show diff in xunit
mlucool Jun 26, 2018
9d27bac
Extract `runReporter` to capture output under tests (#3528)
outsideris Nov 5, 2018
614d35b
update list of published files in package.json
boneskull Nov 2, 2018
c6f61e6
Prevent timeout value from skirting limit check (#3536)
plroebuck Nov 9, 2018
cd87a21
Make TAP reporter TAP13-capable (#3552)
plroebuck Nov 10, 2018
593e9b8
Add ability to query Mocha version programmatically (#3535)
plroebuck Nov 10, 2018
d60b333
Fix link in changelog (#3566)
sonicdoe Nov 13, 2018
262ab2b
ms module added instead of internal ms js #3557 (#3563)
gizemkeser Nov 23, 2018
ee2ef44
ci(appveyor.yml): Fix Growl install (#3577)
plroebuck Nov 24, 2018
9f02180
ci(.travis.yml,appveyor.yml): Use current npm version in CI scripts (…
plroebuck Nov 25, 2018
7969028
use `--forbid-only in CI
boneskull Nov 29, 2018
3548294
ensure all JS (and JSON) files are prettified pre-commit
boneskull Nov 29, 2018
955a71e
add script to automatically dump CLI usage into documentation
boneskull Nov 29, 2018
4bef574
remove unsupported @api tag in docstrings
boneskull Nov 29, 2018
41f9d56
Refactor statistics (#3458)
craigtaub Dec 4, 2018
b636faf
update slow description (#3466)
finfin Dec 4, 2018
00d5e90
Issue/2819 - Fix / Clarify this.skip behavior in before hooks (#3225)
bannmoore Dec 4, 2018
99af03c
lint-staged should ignore package.json and package-lock.json
boneskull Dec 7, 2018
a113b85
--forbid-only and --forbid-pending now handle suites properly (#3578)
outsideris Dec 7, 2018
7d0fb1f
use markdown-magic for processing documentation
boneskull Dec 5, 2018
4cc711f
updates to MAINTAINERS.md [ci skip]
boneskull Nov 29, 2018
7a3e745
fix(cli): Throw error if unable to parse Mocha options file
plroebuck May 12, 2018
b5c0fb0
use yargs for option parsing and support config files
boneskull Nov 29, 2018
6df0e84
backout 02294a3 (via #3362); closes #3569
boneskull Dec 10, 2018
f9a6f9b
make isPromise support null as a parameter (#3518)
fabiosantoscode Dec 11, 2018
9b7a282
fix broken docs
boneskull Dec 11, 2018
f187d6d
use @mocha/contributors; closes #3606
boneskull Dec 11, 2018
8750ef8
update assetgraph-builder to latest (#3594)
boneskull Dec 12, 2018
843cd93
update assetgraph-builder to latest (#3611)
outsideris Dec 12, 2018
2119ae1
update info in docs/README.md [ci skip]
boneskull Dec 13, 2018
0ed25c6
fix typo in docs/README.md [ci skip]
boneskull Dec 13, 2018
6160a6a
make lib/stats-collector a private API
boneskull Dec 13, 2018
3d3e833
modified SIGINT handling #3570 (#3602)
Jayasankar-m Dec 14, 2018
2a76dd7
adding a "retry" event for a test that fails but can be retried; clos…
boneskull Dec 14, 2018
4351697
fix wording in enableTimeouts deprecation msg [ci skip]
boneskull Dec 14, 2018
a63ab5f
remove SIGINT handler for single runs; see #3570
boneskull Dec 14, 2018
89169cd
Dont count xunit failures as errors
mlucool Dec 3, 2018
68c24cc
upgrade eslint & its ilk
boneskull Dec 18, 2018
932fcb8
upgrade yargs, husky, nyc, markdownlint-cli
boneskull Dec 18, 2018
468165c
update ansi-colors, debug, glob, he, supports-color, through2
boneskull Dec 18, 2018
dac4e92
avoid global timers by way of ESLint; closes #3342 (#3374)
boneskull Dec 18, 2018
a9f3526
Behavior of after/afterEach hooks with --bail flag (#3617)
juergba Dec 19, 2018
0b9bc69
Fix spelling (#3635)
plroebuck Dec 22, 2018
81c60f9
Growl: Web notifications & Desktop prerequisite software check (#3542)
plroebuck Dec 23, 2018
e825be7
upgrade supports-color; closes #1304 (#3633)
boneskull Dec 28, 2018
ee6d576
Fix an error when fn===undefined (#3580)
Lana-Light Dec 28, 2018
273f479
rename "forbid" fixture files to have proper extension; closes #3636
boneskull Dec 28, 2018
471b7f4
add more tests for utils.deprecate (#3628)
boneskull Dec 30, 2018
360656d
use userland which; closes #3639
boneskull Dec 28, 2018
0810441
Added custom error objects including code (#3467)
craigtaub Jan 1, 2019
118eb45
update CHANGELOG for v6.0.0-0
boneskull Jan 1, 2019
9da1bbb
fix CHANGELOG issue number and attribution [ci skip]
boneskull Jan 1, 2019
12773c8
fix use of String.prototype.includes
boneskull Jan 1, 2019
8de7fae
Release v6.0.0-0
boneskull Jan 1, 2019
d34ff81
add link to docs for v6.0.0-0 release [ci skip]
boneskull Jan 1, 2019
56c6326
fix missing mocharc.json in published package; see #3556
boneskull Jan 2, 2019
708de2d
update CHANGELOG for v6.0.0-1 [ci skip]
boneskull Jan 2, 2019
1f325e7
Release v6.0.0-1
boneskull Jan 2, 2019
017d865
Fixed wrong use of to throw that will fail with unexpected v11
sunesimonsen Jan 3, 2019
66aea83
remove teamcity reporter warning (#3634)
vkarpov15 Jan 3, 2019
9887f0c
Description meta tag
MartijnCuppens Dec 28, 2018
fc0507e
Fix message if no files found (#3650)
craigtaub Jan 4, 2019
cb1c6b0
Add test for Runner event order (#3642)
juergba Jan 4, 2019
9d62030
Update documentation concerning fs.readdir (#3657)
plroebuck Jan 5, 2019
f223298
mega-upgrade of .gitignore [ci skip]
boneskull Jan 3, 2019
1786e6e
fix WallabyJS config [ci skip]
boneskull Jan 10, 2019
0a86e6f
remove invalid comment; see #1962
boneskull Jan 10, 2019
e2d4929
Set "root" property on Suite correctly (#3632)
juergba Jan 16, 2019
635ecd1
fix tests & formatting on windows; closes #3643
boneskull Jan 16, 2019
414bc1e
Fix couple errors missing codes (#3666)
vkarpov15 Jan 17, 2019
c838315
test(integration/reporters.spec.js): Add test for TAP when given inva…
plroebuck Jan 16, 2019
fb59d98
Replace Jekyll with Eleventy (#3652)
Munter Jan 18, 2019
6b5a785
Fix messages for file lookup issues - error scenario (#3654); see #3646
craigtaub Jan 18, 2019
1abfef6
pin default Node.js version to v11.6.0 in .travis.yml
boneskull Jan 22, 2019
0f95a7d
do not recursively call `process.exit()` (#3684)
addaleax Jan 23, 2019
c198329
modify suite retval warning to be more useful
boneskull Jan 24, 2019
b5d8513
fix bug I should not have pushed by pushing a fix
boneskull Jan 24, 2019
0899fdd
fix broken suite integration test
boneskull Jan 24, 2019
57930a2
Reorder cmdline options top-level test suites lexically (#3674)
plroebuck Jan 24, 2019
27688bc
Avoid the 'was called with' assertion
papandreou Jan 19, 2019
91ca367
ensure all CLI options have an assigned type; closes #3683
boneskull Jan 24, 2019
8b7e3da
ensure invalid arguments are not ignored when using bin/mocha; closes…
boneskull Jan 24, 2019
1e30501
update CONTRIBUTING.md; closes issue/3624
boneskull Dec 18, 2018
1f36ec5
Fix Hook Test Names (#3573); closes #1638, closes #3291, closes #2134
juergba Jan 28, 2019
c91b325
ensure --debug becomes --inspect; closes #3697 (#3698)
boneskull Jan 29, 2019
7fee3a3
show total test cases correctly in growl
outsideris Jan 29, 2019
1a43d8b
Fix regexp in utils.stackTraceFilter to prevent ReDoS #3416 (#3686)
cyjake Jan 30, 2019
a406503
remove Google Analytics from site; closes #3349
boneskull Jan 25, 2019
d0cc3b2
test(unit/runner.spec.js): Minor tweeks related to #3686 (#3704)
plroebuck Feb 1, 2019
e01a54e
update usage info in docs [ci skip]
boneskull Feb 4, 2019
29aa611
Eliminated variable shadowing from test event listeners (runner.spec.…
plroebuck Feb 4, 2019
52b9a5f
refactor: use constants for event names instead of string literals
boneskull Jan 4, 2019
21ba5ce
fix --inspect and its ilk; closes #3681 (#3699)
boneskull Feb 8, 2019
3a7fa37
Revert 00ca06b0e957ec4f067268c98053782ac5dcb69f; closes #3414 (#3715)
boneskull Feb 10, 2019
186ca36
add createInvalidArgumentError(); see #3676 (#3677)
boneskull Feb 10, 2019
6cb4e27
add all changes since v6.0.0-1 to CHANGELOG.md [ci skip]
boneskull Feb 11, 2019
2d21fd6
add missing user reference in CHANGELOG.md [ci skip]
boneskull Feb 11, 2019
0f546fc
Refactor checkGlobals() error message creation (#3711)
plroebuck Feb 11, 2019
94c9320
fix --reporter-option to allow comma-separated options; closes #3706
boneskull Feb 10, 2019
45ae014
Refactor `lookupFiles` and `files` (#3722)
plroebuck Feb 13, 2019
66a52f2
update release steps [ci skip]
boneskull Feb 14, 2019
0dacd1f
Add ability to unload files from `require` cache (redux) (#3726)
plroebuck Feb 14, 2019
118c9ae
Refactor out usages of Suite#_onlyTests and Suite#_onlyTests (#3689) …
vkarpov15 Feb 15, 2019
5d9d3eb
Update nyc
coreyfarrell Feb 14, 2019
16b4281
Documentation updates (#3728)
plroebuck Feb 16, 2019
56dc28e
Remove unnecessary post-processing code having no effect; closes #370…
wanseob Feb 16, 2019
82307fb
Fix `.globals` to remove falsy values (#3737)
plroebuck Feb 17, 2019
52b5c42
Uppercased JSON reporter name in `describe` title (#3739)
plroebuck Feb 17, 2019
a540eb0
remove "projects" section from MAINTAINERS.md [ci skip]
boneskull Feb 18, 2019
9f9293a
update changelog for v6.0.0
craigtaub Feb 18, 2019
c710792
grammar updates for changelog v6.0.0
craigtaub Feb 18, 2019
a553ca7
punctuation updates for changelog v6.0.0
craigtaub Feb 18, 2019
42303e2
Release v6.0.0
craigtaub Feb 18, 2019
6d5a0db
Bring the example congfiguration file in line with the documentation.…
Szauka Feb 20, 2019
34afb1a
fix(cli/run.js): Revert default glob to match Mocha-5.2
plroebuck Feb 20, 2019
00f2ed9
dev dep upgrades from "npm audit" and "npm upgrade"
boneskull Feb 20, 2019
7926f47
fix --ui issues, closes #3746
boneskull Feb 20, 2019
b836d73
Upgrade docdash version - issue #3663
tendonstrength Feb 16, 2019
b7cfceb
fix --watch not finding any files to execute; closes #3748
boneskull Feb 20, 2019
7c9221d
backout deprecation of value returned from suite; closes #3744
boneskull Feb 21, 2019
2146ece
update CHANGELOG.md for v6.0.1
boneskull Feb 21, 2019
6d3d6b4
Release v6.0.1
boneskull Feb 21, 2019
37febb6
improve issue template. (#3411)
outsideris Feb 22, 2019
6535965
Update "karma-browserify" to eliminate Karma middleware warning (#3762)
plroebuck Feb 22, 2019
9e31e9d
fix handling of bareword args matching node flags; closes #3761
boneskull Feb 25, 2019
347e9db
fix broken positional arguments in config; ensure positional args are…
boneskull Feb 25, 2019
1edce76
update CHANGELOG for v6.0.2 [ci skip]
boneskull Feb 25, 2019
00a895f
Release v6.0.2
boneskull Feb 25, 2019
bb27fe6
autoformat markdown with prettier; closes #3773
boneskull Feb 25, 2019
9e95d36
Make optional 'options' parameter standard for all reporter construct…
plroebuck Feb 26, 2019
22831c5
Add support for configuration files with ".jsonc" extension (#3760); …
sstephant Feb 27, 2019
02ca696
Allow passing multiple node flags, closes #3787 (#3788)
adam-codaio Mar 4, 2019
2c626ca
Use HTML5 syntax for charset declaration (#3809)
plroebuck Mar 5, 2019
754cbf9
Update devDependencies.
XhmikosR Mar 2, 2019
f1662ac
Fix this.skip() async calls (#3745)
juergba Mar 5, 2019
df1937b
Completed website HTML tweaks (#3807)
plroebuck Mar 6, 2019
a0c03e3
set allowUncaught on hooks (#3669); closes #2302
givanse Mar 6, 2019
b27bc60
Add autoprefixer to documentation page CSS
Munter Mar 6, 2019
e654253
update yargs; closes #3742
boneskull Mar 6, 2019
735161f
MarkdownMagic script updates (#3815)
plroebuck Mar 7, 2019
ca9eba6
guard against undefined timeout option in constructor; closes #3813
boneskull Mar 7, 2019
75430ec
Upgrade yargs-parser dependency to avoid loading 2 copies of yargs
cspotcode Mar 11, 2019
a3089ad
update package-lock
cspotcode Mar 11, 2019
d5ba121
Remove "package" flag from sample config file because it can only be …
cspotcode Mar 13, 2019
0098147
Replace findup-sync with find-up for faster startup (#3830)
cspotcode Mar 13, 2019
ade8b90
runner.js: "self.test" undefined in Browser (#3835)
juergba Mar 14, 2019
1d570e0
Delete "/docs/example/chai.js"
plroebuck Mar 14, 2019
d1024a3
Update doc examples "tests.html" (#3811)
DavidLi119 Mar 14, 2019
586bf78
Update JS-YAML to address security issue (#3845)
plroebuck Mar 23, 2019
8aa2fc4
Fix issue 3714, hide pound icon showing on hover header on docs page …
jd2rogers2 Mar 28, 2019
81cfa90
Copy Suite property "root" when cloning; closes #3847 (#3848)
fatso83 Mar 31, 2019
e87c689
Deprecate this.skip() for "after all" hooks (#3719)
juergba Apr 2, 2019
b079d24
upgrade deps as per npm audit fix; closes #3854
boneskull Apr 3, 2019
aaf2b72
Use cwd-relative pathname to load config file (#3829)
plroebuck Apr 7, 2019
bd29dbd
update CHANGELOG for v6.1.0 [ci skip]
juergba Apr 6, 2019
f4fc95a
Release v6.1.0
juergba Apr 7, 2019
d7de948
Set eol for publishing
juergba Apr 7, 2019
9e138b1
update CHANGELOG for v6.1.1 [ci skip]
juergba Apr 7, 2019
9b516bf
Release v6.1.1
juergba Apr 7, 2019
2e8f31f
update CHANGELOG for v6.1.2
boneskull Apr 8, 2019
86cd699
Release v6.1.2
boneskull Apr 8, 2019
f05a58f
Fix yargs global pollution
inukshuk Apr 5, 2019
5121211
Do not pass argv twice
inukshuk Apr 5, 2019
e73941a
upgrade node-environment-flags; closes #3868
boneskull Apr 11, 2019
ae3d53f
update CHANGELOG for v6.1.3 [ci skip]
boneskull Apr 11, 2019
f1fe632
Release v6.1.3
boneskull Apr 11, 2019
0d9d4a3
Update js-yaml from 3.13.0 to 3.13.1 (#3877)
bjornstar Apr 17, 2019
c3d241e
update CHANGELOG.md for v6.1.4 [ci skip]
boneskull Apr 18, 2019
31c019e
Release v6.1.4
boneskull Apr 18, 2019
07ea876
Remove noise output from JSON reporter test (#3881)
plroebuck Apr 18, 2019
63056f0
fixed anchors to configuration section (#3841)
trescube Apr 20, 2019
59fcf71
Broken links in docs
toyjhlee Apr 20, 2019
57a9738
Use sinon sandbox for reporter tests (#3888)
outsideris Apr 22, 2019
f6b8e89
test(test/reporters): Rework reporter tests
plroebuck Apr 25, 2019
b08ce41
Revert "test(test/reporters): Rework reporter tests"
plroebuck Apr 25, 2019
ae27afc
Adds doc links for mocha-examples (#3889)
craigtaub Apr 25, 2019
109f05e
Fix parsing of config files with "_mocha" (#3894)
juergba Apr 29, 2019
ef69b73
Rework reporter tests (#3892)
plroebuck Apr 30, 2019
53f18a1
various doc-related fixes (#3790)
boneskull May 2, 2019
a4f1a44
rename "exclude" to "ignore" and create alias; closes #3871 (#3872)
boneskull May 2, 2019
42a7e4e
fix extension handling; closes #3808
boneskull Mar 14, 2019
aed20bd
use yargs-parser options.default
juergba Apr 25, 2019
9b00fed
preserve-symlinks{-main} flags (#3900)
juergba May 8, 2019
ffbcbf6
Document option to define custom report name for XUnit reporter (#3906)
pkuczynski May 12, 2019
8ce4471
chore: upgrade (most) depedencies to latest (#3903)
AviVahl May 17, 2019
94033bf
Revert "chore: upgrade (most) depedencies to latest (#3903)" (#3918)
juergba May 17, 2019
8f2a35d
fix timeout/slow string values and duplicate arguments
boneskull Mar 12, 2019
ffe1967
coerce function for boolean/string/number types
juergba May 2, 2019
750c5f8
Fix regression/bug in "lookupFiles()" (#3905)
juergba May 17, 2019
a758154
Extend tests for `--watch` options
May 14, 2019
29b7615
Extract `runWatch` into separate module (#3930)
May 25, 2019
f3ed729
Add mocha.min.js file to stacktrace filter (#3922)
brian-lagerman Jun 3, 2019
ca861d4
ugprades for npm audit
boneskull Jun 5, 2019
d02a096
modify Mocha constructor to accept options.global or options.globals …
pascalpp Jun 6, 2019
9ea45e7
do not fork if no node flags present (#3827)
boneskull Jun 10, 2019
3064d25
update @mocha/docdash to v2.1.1 (#3945)
boneskull Jun 12, 2019
e341ea4
Update CI config files to use Node-12.x (#3919)
plroebuck Jun 12, 2019
c903147
More, improved integration tests for watching (#3929)
Jun 13, 2019
47318a7
update @mocha/contributors to v1.0.4 (#3944)
boneskull Jun 19, 2019
ccee5f1
Base reporter store ref to console.log (#3725)
craigtaub Jun 19, 2019
15b96af
Collect test files later (#3953)
Jun 26, 2019
5d4dd98
Fix No Files error when file is passed via --files (#3942)
gabegorelick Jun 27, 2019
88f45d5
Don't re-initialize grep option on watch re-run (#3960)
Jul 17, 2019
6201e42
Hide stacktrace when cli args are missing (#3963)
outsideris Jul 17, 2019
f77cac4
fix: do not redeclare variable (#3956)
DanielRuf Jul 17, 2019
59d70ee
fix: remove duplicate line-height property (#3957)
DanielRuf Jul 17, 2019
cc595af
update CHANGELOG.md for v6.2.0 [ci skip]
craigtaub Jul 18, 2019
bd47776
Release v6.2.0
craigtaub Jul 18, 2019
48da42e
Remove jsdoc index.html placeholder from eleventy file structure and …
Munter Jul 19, 2019
0e9d8ad
tty.getWindowSize is not a function inside a "worker_threads" worker …
1999 Jul 20, 2019
91b3a54
fix style on mochajs.org (#3886)
outsideris Jul 20, 2019
1e6cf3b
Add Matomo to website (#3765)
MarioDiaz98 Jul 20, 2019
b269ad0
Clarify effect of .skip() (#3947)
oliversalzburg Jul 22, 2019
ad4860e
Remove extraGlobals() (#3970)
juergba Aug 1, 2019
6df1284
Drop node.js v6 support (#3885)
mojosoeun Aug 7, 2019
9d3c584
Add prefix `list-` to --interfaces and --reporters options (#3962)
parksb Aug 7, 2019
8e6e747
Travis: don't run Smoke with Node v6 (#3981)
juergba Aug 7, 2019
6d7c32a
Update yargs-unparser to v1.6.0 (#3984)
juergba Aug 10, 2019
7297b0a
Fix hook pattern of this.skip() in it() tests (#3859)
juergba Aug 11, 2019
5f1cad5
treat '--require esm' as Node option (#3983)
juergba Aug 13, 2019
fafa9b9
Update yargs to v13.3.0 (#3986)
juergba Aug 15, 2019
a3644c6
Remove deprecated "getOptions()" and "lib/cli/options.js" (#3967)
juergba Aug 19, 2019
ea26c3d
Add link checking to docs build step (#3972)
Munter Aug 22, 2019
f15e988
Soft deprecate configuration via "mocha.opts" (#3968)
juergba Aug 26, 2019
d8ac68f
Adopt the OpenJSF Code of Conduct (#3971)
craigtaub Aug 31, 2019
802fb05
Deprecate "debug" and remove "--debug" / "--debug-brk" flags (#3890)
juergba Sep 3, 2019
123a0d7
Improved watching with chokidar (#3980)
Sep 9, 2019
6ec07d6
add OpenJS Foundation logo to website (#4008)
boneskull Sep 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
44 changes: 44 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
'use strict';

module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy('docs/css');
eleventyConfig.addPassthroughCopy('docs/js');
eleventyConfig.addPassthroughCopy('docs/images');
eleventyConfig.addPassthroughCopy('docs/CNAME');
eleventyConfig.addPassthroughCopy('docs/_headers');
eleventyConfig.addPassthroughCopy('docs/favicon.ico');

eleventyConfig.addPassthroughCopy('docs/example');

/* Markdown Plugins */
const markdown = require('markdown-it')({
html: true,
linkify: true
});

markdown.use(require('markdown-it-anchor'), {
slugify: require('uslug'),
permalink: true,
permalinkBefore: true,
permalinkClass: 'direct-link',
permalinkSymbol: '#'
});

markdown.use(require('markdown-it-attrs'), {
leftDelimiter: '{:',
rightDelimiter: '}'
});

markdown.use(require('markdown-it-prism'));

eleventyConfig.setLibrary('md', markdown);

return {
passthroughFileCopy: true,
dir: {
input: 'docs',
includes: '_includes',
output: 'docs/_site'
}
};
};
8 changes: 6 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
coverage/
lib/to-iso-string/**/*.js
mocha.js
BUILDTMP
*.fixture.js
docs/
out/
!lib/mocha.js
test/integration/fixtures
!.*.js
15 changes: 0 additions & 15 deletions .eslintrc.yaml

This file was deleted.

90 changes: 90 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
root: true
extends:
- semistandard
- plugin:prettier/recommended
env:
node: yes
browser: yes
parserOptions:
ecmaVersion: 5
ecmaFeatures:
globalReturn: no
jsx: no
sourceType: script
rules:
strict:
- error
- safe
overrides:
- files:
- scripts/**/*.js
- package-scripts.js
- karma.conf.js
- .wallaby.js
- .eleventy.js
- bin/*
- lib/cli/**/*.js
- test/node-unit/**/*.js
- test/integration/options/watch.spec.js
- test/integration/helpers.js
- lib/growl.js
parserOptions:
ecmaVersion: 6
env:
browser: no

- files:
- test/**/*.{js,mjs}
env:
mocha: yes
globals:
expect: no
- files:
- bin/*
- lib/**/*.js
rules:
no-restricted-globals:
- error
- name: setTimeout
message: &GH-237 See https://github.com/mochajs/mocha/issues/237
- name: clearTimeout
message: *GH-237
- name: setInterval
message: *GH-237
- name: clearInterval
message: *GH-237
- name: setImmediate
message: *GH-237
- name: clearImmediate
message: *GH-237
- name: Date
message: *GH-237
no-restricted-modules:
- error
- timers
no-restricted-syntax:
- error
# disallow `global.setTimeout()`, `global.setInterval()`, etc.
- selector: 'CallExpression[callee.object.name=global][callee.property.name=/(set|clear)(Timeout|Immediate|Interval)/]'
message: *GH-237
# disallow `new global.Date()`
- selector: 'NewExpression[callee.object.name=global][callee.property.name=Date]'
message: *GH-237
# disallow property access of `global.<timer>.*`
- selector: '*[object.object.name=global][object.property.name=/(Date|(set|clear)(Timeout|Immediate|Interval))/]:expression'
message: *GH-237

- files:
- test/**/*.mjs
parserOptions:
ecmaVersion: 6
sourceType: module

- files:
- lib/reporters/*.js
rules:
no-restricted-syntax:
- error
# disallow Reporters using `console.log()`
- selector: 'CallExpression[callee.object.name=console][callee.property.name=log]'
message: &GH-3604 See https://github.com/mochajs/mocha/issues/3604
2 changes: 2 additions & 0 deletions .fossaignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONTRIBUTING.md
MAINTAINERS.md
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
61 changes: 52 additions & 9 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,49 @@
# Mocha Code of Conduct

## Be friendly and patient

We understand that everyone has different levels of experience or knowledge in many diverse fields, be it technical or
non-technical in nature. We also have areas of knowledge we are eager to expand; we want to be a community where people
can not only contribute, but feel comfortable to ask questions as well and learn along the way. If someone says something
wrong, or says something accidentally offensive, respond with patience and try to keep it polite and civil. Remember that
we all were newbies at one point.

## Be welcoming

We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not
limited to, members of any race, ethnicity, culture, national origin, color, immigration status, social and economic class,
educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief,
religion, and mental and physical ability.

## Be considerate

Your work will be used by other people, and you in turn will depend on the work of others. Any decision you make will affect
users and colleagues, and you should take those consequences into account when making decisions. Remember that we’re a world-wide
community, so you might not be communicating in someone else’s primary language.

## Be respectful

Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all
experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important
to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the JS Foundation
community should be respectful when dealing with other members as well as with people outside the JS Foundation community.

## Be careful in the words that you choose

We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put
down other participants. Harassment and other exclusionary behavior aren’t acceptable. This includes, but is not limited to:

* Violent threats or language directed against another person.
* Discriminatory jokes and language.
* Posting sexually explicit or violent material.
* Posting (or threatening to post) other people’s personally identifying information (“doxing”).
* Personal insults, especially those using racist or sexist terms.
* Unwelcome sexual attention.
* Advocating for, or encouraging, any of the above behavior.
* Repeated harassment of others. In general, if someone asks you to stop, then stop.
- Violent threats or language directed against another person.
- Discriminatory jokes and language.
- Posting sexually explicit or violent material.
- Posting (or threatening to post) other people’s personally identifying information (“doxing”).
- Personal insults, especially those using racist or sexist terms.
- Unwelcome sexual attention.
- Advocating for, or encouraging, any of the above behavior.
- Repeated harassment of others. In general, if someone asks you to stop, then stop.

## When we disagree, try to understand why

Disagreements, both social and technical, happen all the time and JS Foundation projects are no exception. It is important
that we resolve disagreements and differing views constructively. Remember that we’re different. The strength of the JS
Foundation comes from its varied community, people from a wide range of backgrounds. Different people have different
Expand All @@ -48,4 +54,41 @@ and learning from mistakes.
Original text courtesy of the Speak Up! project and Django Project.

## QUESTIONS?
If you have questions, please see the FAQ. If that doesn’t answer your questions, feel free to email conduct@js.foundation.

If you have questions, please see the FAQ. If that doesn’t answer your questions, feel free to email report@lists.openjsf.org.

# OpenJS Foundation Code of Conduct

The OpenJS Foundation and its member projects use the Contributor
Covenant v1.4.1 as its Code of Conduct. Refer to the following
for the full text:

- [english](https://www.contributor-covenant.org/version/1/4/code-of-conduct)
- [translations](https://www.contributor-covenant.org/translations)

Refer to the section on reporting and escalation in this document for the specific emails that can be used to report and escalate issues.

## Reporting

### Project Spaces

For reporting issues in spaces related to a member project please use the email provided by the project for reporting. Projects handle CoC issues related to the spaces that they maintain. Projects maintainers commit to:

- maintain the confidentiality with regard to the reporter of an incident
- to participate in the path for escalation as outlined in
the section on Escalation when required.

### Foundation Spaces

For reporting issues in spaces managed by the OpenJS Foundation, for example, repositories within the OpenJS organization, use the email `report@lists.openjsf.org`. The Cross Project Council (CPC) is responsible for managing these reports and commits to:

- maintain the confidentiality with regard to the reporter of an incident
- to participate in the path for escalation as outlined in
the section on Escalation when required.

## Escalation

The OpenJS Foundation maintains a Code of Conduct Panel (CoCP). This is a foundation-wide team established to manage escalation when a reporter believes that a report to a member project or the CPC has not been properly handled. In order to escalate to the CoCP send an email to `"coc-escalation@lists.openjsf.org`.

For more information, refer to the full
[Code of Conduct governance document](https://github.com/openjs-foundation/bootstrap/blob/master/proposals/stage-1/CODE_OF_CONDUCT/FOUNDATION_CODE_OF_CONDUCT_REQUIREMENTS.md).
Loading