From 6ef43b07bd8c06ca246d6a7e68d8b725552cff6a Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 20 May 2020 14:06:59 +0530 Subject: [PATCH] tests: better verbose test --- test/verbose/verbose-flag.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/verbose/verbose-flag.test.js b/test/verbose/verbose-flag.test.js index f00c0eda958..d1c2439a3c2 100644 --- a/test/verbose/verbose-flag.test.js +++ b/test/verbose/verbose-flag.test.js @@ -6,6 +6,7 @@ describe('verbose flag', () => { it('should accept --verbose', () => { const { stderr, stdout } = run(__dirname, ['--verbose']); expect(stderr).toBeFalsy(); - expect(stdout).toBeTruthy(); + expect(stdout).toContain('single entry'); + expect(stdout).toContain('LOG from webpack.buildChunkGraph.visitModules'); }); });