Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/mochajs/mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser
https://github.com/mochajs/mocha

MarkdownMagic script updates (#3815)

* Quote `child_process.execSync` executable to allow for embedded spaces in pathname.

735161ffdb639cca94665f08c302b680fe199edb authored over 5 years ago by P. Roebuck <[email protected]>
update yargs; closes #3742

e6542538aa10c6137babf96d9ddc851fc6595ad3 authored over 5 years ago by Christopher Hiller <[email protected]>
Add autoprefixer to documentation page CSS

b27bc60224552b74852161405d15765b9fb59ef2 authored over 5 years ago by Peter Müller <[email protected]>
set allowUncaught on hooks (#3669); closes #2302

* set allowUncaught on hooks

* add test: hooks swallow uncaught exceptions

* PR feedback

a0c03e353afda87580e814b519d9b8011f281d13 authored over 5 years ago by Gastón I. Silva <[email protected]>
Completed website HTML tweaks (#3807)

* removed shortcut from favicon, added external tag to hrefs and tweaked logo

* made fixes ou...

df1937b3978bc3d3ae03a75623affc6ce8939035 authored over 5 years ago by P. Roebuck <[email protected]>
Fix this.skip() async calls (#3745)

- eat `Pending` errors bubbling up to uncaught handler, as intended
- fix cheating tests

f1662ac98e816b5b23c98b759b3208c1592c680e authored over 5 years ago by Juerg B <[email protected]>
Update devDependencies.

The semver compliant ones, i.e. no major version bump.

This fixes 68 vulnerabilities (93 -> 25).

754cbf997137278dd20a608052a0428fc3e50b76 authored over 5 years ago by XhmikosR <[email protected]>
Use HTML5 syntax for charset declaration (#3809)

2c626ca6d26160104a1def2ffb25a107046e71de authored over 5 years ago by P. Roebuck <[email protected]>
Allow passing multiple node flags, closes #3787 (#3788)

Fixes support for multiple node flags

02ca6963a0b551919afc39c21139d8e093545d4d authored over 5 years ago by Adam Ginzberg <[email protected]>
Add support for configuration files with ".jsonc" extension (#3760); closes #3753

22831c5bdbcd751d08804097fa04910c96ed6903 authored over 5 years ago by Sylvain <[email protected]>
Make optional 'options' parameter standard for all reporter constructors (#3766)

9e95d36e4b715380cef573014dec852bded3f8e1 authored over 5 years ago by P. Roebuck <[email protected]>
autoformat markdown with prettier; closes #3773

Signed-off-by: Christopher Hiller <[email protected]>

bb27fe631a9dbb5b536de7a74f7881b904547287 authored over 5 years ago by Christopher Hiller <[email protected]>
Release v6.0.2

00a895f6ad9c1e4c5500851d6ff875e8254a5e06 authored over 5 years ago by Christopher Hiller <[email protected]>
update CHANGELOG for v6.0.2 [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

1edce76eb88c2c04dee604efc10552b0a7d5e637 authored over 5 years ago by Christopher Hiller <[email protected]>
fix broken positional arguments in config; ensure positional args are unique; closes #3763

Signed-off-by: Christopher Hiller <[email protected]>

347e9db3b40eb22bcbc23a026d9915c77040b897 authored over 5 years ago by Christopher Hiller <[email protected]>
fix handling of bareword args matching node flags; closes #3761

9e31e9dcfd45b958aa14961f35abbff8f7ea2b1b authored over 5 years ago by Christopher Hiller <[email protected]>
Update "karma-browserify" to eliminate Karma middleware warning (#3762)

6535965e8655a66de54fc0ad9465c2eb825f13f8 authored over 5 years ago by P. Roebuck <[email protected]>
improve issue template. (#3411)

* improve issue template.
* add api documentation
* add MCVE guide
* enhance bug report templ...

37febb62796374114d2e24534eb44f8776bc7800 authored over 5 years ago by JeongHoon Byun (aka Outsider) <[email protected]>
Release v6.0.1

6d3d6b4d5262f9d6374a887834224eb729890b4d authored over 5 years ago by Christopher Hiller <[email protected]>
update CHANGELOG.md for v6.0.1

Signed-off-by: Christopher Hiller <[email protected]>

2146ecea38974334c5671561f26788556f1b521b authored over 5 years ago by Christopher Hiller <[email protected]>
backout deprecation of value returned from suite; closes #3744

Signed-off-by: Christopher Hiller <[email protected]>

7c9221d4b8e999bfc0069fde2c0fcfa8e5e89146 authored over 5 years ago by Christopher Hiller <[email protected]>
fix --watch not finding any files to execute; closes #3748

b7cfceba05fd16ccfe71ce9f68251730a13f833f authored over 5 years ago by Christopher Hiller <[email protected]>
Upgrade docdash version - issue #3663

b836d7332a449455c49ac4c9616ed093bb5b9a61 authored over 5 years ago by Brian Tomlin <[email protected]>
fix --ui issues, closes #3746

move all ui-related tests into `test/integration/options/ui.spec.js`

7926f47b7cdc511f52d89fabecb1439118df61f9 authored over 5 years ago by Christopher Hiller <[email protected]>
dev dep upgrades from "npm audit" and "npm upgrade"

00f2ed9488564172c81a888c81f69ef39abf21c8 authored over 5 years ago by Christopher Hiller <[email protected]>
fix(cli/run.js): Revert default glob to match Mocha-5.2

The old glob 'test' would allow 'test.js' to be used by default (rather than requiring file be
p...

34afb1afef60309eec6c29abfd3a48b407b3f9a3 authored over 5 years ago by Paul Roebuck <[email protected]>
Bring the example congfiguration file in line with the documentation. (#3751)

* Rename mocharc.js to .mocharc.js

* Rename mocharc.json to .mocharc.json

* Rename mocharc...

6d5a0db678849d58a3b7d372ca0683753e64f1fc authored over 5 years ago by Szauka <[email protected]>
Release v6.0.0

42303e2acba217af554294b1174ee53b5627cc33 authored over 5 years ago by Craig Taub <[email protected]>
punctuation updates for changelog v6.0.0

a553ca70287f407abd4a82180e4a1155b8730756 authored over 5 years ago by Craig Taub <[email protected]>
grammar updates for changelog v6.0.0

c7107926b3a546960e841b0339bf4a3b85170c4c authored over 5 years ago by Craig Taub <[email protected]>
update changelog for v6.0.0

9f9293a0db44ce41e1bd9cc38d68e3d7a1010f41 authored over 5 years ago by Craig Taub <[email protected]>
remove "projects" section from MAINTAINERS.md [ci skip]

a540eb06f23135db563a6b2bd2e0b3b51583fde7 authored over 5 years ago by Christopher Hiller <[email protected]>
Uppercased JSON reporter name in `describe` title (#3739)

'Nuff said.

52b5c42c3dda8c386735969642843bd1129a4562 authored over 5 years ago by P. Roebuck <[email protected]>
Fix `.globals` to remove falsy values (#3737)

* Removed falsy values from `.globals` using filter for "undefined"/empty string values.
* Adde...

82307fbf9bfa7cd72042facd1d42fb108257100c authored over 5 years ago by P. Roebuck <[email protected]>
Remove unnecessary post-processing code having no effect; closes #3708 (#3733)

The post-processing code `split('\n').join('\n')` does not change nor check anything

56dc28e62f63903632d5fe4169b52cb2cdb5f7ea authored over 5 years ago by Wanseob Lim <[email protected]>
Documentation updates (#3728)

* Replaced inline URLs with cross-references.
* Updated HTML examples
* Replaced '--' with em-...

16b4281b6e86d93e959a37f830a349c0542d968a authored over 5 years ago by P. Roebuck <[email protected]>
Update nyc

5d9d3eb665825ea69435388f5776150f40c844be authored over 5 years ago by Corey Farrell <[email protected]>
Refactor out usages of Suite#_onlyTests and Suite#_onlyTests (#3689) (#3707)

* Refactor out usages of Suite#_onlyTests and Suite#_onlyTests (#3689)

* Mark new Suite metho...

118c9aeab5b6192d627b0b369e43584ab8f9f0b7 authored over 5 years ago by Valeri Karpov <[email protected]>
Add ability to unload files from `require` cache (redux) (#3726)

* Implemented `Mocha.unloadFile` and `Mocha#unloadFiles`.
* Added feature tests, as well as one...

0dacd1fb0067e40f8567653f828f677022e4fb89 authored over 5 years ago by P. Roebuck <[email protected]>
update release steps [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

66a52f25cafd266ab3cce2db975a560a695ecae9 authored over 5 years ago by Christopher Hiller <[email protected]>
Refactor `lookupFiles` and `files` (#3722)

* Extract `lookupFile` conditions into functions.
* Rename functions/variables to match intent;...

45ae014d0baba97b4b50b37ae526e1b50a9334e9 authored over 5 years ago by P. Roebuck <[email protected]>
fix --reporter-option to allow comma-separated options; closes #3706

Signed-off-by: Christopher Hiller <[email protected]>

94c932095b4b8e8a7a5d9dde93ad2172d95f5ebe authored almost 6 years ago by Christopher Hiller <[email protected]>
Refactor checkGlobals() error message creation (#3711)

* Added sQuote() and dQuote() functions for quoting text inline
* Added ngettext() function for...

0f546fcde2c8a796eac6aca298420d980dd8519e authored almost 6 years ago by P. Roebuck <[email protected]>
add missing user reference in CHANGELOG.md [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

2d21fd6f1bd7dbf16da8027cd8a92ebee89cdf15 authored almost 6 years ago by Christopher Hiller <[email protected]>
add all changes since v6.0.0-1 to CHANGELOG.md [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

6cb4e27a7a9c2c5f53659d49348d45b1a27f00f7 authored almost 6 years ago by Christopher Hiller <[email protected]>
add createInvalidArgumentError(); see #3676 (#3677)

- updated error code table in docs
- all other changes in docs are from prettier
- updated `...

186ca3657b4d3e0c0a602a500653a695f4e08930 authored almost 6 years ago by Christopher Hiller <[email protected]>
Revert 00ca06b0e957ec4f067268c98053782ac5dcb69f; closes #3414 (#3715)

- Updates events test to match correct event order
- Add test for retries-and-bail case
- Spli...

3a7fa374f6e0aa0497c68e1722a6fb21be4d9cf2 authored almost 6 years ago by Christopher Hiller <[email protected]>
fix --inspect and its ilk; closes #3681 (#3699)

This seems to make `--inspect` work properly with or without a parameter (`--inspect=0.0.0.0:123...

21ba5ce8b2be76277a690d3e164948754e94c1e6 authored almost 6 years ago by Christopher Hiller <[email protected]>
refactor: use constants for event names instead of string literals

- also a few other string literals got replaced, but not error messages nor codes
- supporting r...

52b9a5fb97bc3a6581dc6538aa0092276e71ea41 authored almost 6 years ago by Christopher Hiller <[email protected]>
Eliminated variable shadowing from test event listeners (runner.spec.js) (#3712)

Made consistent that all listener function arguments were distinct from the variables being pass...

29aa61179ef2b4b0ea3ba57304e2bbe20b095171 authored almost 6 years ago by P. Roebuck <[email protected]>
update usage info in docs [ci skip]

e01a54eb2e5d28104625c15df641801747533b63 authored almost 6 years ago by Christopher Hiller <[email protected]>
test(unit/runner.spec.js): Minor tweeks related to #3686 (#3704)

* Refactored portions of tests for increased clarity.
* Updated code to run all stacktrace test...

d0cc3b2e43fe99b265edce8960d13b25d0c98be9 authored almost 6 years ago by P. Roebuck <[email protected]>
remove Google Analytics from site; closes #3349

Signed-off-by: Christopher Hiller <[email protected]>

a406503dad179b0a2514a5fac8718f855b0ee3b1 authored almost 6 years ago by Christopher Hiller <[email protected]>
Fix regexp in utils.stackTraceFilter to prevent ReDoS #3416 (#3686)

When the stacktrace begins with a large `Error.message` (single or multi line), Mocha's stack pr...

1a43d8b11a64e4e85fe2a61aed91c259bbbac559 authored almost 6 years ago by Chen Yangjian <[email protected]>
show total test cases correctly in growl

Signed-off-by: Outsider <[email protected]>

7fee3a367afeb2c43c35f27a9f27306ff6e3a7ca authored almost 6 years ago by Outsider <[email protected]>
ensure --debug becomes --inspect; closes #3697 (#3698)

* ensure --debug becomes --inspect; closes #3697

- add some handiness to the integration test...

c91b3254dc08f792225f3a06200c05cd247268ac authored almost 6 years ago by Christopher Hiller <[email protected]>
Fix Hook Test Names (#3573); closes #1638, closes #3291, closes #2134

### Description of bug
Mocha shows an incorrect test-title if a nested `before` hook fails. For...

1f36ec544f364e60dbae29835112620d2f4641a0 authored almost 6 years ago by Juerg B <[email protected]>
update CONTRIBUTING.md; closes issue/3624

Signed-off-by: Christopher Hiller <[email protected]>

1e305012428dafc72a664623553cc1783ceddaff authored almost 6 years ago by Christopher Hiller <[email protected]>
ensure invalid arguments are not ignored when using bin/mocha; closes #3687

Signed-off-by: Christopher Hiller <[email protected]>

8b7e3da4aec3feac80ae0fcbcdaf7d04c26cc3bd authored almost 6 years ago by Christopher Hiller <[email protected]>
ensure all CLI options have an assigned type; closes #3683

91ca36700a46e00e175a8420362aad31378f4e74 authored almost 6 years ago by Christopher Hiller <[email protected]>
Avoid the 'was called with' assertion

It has been deprecated for two years and will soon display
warnings or even be removed.

https:/...

27688bca42a1bb15da82debaebc3fe13024ca7ce authored almost 6 years ago by Andreas Lind <[email protected]>
Reorder cmdline options top-level test suites lexically (#3674)

* refactor(integration/options.spec.js): Reorder top-level test suites lexically

Reordered ea...

57930a290c53f2d9b5f2be9797a08062b913f552 authored almost 6 years ago by P. Roebuck <[email protected]>
fix broken suite integration test

0899fdda8a6a16916ab9e563dc1dd49236b8674f authored almost 6 years ago by Christopher Hiller <[email protected]>
fix bug I should not have pushed by pushing a fix

b5d8513887e71477861db74a43b0d84fd191f313 authored almost 6 years ago by Christopher Hiller <[email protected]>
modify suite retval warning to be more useful

c19832985d08d3764ea1fdda0976024c7d31bfab authored almost 6 years ago by Christopher Hiller <[email protected]>
do not recursively call `process.exit()` (#3684)

* do not recursively call `process.exit()`

When inside `process.on('exit')`, calling `process...

0f95a7d73355ce9ab299c9f8dfa983b897ecf2fc authored almost 6 years ago by Anna Henningsen <[email protected]>
pin default Node.js version to v11.6.0 in .travis.yml

see https://github.com/istanbuljs/nyc/issues/973

Signed-off-by: Christopher Hiller <boneskull@b...

1abfef606d7a72c2f73c06805d6c11211315486b authored almost 6 years ago by Christopher Hiller <[email protected]>
Fix messages for file lookup issues - error scenario (#3654); see #3646

Scenario where multiple files (all) are not found only show a single message.
I feel its useful...

6b5a7855110d9c493dc41aec9fb2cea15aaa42aa authored almost 6 years ago by Craig Taub <[email protected]>
Replace Jekyll with Eleventy (#3652)

* Add eleventy as a static site generator

* Code syntax highlighting, header anchors and fix ...

fb59d982ab0e7710cf34a1a99c01b148014d71b3 authored almost 6 years ago by Peter Müller <[email protected]>
test(integration/reporters.spec.js): Add test for TAP when given invalid reporter option

Added test for invalid reporter option for `tapVersion`.

c8383157b4970dbe892a18ac089dcc1ad2fc3af9 authored almost 6 years ago by Paul Roebuck <[email protected]>
Fix couple errors missing codes (#3666)

### Requirements

* Filling out the template is required. Any pull request that does not inclu...

414bc1e184358cac886a3649fa2a610b7cb35cd8 authored almost 6 years ago by Valeri Karpov <[email protected]>
fix tests & formatting on windows; closes #3643

635ecd1cf25aebdd42611b065fe57522e08be243 authored almost 6 years ago by Christopher Hiller <[email protected]>
Set "root" property on Suite correctly (#3632)

* suite constructor

* tests

* suite.js corrections and new tests

e2d49295c12432e08a929aa80c02cf87f2405a0f authored almost 6 years ago by Juerg B <[email protected]>
remove invalid comment; see #1962

Signed-off-by: Christopher Hiller <[email protected]>

0a86e6f4a7d1724782d2cc4695ac6422bae94f37 authored almost 6 years ago by Christopher Hiller <[email protected]>
fix WallabyJS config [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

1786e6e7c9d6ab57712cd13acb7734a50be92d1f authored almost 6 years ago by Christopher Hiller <[email protected]>
mega-upgrade of .gitignore [ci skip]

f223298b869e1a7f333678b37e3d2772efecc63d authored almost 6 years ago by Christopher Hiller <[email protected]>
Update documentation concerning fs.readdir (#3657)

No order is implied via fs.readdir(). Different OS/filesystem combinations can give different re...

9d62030046443a68b875f93132a116b58bdfe829 authored almost 6 years ago by P. Roebuck <[email protected]>
Add test for Runner event order (#3642)

* runner: basic events test

* tests basic, bail, retries

* delete first test

cb1c6b013c6c789e190081801bc628a18f81ba1b authored almost 6 years ago by Juerg B <[email protected]>
Fix message if no files found (#3650)

* error and exit, dont warn

* return after error dont exit yet

* remove superflous message...

fc0507ed742cb7ab54bcf60f88a0ea0c64b38289 authored almost 6 years ago by Craig Taub <[email protected]>
Description meta tag

9887f0cc239294b5b5befd7027aadbdb51f4595c authored almost 6 years ago by Martijn Cuppens <[email protected]>
remove teamcity reporter warning (#3634)

66aea83d2379770658e93b82eaddd62ead8ea3a4 authored almost 6 years ago by Valeri Karpov <[email protected]>
Fixed wrong use of to throw that will fail with unexpected v11

I was testing Mocha's compatibility with the upcoming version of Unexpected. For
that version we...

017d86529273c6f266d1eff28298300a076199f5 authored almost 6 years ago by Sune Simonsen <[email protected]>
Release v6.0.0-1

1f325e746033f698c6a040329a2fd7670daaf274 authored almost 6 years ago by Christopher Hiller <[email protected]>
update CHANGELOG for v6.0.0-1 [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

708de2dd89f37289f667e0baa1837672b641461c authored almost 6 years ago by Christopher Hiller <[email protected]>
fix missing mocharc.json in published package; see #3556

Signed-off-by: Christopher Hiller <[email protected]>

56c6326a12d6de5c7a089de7999d4359a954cdce authored almost 6 years ago by Christopher Hiller <[email protected]>
add link to docs for v6.0.0-0 release [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

d34ff8105d780c72a4148552fa2c77ecf0e73df4 authored almost 6 years ago by Christopher Hiller <[email protected]>
Release v6.0.0-0

8de7faee428a4cdce93665f2db749eb3a7436a0e authored almost 6 years ago by Christopher Hiller <[email protected]>
fix use of String.prototype.includes

12773c8e0a6fbd1f74d4559678f461a4d286b93d authored almost 6 years ago by Christopher Hiller <[email protected]>
fix CHANGELOG issue number and attribution [ci skip]

Signed-off-by: Christopher Hiller <[email protected]>

9da1bbbfa4a9f2a3814e340156a4d6ccf8609156 authored almost 6 years ago by Christopher Hiller <[email protected]>
update CHANGELOG for v6.0.0-0

- add linkifier script
- `package-lock.json` updates
- use exact version of `supports-color`

118eb45ebe1cd61d5acd37b5791052f24e7a56da authored almost 6 years ago by Christopher Hiller <[email protected]>
Added custom error objects including code (#3467)

* add MochaError and use

add missing E

add codes to docs

how to add new error

E_ to ...

0810441ca445b40ae16ec4bfc14e35d7a68fff13 authored almost 6 years ago by Craig Taub <[email protected]>
use userland which; closes #3639

- refactor to use modern JS in `lib/growl.js`; update ESLint rules accordingly

Signed-off-by: C...

360656d84a2fdd55c0e663aac39910041399e4bb authored almost 6 years ago by Christopher Hiller <[email protected]>
add more tests for utils.deprecate (#3628)

* ensure coverage data not cached between execution calls to npm test

* wallaby: disable debu...

471b7f45e522ca7c7f1e6905e2ddb7b1d13ee13b authored almost 6 years ago by Christopher Hiller <[email protected]>
rename "forbid" fixture files to have proper extension; closes #3636

- made fixture helper smart
- support empty args in run helpers

Signed-off-by: Christopher Hill...

273f4790ea80ffda6f4509822b86f5f8cb183103 authored almost 6 years ago by Christopher Hiller <[email protected]>
Fix an error when fn===undefined (#3580)

* Fix an error when fn===undefined

This change fixes an error that occurs when reporter is 'x...

ee6d5761f8d2eea4b12de4f5834a2f03c4c63a7c authored almost 6 years ago by Svetlana <[email protected]>
upgrade supports-color; closes #1304 (#3633)

Signed-off-by: Christopher Hiller <[email protected]>

e825be7c5920a1eb24562c4e027e4997b86f5861 authored almost 6 years ago by Christopher Hiller <[email protected]>
Growl: Web notifications & Desktop prerequisite software check (#3542)

Added (minorly brittle) means to verify prerequisite software
is installed. Migrated Growl supp...

81c60f92cdc70740526d52c9a5c28d9d2abeaf40 authored almost 6 years ago by P. Roebuck <[email protected]>
Fix spelling (#3635)

Changed spelling to "truthy"

0b9bc6997f1d73c0cbc5035c118311c0db5b4de0 authored almost 6 years ago by P. Roebuck <[email protected]>
Behavior of after/afterEach hooks with --bail flag (#3617)

* runner.js: delete second end emit

* tests

* documentation

* runner.js

* tests: cor...

a9f3526f3b29877b8769bcbe31ec2cc6af48f8f3 authored almost 6 years ago by Juerg B <[email protected]>
avoid global timers by way of ESLint; closes #3342 (#3374)

- Remove unused variables to avoid problems with #237 (and their associated inline ESLint direct...

dac4e9270720bb1ef30aa1cc2de207046f4b1376 authored almost 6 years ago by Christopher Hiller <[email protected]>