Skip to content

Commit

Permalink
Fix test for Node v18?
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Jan 22, 2024
1 parent 282ced5 commit f900349
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/fixtures/get-test-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import { execa } from "execa"
export const getTestCLI = async (t: ExecutionContext) => {
return {
executeCommand: async (args: string[]) => {
const result = await execa("tsx", ["src/cli/cli.ts", ...args], {
reject: false,
})
const result = await execa(
"node",
["--import=tsx", "src/cli/cli.ts", ...args],
{
reject: false,
}
)
t.log(result.stderr)
t.log(result.stdout)
return result
Expand Down

0 comments on commit f900349

Please sign in to comment.