fix(tapbundle_serverside): add TapNodeTools cleanup hooks to stop SmartNetwork processes after tests

This commit is contained in:
2026-03-27 18:23:42 +00:00
parent 7490da22c0
commit 2946169360
10 changed files with 151 additions and 152 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tstest',
version: '3.6.2',
version: '3.6.3',
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
}

View File

@@ -83,6 +83,9 @@ export class ChromiumRuntimeAdapter extends RuntimeAdapter {
throw new Error('Could not find a free WebSocket port in range 30000-40000');
}
// Stop the smartnetwork instance to release the Rust bridge process
await smartnetwork.stop();
// Log selected ports for debugging
if (!this.logger.options.quiet) {
console.log(`Selected ports - HTTP: ${httpPort}, WebSocket: ${wsPort}`);