Skip to content

remove spec from .mocharc.json#978

Merged
mbostock merged 2 commits into
mainfrom
mbostock/mocha-spec
Jul 12, 2022
Merged

remove spec from .mocharc.json#978
mbostock merged 2 commits into
mainfrom
mbostock/mocha-spec

Conversation

@mbostock
Copy link
Copy Markdown
Member

@mbostock mbostock commented Jul 8, 2022

I’m not sure why this was added as part of TypeScript in #880, but having the spec in the .mocharc.json makes it harder to give Mocha a different spec from the command line. (It seems that Mocha ignores the spec on the command line in favor of the one in the .mocharc.json.) This changes makes it easier to run Mocha in watch mode on a custom spec, as shown in the CONTRIBUTING.md.

@mbostock mbostock requested a review from duaneatat July 8, 2022 19:39
@mbostock mbostock force-pushed the mbostock/mocha-spec branch from 583ec3f to 72615f8 Compare July 12, 2022 14:43
@mbostock mbostock merged commit 845798a into main Jul 12, 2022
@mbostock mbostock deleted the mbostock/mocha-spec branch July 12, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants