You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: Migrate all packages from jest to vitest (#13)
Jest's ESM support sucks
([ref](jestjs/jest#9430)) and is held up on
some interminable issues related to Node VMs
([ref](nodejs/node#37648)). I was impressed
with `vite` and `vitest` following my experience implementing #8, and
after I discovered that `vitest` has a [browser mode for unit
tests](https://vitest.dev/guide/browser/#browser-mode)—which will
ultimately allow us to test under `ses` in an actual browser
environment—I was sold.
This migrates the entire repo from `jest` to `vitest`. They work very
similarly, except [`vitest` has a number of benefits over
`jest`](https://vitest.dev/guide/comparisons.html), such as not
polluting the global namespace by default. I tried running some tests
under `ses` with lockdown in the browser, and it worked perfectly.
However, it's held up on rewriting tests that rely on JSDOM, so we're
tracking that work in #12.
0 commit comments