Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate tests to Vitest #695

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

chore: migrate tests to Vitest #695

wants to merge 5 commits into from

Conversation

manzt
Copy link
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
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.

None yet

1 participant