MCPcopy Create free account
hub / github.com/antfu/node-modules-inspector / ensureWebcontainerFixture

Function ensureWebcontainerFixture

test/e2e/utils/orchestrate.mjs:60–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60async function ensureWebcontainerFixture() {
61 if (!FORCE && existsSync(path.join(FIXTURE_WC, 'index.html'))) {
62 console.log('[e2e:orchestrate] webcontainer fixture exists — skipping (set E2E_REBUILD=1 to force).')
63 return
64 }
65 console.log('[e2e:orchestrate] Building webcontainer-mode bundle...')
66 run('pnpm -C packages/node-modules-inspector run wc:build')
67 await copyDir(DIST_PUBLIC, FIXTURE_WC)
68 await writeMarker('webcontainer')
69}
70
71async function ensureMainBuildAndStaticFixture() {
72 const hasFixture = existsSync(path.join(FIXTURE_BUILD, 'index.html'))

Callers 1

buildFixturesFunction · 0.85

Calls 3

copyDirFunction · 0.85
writeMarkerFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…