@berun/runner-fuse-box
Version:
BeRun runner for fuse-box, a webpack alternative
20 lines (15 loc) • 545 B
text/typescript
import { create as berunJs } from '@berun/berun'
import presetReact from '../src/preset-react'
test('Gets FuseBox bundle configuration', async () => {
const berun = berunJs(presetReact)
expect(berun.fusebox.bundle('app').get('instructions')).toEqual('>index.ts')
expect(berun.fusebox.toBundles()).toEqual({
app: { instructions: '>index.ts', hmr: null, watch: null }
})
// HACK to wait 1s to allow Fusebox enough time to tear down
await new Promise((resolve, _) => {
setTimeout(() => {
resolve()
}, 500)
})
})