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 { HyperBareAddonResolve } = require('../index.js')
|
||||
const { HyperBareTargetMatrix } = require('../../hyper-bare-target-matrix/index.js')
|
||||
|
||||
test('resolve addon', async (t) => {
|
||||
const a = new HyperBareAddonResolve()
|
||||
a.register('binding', { 'darwin-arm64': '/lib/binding.node' })
|
||||
t.ok(a.resolve('binding'))
|
||||
a.register('bare-fs', { 'darwin-arm64': '/addons/fs.node' })
|
||||
t.ok(a.resolve('bare-fs'))
|
||||
await a.close()
|
||||
})
|
||||
|
||||
test('preferHost matrix', async (t) => {
|
||||
const a = new HyperBareAddonResolve()
|
||||
const m = new HyperBareTargetMatrix()
|
||||
m.select('linux-arm64')
|
||||
a.register('x', { 'linux-arm64': '/x.so' })
|
||||
a.preferHost(m)
|
||||
t.ok(a.resolve('x'))
|
||||
await a.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user