@webpack-contrib/defaults
Version:
Project configuration and boilerplate defaults for webpack projects
22 lines (19 loc) • 491 B
JavaScript
import {
compile,
execute,
getCompiler,
getErrors,
getWarnings,
readAsset,
} from './helpers';
describe('loader', () => {
it('should work', async () => {
const compiler = getCompiler('simple.js');
const stats = await compile(compiler);
expect(
execute(readAsset('main.bundle.js', compiler, stats))
).toMatchSnapshot('result');
expect(getErrors(stats)).toMatchSnapshot('errors');
expect(getWarnings(stats)).toMatchSnapshot('warnings');
});
});