mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +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) {
|
if (ctx.serverProcess) {
|
||||||
await ctx.serverProcess.kill()
|
await ctx.serverProcess.kill()
|
||||||
}
|
}
|
||||||
if (ctx.listener) {
|
|
||||||
await ctx.listener.close()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function fetch (path: string, options?: any) {
|
export function fetch (path: string, options?: any) {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import type { Nuxt, NuxtConfig } from '@nuxt/schema'
|
import type { Nuxt, NuxtConfig } from '@nuxt/schema'
|
||||||
import type { ExecaChildProcess } from 'execa'
|
import type { ExecaChildProcess } from 'execa'
|
||||||
import type { Browser, LaunchOptions } from 'playwright'
|
import type { Browser, LaunchOptions } from 'playwright'
|
||||||
import type { Listener } from 'listhen'
|
|
||||||
|
|
||||||
export type TestRunner = 'vitest' | 'jest'
|
export type TestRunner = 'vitest' | 'jest'
|
||||||
|
|
||||||
@ -32,7 +31,6 @@ export interface TestContext {
|
|||||||
browser?: Browser
|
browser?: Browser
|
||||||
url?: string
|
url?: string
|
||||||
serverProcess?: ExecaChildProcess
|
serverProcess?: ExecaChildProcess
|
||||||
listener?: Listener
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TestHooks {
|
export interface TestHooks {
|
||||||
|
Loading…
Reference in New Issue
Block a user