UNPKG

304 BJavaScriptView Raw
1import webpack from './helpers/compiler';
2
3it('validation', async () => {
4 const config = {
5 loader: {
6 test: /\.js$/,
7 options: { name: false },
8 },
9 };
10
11 const stats = await webpack('fixture.js', config);
12 const { errors } = stats.toJson();
13
14 expect(errors).toMatchSnapshot();
15});