Skip to content

Commit

Permalink
add mjs,cjs to default file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
giltayar committed Jan 6, 2020
1 parent d0eece6 commit 6a46f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cli/run.js
Expand Up @@ -87,7 +87,7 @@ exports.builder = yargs =>
},
extension: {
default: defaults.extension,
defaultDescription: 'js',
defaultDescription: 'js,cjs,mjs',
description: 'File extension(s) to load',
group: GROUPS.FILES,
requiresArg: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/mocharc.json
@@ -1,6 +1,6 @@
{
"diff": true,
"extension": ["js"],
"extension": ["js", "cjs", "mjs"],
"opts": "./test/mocha.opts",
"package": "./package.json",
"reporter": "spec",
Expand Down

0 comments on commit 6a46f26

Please sign in to comment.