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,11 @@
|
||||
require('bare-process/global')
|
||||
const test = require('brittle')
|
||||
const { HyperPearWorkerPipe } = require('../index.js')
|
||||
|
||||
test('pipe messages', async (t) => {
|
||||
const p = new HyperPearWorkerPipe()
|
||||
const pipe = p.create('p1')
|
||||
p.send('p1', { hello: 1 })
|
||||
t.is(p.drain('p1').length, 1)
|
||||
await p.close()
|
||||
})
|
||||
Reference in New Issue
Block a user