Skip to content

Commit

Permalink
fix: skip tests on windows (flaky)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Oct 10, 2020
1 parent af7b515 commit 5e2b4f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webpack-cli/lib/utils/flag-defaults.js
Expand Up @@ -16,7 +16,8 @@ const cacheDefaults = (finalConfig, parsedArgs) => {
const assignFlagDefaults = (compilerConfig, parsedArgs) => {
if (Array.isArray(compilerConfig)) {
return compilerConfig.map((config) => cacheDefaults(config, parsedArgs));
} else return cacheDefaults(compilerConfig, parsedArgs);
}
return cacheDefaults(compilerConfig, parsedArgs);
};

module.exports = assignFlagDefaults;
3 changes: 3 additions & 0 deletions test/core-flags/cache-flags.test.js
Expand Up @@ -70,6 +70,7 @@ describe('cache related flags from core', () => {
});

it('should assign cache build dependencies correctly when cache type is filesystem', () => {
// TODO: Fix on windows
if (isWindows) return;
const { stderr, stdout } = run(__dirname, ['--cache-type', 'filesystem', '-c', './webpack.config.js']);
expect(stderr).toBeFalsy();
Expand All @@ -84,6 +85,7 @@ describe('cache related flags from core', () => {
});

it('should assign cache build dependencies correctly when cache type is filesystem in config', () => {
// TODO: Fix on windows
if (isWindows) return;
const { stderr, stdout } = run(__dirname, ['-c', './webpack.cache.config.js']);
expect(stderr).toBeFalsy();
Expand All @@ -98,6 +100,7 @@ describe('cache related flags from core', () => {
});

it('should assign cache build dependencies with multiple configs', () => {
// TODO: Fix on windows
if (isWindows) return;
const { stderr, stdout, exitCode } = run(__dirname, ['-c', './webpack.cache.config.js', '-c', './webpack.config.js']);
expect(stderr).toBeFalsy();
Expand Down

0 comments on commit 5e2b4f5

Please sign in to comment.