build: migrate test runner from AVA to Vitest#246
Open
edmundmiller wants to merge 1 commit into
Open
Conversation
Replace AVA + @ava/typescript + c8 with Vitest + @vitest/coverage-v8. - Run TypeScript tests directly, no compile-to-lib step needed - vitest.config.ts carries over AVA behavior: RUNNER_TEMP env, 120s timeout, serial file execution - Convert test.macro to a plain async helper; t.is/t.regex to expect - Rename test/functions.ts -> test/functions.test.ts - Coverage still lands at coverage/lcov.info for Codecov - Drop eslint-plugin-ava and its config block
mashehu
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces AVA (+
@ava/typescriptcompiled-JS runner +c8) with Vitest +@vitest/coverage-v8.test/functions.test.tsdirectly — no more testing against compiledlib/test/**/*.jsvitest.config.tscarries over all AVA behavior:RUNNER_TEMP=./.tmp, 120s timeout, serial executiontest.macroconverted to a plain async helper;t.is/t.regex→expect().toBe()/toMatch()— all 8 test titles and assertions unchangedeslint-plugin-avaand its config block removedCI / Codecov
No workflow changes needed:
npm testname is unchanged and coverage still lands atcoverage/lcov.info.Validation
src/functions.ts(raw totals differ only because v8 counts executable statements while c8 counted all lines)npm run buildandnpm run lintclean