Skip to content

Commit faef28f

Browse files
committed
fix: timeout
1 parent 45255c9 commit faef28f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

playground/node/node.test.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { fetch } from 'ofetch'
66
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
77

88
test('node integration test', async () => {
9-
const child = spawn('npx', ['tsx', './index.ts'], { cwd: process.cwd(), stdio: 'inherit' })
9+
const child = spawn('npx', ['--no-install', 'tsx', './index.ts'], {
10+
cwd: process.cwd(),
11+
stdio: 'inherit',
12+
})
1013
await sleep(2000)
1114

1215
const req = new Request('http://localhost:8123')

playground/node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"typescript": "^5.2.2"
1414
},
1515
"devDependencies": {
16+
"tsx": "^3.14.0",
1617
"ofetch": "^1.3.3",
1718
"bun-types": "latest",
1819
"@types/node": "^20.6.0"

0 commit comments

Comments
 (0)