MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / runPreviewServer

Function runPreviewServer

tests/setup/globalSetup.ts:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47function runPreviewServer(): DeferredPromise<ChildProcess> {
48 return spawnAndWaitForStdout('pnpm', ['start:preview'], (stdout) => {
49 return stdout.includes('Server is now listening');
50 });
51}
52
53function spawnAndWaitForStdout(
54 command: string,

Callers 1

globalSetupFunction · 0.85

Calls 1

spawnAndWaitForStdoutFunction · 0.85

Tested by

no test coverage detected