UNPKG

@berun/runner-fuse-box

Version:

BeRun runner for fuse-box, a webpack alternative

21 lines (18 loc) 687 B
import { create as berunJs } from '@berun/berun' import presetReact from '../src/preset-react' test('Gets FuseBox core configuration', () => { const berun = berunJs(presetReact) expect(berun.fusebox.get('homeDir')).toEqual( '/Volumes/DATA/projects/berun/packages/runner-fuse-box/src' ) expect(berun.fusebox.get('sourceMaps')).toEqual({ project: true, vendor: false }) expect(berun.fusebox.get('hash')).toEqual(false) expect(berun.fusebox.get('cache')).toEqual(true) expect(berun.fusebox.get('output')).toEqual( '/Volumes/DATA/projects/berun/packages/runner-fuse-box/build/$name.js' ) expect(berun.fusebox.get('target')).toEqual('browser@es2018') })