mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
11 lines
362 B
TypeScript
11 lines
362 B
TypeScript
// this is automatically detected by playground/vitestSetup.ts and will replace
|
|
// the default e2e test serve behavior
|
|
|
|
// The server is started in the test, so we need to have a custom serve
|
|
// function or a default server will be created
|
|
export async function serve(): Promise<{ close(): Promise<void> }> {
|
|
return {
|
|
close: () => Promise.resolve(),
|
|
}
|
|
}
|