Deepen all 16 pear-platform scaffolds to production APIs.
Expands spawn, argv, preflight, trust, OTA, pipes, and headless UI modules; bumps to 0.3.1 with fuller tests and registry tier updates. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
require('bare-process/global')
|
||||
const test = require('brittle')
|
||||
const { HyperPearDevProfile } = require('../index.js')
|
||||
const { HyperBareArgvBridge } = require('../../hyper-bare-argv-bridge/index.js')
|
||||
|
||||
test('dev flags', async (t) => {
|
||||
const d = new HyperPearDevProfile()
|
||||
d.enableDev()
|
||||
t.ok(d.snapshot().dev)
|
||||
t.ok(d.runtimeFlags().includes('--dev'))
|
||||
await d.close()
|
||||
})
|
||||
|
||||
test('merge argv bridge', async (t) => {
|
||||
const d = new HyperPearDevProfile()
|
||||
const a = new HyperBareArgvBridge()
|
||||
a.setArgv(['run', '--dev', '--preflight'])
|
||||
d.mergeArgv(a)
|
||||
t.ok(d._flags.preflight)
|
||||
await d.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user