Skip to content

Commit 8f748dd

Browse files
test(cli): test base file alongside extending files
Co-authored-by: Josh Goldberg ✨ <[email protected]>
1 parent 0bda388 commit 8f748dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/integration/options.spec.js

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ describe('options', function () {
4343
expect(extended.slow, 'to equal', 30);
4444
});
4545

46+
it('Should support standalone options using standalone rc file', function () {
47+
var extended = loadOptions(['--config', configFileStandalone]);
48+
expect(extended.require, 'to equal', ['foo', 'bar']);
49+
expect(extended.bail, 'to equal', true);
50+
expect(extended.reporter, 'to equal', 'dot');
51+
expect(extended.slow, 'to equal', 60);
52+
});
4653
it('Should support extended options using package.json', function () {
4754
var extended = loadOptions([
4855
'--no-config',

0 commit comments

Comments
 (0)