Skip to content

Conversation

@callmedenchick
Copy link
Contributor

@callmedenchick callmedenchick commented Sep 18, 2025

Locally:

➜  bridge-sdk git:(main) ✗ BRIDGE_URL=http://localhost:8081/bridge npx vitest run --reporter=verbose
▲ [WARNING] Unrecognized target environment "ES2024" [tsconfig.json]
....
Received 1000/1000 messages
Successfully processed 1000 messages across 10 clients

 ✓ test/bridge.stress.spec.ts (1) 907ms
   ✓ Bridge stress tests (1) 906ms
     ✓ should handle 10 clients sending 100 messages each 906ms
 ✓ test/gateway.e2e.spec.ts (8) 4585ms
   ✓ BridgeGateway (8) 4585ms
     ✓ should connect and close
     ✓ should receive a message over an open bridge connection
     ✓ should not receive a message after reconnecting with updated lastEventId 1011ms
     ✓ should receive a message again after reconnecting with valid lastEventId
     ✓ should not receive a message sent while disconnected if reconnecting with updated lastEventId 1008ms
     ✓ should receive a message sent while disconnected if reconnecting without lastEventId
     ✓ should not receive message after ttl expired 2508ms
     ✓ should receive multiple messages in order
 ✓ test/provider.e2e.spec.ts (3)
   ✓ BridgeProvider (3)
     ✓ should send message and retrieve it
     ✓ should reconnect to another wallet and receive message
     ✓ should receive message after reconnect

 Test Files  3 passed (3)
      Tests  12 passed (12)
   Start at  19:57:26
   Duration  4.81s (transform 80ms, setup 0ms, collect 214ms, tests 5.54s, environment 0ms, prepare 81ms)

Remotely:

➜  bridge-sdk git:(main) ✗ BRIDGE_URL=https://ton-secret/bridge npx vitest run --reporter=verbose
▲ [WARNING] Unrecognized target environment "ES2024" [tsconfig.json]

    tsconfig.json:3:18:
      3 │         "target": "ES2024",

stdout | test/bridge.stress.spec.ts > Bridge stress tests > should handle 10 clients sending 100 messages each
Received 1000/1000 messages
Successfully processed 1000 messages across 10 clients

 ✓ test/bridge.stress.spec.ts (1) 7593ms
   ✓ Bridge stress tests (1) 7593ms
     ✓ should handle 10 clients sending 100 messages each 7592ms
 ❯ test/gateway.e2e.spec.ts (8) 14440ms
   ❯ BridgeGateway (8) 14440ms
     ✓ should connect and close 728ms
     ✓ should receive a message over an open bridge connection 570ms
     ✓ should not receive a message after reconnecting with updated lastEventId 1622ms
     ✓ should receive a message again after reconnecting with valid lastEventId 889ms
     ✓ should not receive a message sent while disconnected if reconnecting with updated lastEventId 1692ms
     × should receive a message sent while disconnected if reconnecting without lastEventId 5178ms
     ✓ should not receive message after ttl expired 3065ms
     ✓ should receive multiple messages in order 694ms
 ✓ test/provider.e2e.spec.ts (3) 2592ms
   ✓ BridgeProvider (3) 2592ms
     ✓ should send message and retrieve it 931ms
     ✓ should reconnect to another wallet and receive message 891ms
     ✓ should receive message after reconnect 769ms

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 FAIL  test/gateway.e2e.spec.ts > BridgeGateway > should receive a message sent while disconnected if reconnecting without lastEventId
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

 Test Files  1 failed | 2 passed (3)
      Tests  1 failed | 11 passed (12)
   Start at  19:59:43
   Duration  14.67s (transform 103ms, setup 0ms, collect 250ms, tests 24.62s, environment 0ms, prepare 100ms)

@callmedenchick callmedenchick changed the title Use vitest Use vitest instead of jest Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants