test: add GatewayClient WebSocket unit tests (12 tests)

Cover core networking: connect/disconnect, challenge handshake,
event routing, request/response, error handling, timeout,
reconnect behavior, and credential updates.

Adds __APP_VERSION__ define to vitest.config.ts for test env.
Total test count: 95 → 107.
This commit is contained in:
Nicolas Varrot
2026-02-13 14:03:16 +00:00
parent 98f273649e
commit 52458b6171
2 changed files with 277 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
define: {
__APP_VERSION__: JSON.stringify('0.0.0-test'),
},
test: {
globals: true,
environment: 'node',