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:
@@ -4,7 +4,16 @@ const { HyperBareImportMap } = require('../index.js')
|
||||
|
||||
test('imports map', async (t) => {
|
||||
const m = new HyperBareImportMap()
|
||||
m.loadFromPackage({ imports: { fs: { bare: 'bare-fs' } } })
|
||||
t.is(m.resolve('fs'), 'bare-fs')
|
||||
m.loadFromPackage({ imports: { '#app': './app.js' } })
|
||||
t.is(m.resolve('#app'), './app.js')
|
||||
await m.close()
|
||||
})
|
||||
|
||||
test('resolveChain', async (t) => {
|
||||
const m = new HyperBareImportMap()
|
||||
m.set('#a', '#b')
|
||||
m.set('#b', './final.js')
|
||||
const c = m.resolveChain('#a')
|
||||
t.is(c.target, './final.js')
|
||||
await m.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user