diff --git a/test/node/node.test.js b/test/node/node.test.js index d2396935b37..0159acbbb2e 100644 --- a/test/node/node.test.js +++ b/test/node/node.test.js @@ -44,4 +44,9 @@ describe('node flags', () => { done(); }); }); + + it('throws an error on supplying unknown flags', () => { + const { stderr } = run(__dirname, ['--node-args', '--unknown']); + expect(stderr).toContain('node: bad option:'); + }); });