river-build / river

https://river-sample-app.vercel.app
MIT License
23 stars 6 forks source link

move encryption package to vitest #1579

Closed miguel-nascimento closed 1 day ago

miguel-nascimento commented 2 days ago

stacked on top of #1576

I'm breaking #1462 into small PRs

Moving the encryption package from jest to vitest. Tests are running in concurrent mode

vercel[bot] commented 2 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
river-sample-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 6:44pm
miguel-nascimento commented 1 day ago

Yes

CI Multinode Ent > Build & Test (with entitlements)

@river-build/encryption:test:ci
  cache bypass, force executing 43da7d9e616896f6

   RUN  v2.1.5 /home/runner/work/river/river/packages/encryption

   ✓ src/tests/group-encryption-protocol.test.ts (3 tests) 32ms
   ✓ src/tests/group-encryptionDelegate.test.ts (1 test) 52ms
   ✓ src/tests/pk.test.ts (4 tests) 119ms
   ✓ src/tests/encryptionDelegate.test.ts (4 tests) 170ms
   ✓ src/tests/encryption-protocol.test.ts (3 tests) 132ms
   ✓ src/tests/decryptionExtensions.test.ts (2 tests) 182ms
   ✓ src/tests/cryptoStore.test.ts (6 tests) 2243ms
     ✓ ClientStoreTests > Expired devices are not fetched 606ms
     ✓ ClientStoreTests > Adding the same device id twice updates the expiration time [85](https://github.com/river-build/river/actions/runs/11939570235/job/33280374256?pr=1579#step:22:96)9ms
     ✓ ClientStoreTests > Expired devices are purged on init 610ms

   Test Files  7 passed (7)
        Tests  23 passed (23)
     Start at  18:39:20
     Duration  4.38s (transform 1.58s, setup 782ms, collect 7.62s, tests 2.93s, environment 2ms, prepare 1.55s)