diff --git a/playground/node/node.test.mjs b/playground/node/node.test.mjs index befce9a..307e810 100644 --- a/playground/node/node.test.mjs +++ b/playground/node/node.test.mjs @@ -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') diff --git a/playground/node/package.json b/playground/node/package.json index d7fc08b..f6c03c3 100644 --- a/playground/node/package.json +++ b/playground/node/package.json @@ -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"