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

Function ensureBuildSubbaseFixture

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

Source from the content-addressed store, hash-verified

86}
87
88async function ensureBuildSubbaseFixture() {
89 if (!FORCE && existsSync(path.join(FIXTURE_BUILD_SUBBASE_OUT, 'index.html'))) {
90 console.log('[e2e:orchestrate] sub-base build fixture present — skipping (set E2E_REBUILD=1 to force).')
91 return
92 }
93 console.log('[e2e:orchestrate] Generating sub-base static export with --base /__node-modules-inspector/ ...')
94 await fs.rm(FIXTURE_BUILD_SUBBASE, { recursive: true, force: true })
95 await fs.mkdir(FIXTURE_BUILD_SUBBASE, { recursive: true })
96 run(`node packages/node-modules-inspector/bin.mjs build --outDir ${path.relative(ROOT, FIXTURE_BUILD_SUBBASE_OUT)} --base /__node-modules-inspector/ --config ${E2E_INSPECTOR_CONFIG}`)
97}
98
99async function ensureToolsBuilt() {
100 if (!FORCE && existsSync(TOOLS_DIST))

Callers 1

buildFixturesFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…