Skip to content

Commit 07ae296

Browse files
committed
fix: test stopping vitest exiting
1 parent 539fb3d commit 07ae296

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/integration-tests/process-cleanup.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ describe('Process cleanup', () => {
5353
});
5454

5555
const transport = new StdioClientTransport({
56-
command: 'npm',
57-
args: ['exec', 'tsx', 'test-server.ts'],
56+
command: 'node',
57+
args: ['--import', 'tsx', 'test-server.ts'],
5858
cwd: __dirname
5959
});
6060

@@ -80,8 +80,8 @@ describe('Process cleanup', () => {
8080
});
8181

8282
const transport = new StdioClientTransport({
83-
command: 'npm',
84-
args: ['exec', 'tsx', 'server-that-hangs.ts'],
83+
command: 'node',
84+
args: ['--import', 'tsx', 'server-that-hangs.ts'],
8585
cwd: __dirname
8686
});
8787

0 commit comments

Comments
 (0)