fix(tapbundle_serverside): add TapNodeTools cleanup hooks to stop SmartNetwork processes after tests
This commit is contained in:
@@ -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.'
|
||||
}
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user