Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
refactor(test-utils): remove unused codes (#6369)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Aug 5, 2022
1 parent 463c15e commit 0df9553
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/test-utils/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions packages/test-utils/src/types.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -32,7 +31,6 @@ export interface TestContext {
browser?: Browser
url?: string
serverProcess?: ExecaChildProcess
listener?: Listener
}

export interface TestHooks {
Expand Down

0 comments on commit 0df9553

Please sign in to comment.