Skip to content

Migrate to Vitest#13

Merged
surilindur merged 21 commits into
mainfrom
wip/vite
Mar 12, 2026
Merged

Migrate to Vitest#13
surilindur merged 21 commits into
mainfrom
wip/vite

Conversation

@surilindur
Copy link
Copy Markdown
Collaborator

@surilindur surilindur commented Mar 5, 2026

This is a test migration to Vite and Vitest, as an alternative to Webpack and Jest. This allows sharing tests between Node and browser, and running them with relative ease. There is also a VS Code Dev Container definition included to help keep things better isolated during development.

The CI might fail, need to see. 😅

Edit: so using Vite for the build is not a good idea... but Vitest should still work fine.

Edit 2: Managed to fix it, so the major changes are moving to module, using Vitest, and dropping Node 18. This allows removing a whole lot of dependencies, as well as combining the browser and node tests into a single file. The recommended linting rules from upstream are also directly used. 🎉

@surilindur surilindur changed the title Migrate to Vite and Vitest Migrate to Vitest Mar 5, 2026
@surilindur surilindur merged commit a40796d into main Mar 12, 2026
9 checks passed
@surilindur surilindur deleted the wip/vite branch March 12, 2026 09:49
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.

1 participant