Skip to content

Conversation

@lorisleiva
Copy link
Member

@lorisleiva lorisleiva commented Dec 5, 2025

This PR replaces the Ava testing framework with Vitest for the JS client.

This means we can now remove the step that builds TypeScript test so that Ava can run them. This also means we get the nice watcher mode from Vitest (under the pnpm dev script).

By default the timeout is 5s in Vitest and 10s in Ava so I had to bump that up in the Vitest config but I'm hoping we can remove that change once we use something like LiteSVM for testing.

Comment on lines -19 to -25
{
...SHARED_OPTIONS,
bundle: false,
entry: ['./test/**/*.ts'],
format: 'cjs',
outDir: './dist/test',
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we no longer have to run pnpm build before pnpm test.

@lorisleiva lorisleiva marked this pull request as ready for review December 5, 2025 16:16
@lorisleiva lorisleiva requested a review from joncinque December 5, 2025 16:16
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks!

@lorisleiva lorisleiva merged commit 9c17949 into main Dec 5, 2025
5 checks passed
@lorisleiva lorisleiva deleted the loris/use-vitest branch December 8, 2025 10:48
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.

3 participants