Skip to content

chore: migrate tests to Vitest#695

Closed
manzt wants to merge 5 commits intomainfrom
vitest
Closed

chore: migrate tests to Vitest#695
manzt wants to merge 5 commits intomainfrom
vitest

Conversation

@manzt
Copy link
Copy Markdown
Member

@manzt manzt commented Aug 30, 2023

This is an experiment to replace tape-* with Vitest. We are already using Vite for development, and Vitest works really nicely and can mock many different environments.

Writing tests with Vitest are much more ergonomic, and we can avoid tests with many assertions in favor of separate tests with a single assertion with teh test.each usages.

So far I've only ported the tests in loaders, so to try this out you'll need to:

pnpm i
cd packages/loaders
pnpm vitest

@manzt manzt force-pushed the main branch 6 times, most recently from 6477c65 to 6c43fa4 Compare November 17, 2023 00:20
@keller-mark keller-mark mentioned this pull request Jul 19, 2025
2 tasks
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