You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

23 lines
436 B

import test from 'ava';
import { validate } from 'webpack';
import { Neutrino } from 'neutrino';
test('loads preset', t => {
t.notThrows(() => require('..'));
});
test('uses preset', t => {
const api = Neutrino();
t.notThrows(() => api.use(require('..')));
});
test('valid preset', t => {
const api = Neutrino();
api.use(require('..'));
const errors = validate(api.config.toConfig());
t.is(errors.length, 0);
});