MCPcopy
hub / github.com/freshframework/fresh / withDevServer

Function withDevServer

packages/plugin-vite/tests/test_utils.ts:127–134  ·  view source on GitHub ↗
(
  fixtureDir: string,
  fn: (address: string, dir: string) => void | Promise<void>,
  env: Record<string, string> = {},
)

Source from the content-addressed store, hash-verified

125}
126
127export async function withDevServer(
128 fixtureDir: string,
129 fn: (address: string, dir: string) => void | Promise<void>,
130 env: Record<string, string> = {},
131) {
132 await using tmp = await prepareDevServer(fixtureDir);
133 await launchDevServer(tmp.dir, fn, env);
134}
135
136export async function buildVite(
137 fixtureDir: string,

Callers 1

dev_server_test.tsFile · 0.90

Calls 2

prepareDevServerFunction · 0.85
launchDevServerFunction · 0.85

Tested by

no test coverage detected