Skip to content

Commit

Permalink
feat(deps): upgrade execa to v9 (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored May 15, 2024
1 parent 726e0a2 commit 55197c2
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"defu": "^6.1.4",
"destr": "^2.0.3",
"estree-walker": "^3.0.3",
"execa": "^8.0.1",
"execa": "^9.1.0",
"fake-indexeddb": "^5.0.2",
"get-port-please": "^3.1.2",
"local-pkg": "^0.5.0",
Expand Down Expand Up @@ -151,7 +151,7 @@
"vue": "^3.4.27"
},
"engines": {
"node": "^14.18.0 || >=16.10.0"
"node": ">=18.19.0"
},
"packageManager": "[email protected]"
}
103 changes: 101 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { FetchOptions } from 'ofetch'
import { $fetch as _$fetch, fetch as _fetch } from 'ofetch'
import * as _kit from '@nuxt/kit'
import { resolve } from 'pathe'

import { useTestContext } from './context'

// @ts-expect-error type cast kit default export
Expand Down Expand Up @@ -70,7 +71,7 @@ export async function startServer(options: StartServerOptions = {}) {
export async function stopServer() {
const ctx = useTestContext()
if (ctx.serverProcess) {
await ctx.serverProcess.kill()
ctx.serverProcess.kill()
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Nuxt, NuxtConfig } from '@nuxt/schema'
import type { ExecaChildProcess } from 'execa'
import type { Subprocess } from 'execa'
import type { Browser, LaunchOptions } from 'playwright-core'

export type TestRunner = 'vitest' | 'jest' | 'cucumber'
Expand Down Expand Up @@ -31,7 +31,7 @@ export interface TestContext {
nuxt?: Nuxt
browser?: Browser
url?: string
serverProcess?: ExecaChildProcess
serverProcess?: Subprocess
mockFn?: (...args: unknown[]) => unknown
/**
* Functions to run on the vitest `afterAll` hook.
Expand Down

0 comments on commit 55197c2

Please sign in to comment.