@webpack-contrib/defaults
Version:
Project configuration and boilerplate defaults for webpack projects
18 lines (14 loc) • 355 B
JavaScript
import webpack from './helpers/compiler';
describe('Loader', () => {
test('Defaults', async () => {
const config = {
loader: {
test: /\.js$/,
options: {},
},
};
const stats = await webpack('fixture.js', config);
const { source } = stats.toJson().modules[1];
expect(source).toMatchSnapshot();
});
});