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

Function runTestServer

tests/index.ts:34–52  ·  view source on GitHub ↗
({ page }, use)

Source from the content-addressed store, hash-verified

32 emulatorUrl: EMULATOR_URL,
33
34 async runTestServer({ page }, use) {
35 const { app, address } = await runTestServer();
36
37 await use(async () => {
38 await page.goto(address.replace('127.0.0.1', 'localhost'), { waitUntil: 'networkidle' });
39
40 if (process.env.PWDEBUG === '1' || process.env.PWDEBUG === 'true') {
41 await page.evaluate(() => {
42 localStorage.setItem('CSB_EMULATOR_DEBUG', 'true');
43 });
44 }
45
46 await page.waitForFunction(() => {
47 return typeof window.Nodebox !== 'undefined';
48 });
49 });
50
51 await app.close();
52 },
53
54 async getBridgeFrameLocator({ page }, use) {
55 await use(async () => {

Callers

nothing calls this directly

Calls 1

runTestServerFunction · 0.90

Tested by

no test coverage detected