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); });