Skip to content

Commit f7f3503

Browse files
committed
Use nano-spawn
1 parent b8e7b51 commit f7f3503

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"devDependencies": {
6363
"@ehmicky/dev-tasks": "^3.0.11",
6464
"@sinonjs/fake-timers": "^11.2.2",
65-
"execa": "^9.3.1",
65+
"nano-spawn": "^0.1.0",
6666
"semver": "^7.6.3",
6767
"sinon": "^18.0.0",
6868
"test-each": "^7.0.0"

src/warnings.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fileURLToPath } from 'node:url'
22

33
import test from 'ava'
4-
import { execaNode } from 'execa'
4+
import spawn from 'nano-spawn'
55
import { each } from 'test-each'
66

77
import { getConsoleStub } from './helpers/console.test.js'
@@ -71,7 +71,7 @@ test.serial('user event handlers should be kept', async (t) => {
7171
})
7272

7373
const callCli = async (eventName, cliFlag) => {
74-
const { stdout } = await execaNode(cliFlag, [CLI_FIXTURE, eventName])
74+
const { stdout } = await spawn('node', [cliFlag, CLI_FIXTURE, eventName])
7575
return stdout
7676
}
7777

0 commit comments

Comments
 (0)