mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
refactor(test-utils): remove unused codes (#6369)
This commit is contained in:
parent
463c15e3d2
commit
0df9553ec4
@ -55,9 +55,6 @@ export async function stopServer () {
|
||||
if (ctx.serverProcess) {
|
||||
await ctx.serverProcess.kill()
|
||||
}
|
||||
if (ctx.listener) {
|
||||
await ctx.listener.close()
|
||||
}
|
||||
}
|
||||
|
||||
export function fetch (path: string, options?: any) {
|
||||
|
@ -1,7 +1,6 @@
|
||||
import type { Nuxt, NuxtConfig } from '@nuxt/schema'
|
||||
import type { ExecaChildProcess } from 'execa'
|
||||
import type { Browser, LaunchOptions } from 'playwright'
|
||||
import type { Listener } from 'listhen'
|
||||
|
||||
export type TestRunner = 'vitest' | 'jest'
|
||||
|
||||
@ -32,7 +31,6 @@ export interface TestContext {
|
||||
browser?: Browser
|
||||
url?: string
|
||||
serverProcess?: ExecaChildProcess
|
||||
listener?: Listener
|
||||
}
|
||||
|
||||
export interface TestHooks {
|
||||
|
Loading…
Reference in New Issue
Block a user