Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: pass a callback to webpack from webpack-cli #1977

Merged
merged 12 commits into from Oct 26, 2020
10 changes: 10 additions & 0 deletions test/core-flags/cache-flags.test.js
@@ -1,10 +1,20 @@
'use strict';

const path = require('path');
const rimraf = require('rimraf');
const { run, isWindows } = require('../utils/test-utils');
const { existsSync, writeFileSync, unlinkSync } = require('fs');
const { resolve } = require('path');

describe('cache related flags from core', () => {
beforeEach((done) => {
if (isWindows) return;
piecyk marked this conversation as resolved.
Show resolved Hide resolved

rimraf(path.join(__dirname, '../../node_modules/.cache/webpack/*'), () => {
done();
});
});
piecyk marked this conversation as resolved.
Show resolved Hide resolved

it('should be successful with --cache ', () => {
const { stderr, stdout } = run(__dirname, ['--cache']);
expect(stderr).toBeFalsy();
Expand Down