@webpack-contrib/defaults
Version:
Project configuration and boilerplate defaults for webpack projects
18 lines (14 loc) • 366 B
JavaScript
import webpack from './helpers/compiler';
describe('Errors', () => {
test('Validation Error', async () => {
const config = {
loader: {
test: /\.js$/,
options: { name: 'fail' },
},
};
const stats = await webpack('fixture.js', config);
const { errors } = stats.toJson();
expect(errors).toMatchSnapshot();
});
});