Skip to content

Commit db591bd

Browse files
committed
test(integration): add cli config test for .mjs
1 parent 9390441 commit db591bd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

test/integration/config.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ describe('config', function () {
1212
var configDir = path.join(__dirname, 'fixtures', 'config');
1313
var js = loadConfig(path.join(configDir, 'mocharc.js'));
1414
var cjs = loadConfig(path.join(configDir, 'mocharc.cjs'));
15+
var mjs = loadConfig(path.join(configDir, 'mocharc.mjs'));
1516
var json = loadConfig(path.join(configDir, 'mocharc.json'));
1617
var yaml = loadConfig(path.join(configDir, 'mocharc.yaml'));
1718
expect(js, 'to equal', json);
1819
expect(js, 'to equal', cjs);
20+
expect(mjs, 'to equal', cjs);
1921
expect(json, 'to equal', yaml);
2022
});
2123

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
// a comment
4+
export default {
5+
require: ['foo', 'bar'],
6+
bail: true,
7+
reporter: 'dot',
8+
slow: 60
9+
};

0 commit comments

Comments
 (0)