Skip to content

Commit

Permalink
fix: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Oct 20, 2023
1 parent 45255c9 commit faef28f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playground/node/node.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { fetch } from 'ofetch'
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))

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

const req = new Request('http://localhost:8123')
Expand Down
1 change: 1 addition & 0 deletions playground/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"typescript": "^5.2.2"
},
"devDependencies": {
"tsx": "^3.14.0",
"ofetch": "^1.3.3",
"bun-types": "latest",
"@types/node": "^20.6.0"
Expand Down

0 comments on commit faef28f

Please sign in to comment.