From 862f6e1bd44357af91d49894ac059fee5085c801 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sun, 4 Oct 2020 07:49:56 +0530 Subject: [PATCH] chore: add comment --- test/analyze/analyze-flag.test.js | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/test/analyze/analyze-flag.test.js b/test/analyze/analyze-flag.test.js index 5f5d50c36c2..a736aaffb8e 100644 --- a/test/analyze/analyze-flag.test.js +++ b/test/analyze/analyze-flag.test.js @@ -3,18 +3,23 @@ const { runWatch, isWindows } = require('../utils/test-utils'); describe('--analyze flag', () => { - if (!isWindows) { - it('should load webpack-bundle-analyzer plugin with --analyze flag', async () => { - const { stderr, stdout } = await runWatch({ - testCase: __dirname, - args: ['--analyze'], - setOutput: true, - outputKillStr: 'main', - }); - - expect(stderr).toBeFalsy(); - expect(stdout).toContain('BundleAnalyzerPlugin'); - expect(stdout).toContain('Webpack Bundle Analyzer is started at http://127.0.0.1:8888'); + // TODO: fix timeout for windows CI + if (isWindows) { + it('TODO: Fix on windows', () => { + expect(true).toBe(true); }); + return; } + it('should load webpack-bundle-analyzer plugin with --analyze flag', async () => { + const { stderr, stdout } = await runWatch({ + testCase: __dirname, + args: ['--analyze'], + setOutput: true, + outputKillStr: 'main', + }); + + expect(stderr).toBeFalsy(); + expect(stdout).toContain('BundleAnalyzerPlugin'); + expect(stdout).toContain('Webpack Bundle Analyzer is started at http://127.0.0.1:8888'); + }); });