Add 20 Pear/Bare platform modules replacing deprecated pear run.
Introduces hyper-bare-entry-runner, pear-runtime embed/link/config stack, and scaffold helpers for argv, storage, OTA, Electron, and headless UI. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
require('bare-process/global')
|
||||
const test = require('brittle')
|
||||
const { HyperPearPreflightSync, PROTOCOL } = require('../index.js')
|
||||
|
||||
test('preflight job', async (t) => {
|
||||
const p = new HyperPearPreflightSync()
|
||||
const j = p.start('pear://app', { id: 'j1' })
|
||||
p.recordAsset('j1', 'a.js')
|
||||
t.ok(p.complete('j1'))
|
||||
t.ok(p.isReady('j1'))
|
||||
await p.close()
|
||||
})
|
||||
Reference in New Issue
Block a user