1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00
unleash.unleash/src/lib/db
Christopher Kolstad b681702b77
task: migrate tests to vitest
Vitest Pros:
* Automated failing test comments on github PRs
* A nice local UI with incremental testing when changing files (`yarn
test:ui`)
* Also nicely supported in all major IDEs, click to run test works (so
we won't miss what we had with jest).
* Works well with ESM

Vitest Cons:
* The ESBuild transformer vitest uses takes a little longer to transform
than our current SWC/jest setup, however, it is possible to setup SWC as
the transformer for vitest as well (though it only does one transform,
so we're paying ~7-10 seconds instead of ~ 2-3 seconds in transform
phase).
* Exposes how slow our tests are (tongue in cheek here)
2025-05-16 11:19:10 +02:00
..
crud feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
access-store.test.ts task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
access-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
account-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
addon-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
api-token-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
client-applications-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
client-instance-store.ts feat: track last seen clients using bulk update (#9981) 2025-05-15 13:06:54 +02:00
db-pool.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
db.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
event-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
favorite-features-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
favorite-projects-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
feature-environment-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
feature-strategy-store.test.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
feature-tag-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
feature-type-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
group-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
index.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
pat-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
project-stats-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
public-signup-token-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
reset-token-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
role-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
session-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
setting-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
strategy-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
tag-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
transaction.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
user-feedback-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
user-splash-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
user-store.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00