diff --git a/smoke-tests/test/pack-json-output.js b/smoke-tests/test/pack-json-output.js index 419da58324213..59a8e2cded66f 100644 --- a/smoke-tests/test/pack-json-output.js +++ b/smoke-tests/test/pack-json-output.js @@ -5,7 +5,7 @@ const setup = require('./fixtures/setup.js') t.test('pack --json returns only json on stdout', async t => { const { npmLocal } = await setup(t) - const { stderr, stdout } = await npmLocal('pack', '--json') + const { stderr, stdout } = await npmLocal('pack', '--json', { force: true }) t.match(stderr, /> npm@.* prepack\n/, 'stderr has banner') t.ok(JSON.parse(stdout), 'stdout can be parsed as json')