diff --git a/test/cli.test.js b/test/cli.test.js index 7179b74f9b..50f9b71b92 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -29,7 +29,7 @@ describe('CLI', () => { it('--bonjour', (done) => { runDevServer('--bonjour') - .then((output) => { + .onClose.then((output) => { expect(output.code).toEqual(0); expect(output.stdout.indexOf('Bonjour') >= 0).toBe(true); done();