Skip to content

Commit 4254c8b

Browse files
committed
test(cli): add a test for inheritance in package.json files
1 parent 0ca8850 commit 4254c8b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/integration/options.spec.js

+12
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,16 @@ describe('options', function () {
4242
expect(extended.reporter, 'to equal', 'html');
4343
expect(extended.slow, 'to equal', 30);
4444
});
45+
46+
it('Should support extended options using package.json', function () {
47+
var extended = loadOptions([
48+
'--package',
49+
path.join(workspaceDir, 'package-lock.json')
50+
]);
51+
expect(extended.require, 'to equal', ['foo', 'bar']);
52+
expect(extended.bail, 'to equal', true);
53+
expect(extended.reporter, 'to equal', 'html');
54+
expect(extended.slow, 'to equal', 30);
55+
expect(extended.grep, 'to equal', 'package');
56+
});
4557
});

0 commit comments

Comments
 (0)