Commit graph

4 commits

Author SHA1 Message Date
Nigel Breslaw
a119b714a5
Migrarte final api/node tests to Vitest (#10114) 2025-11-19 18:18:23 +02:00
Nigel Breslaw
428aae87f6
Migrate api and compiler node/api tests (#10111) 2025-11-19 10:20:40 +02:00
Nigel Breslaw
7e690eb1fc
Migrate more api/node tests to Vitest (#10110)
Some checks are pending
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
autofix.ci / format_fix (push) Waiting to run
These are the simplest tests to convert. As of this PR 12 out of 58 tests have been migrated.
2025-11-18 21:58:06 +02:00
Nigel Breslaw
942b737577
Introduce Vitest for api/node tests (#10107)
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
Currently Ava is used to unit test the api/node project.
Vitest is already used elsewhere in the monorepo, integrates well with 
Vite, is fast and automatically handles tests written in Typescript. 
Replacing Ava would simplify how Typescript tests are performed.

This PR introduces Vitest to the project, sets it up to match Ava 
(isolated process for each test) and ports just the window.spec.mts 
file.

Later PR's will port the rest.
2025-11-18 17:41:34 +02:00