Repository navigation
test: migrate integrate-ava from ava to vitest - #659
Merged
Merged
Conversation
Replace the ava test runner with vitest in packages/integrate-ava: rewrite the four spec files to the vitest API, add vitest.config.ts (externalizing the native @oxc-node/core binding), and drop the now-unused root ava devDependency.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db6f489ccc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
vitest 4 pulls in Vite 8 / rolldown, which ships no win32-ia32 native binding, so `vitest run` cannot start on 32-bit Windows. The i686 binding is still built and published; only the end-to-end integration tests are dropped for that target.
Boshen
added a commit
that referenced
this pull request
Jul 4, 2026
Follow-up to #659. That PR migrated the `integrate-ava` package from ava to vitest, leaving the package name/directory a misnomer. Rename `packages/integrate-ava` → `packages/integrate-vitest` so it's named for what it integrates, consistent with the sibling `integrate-module` / `integrate-module-bundler` packages. - `git mv` of the directory (all files are pure renames; only the `name` field in `package.json` changes). - `pnpm-lock.yaml`: the importer key is renamed and moved to its sorted position — no dependency changes (`pnpm install --frozen-lockfile` passes). - The root `--filter=integrate*` test glob still matches, and the specs' relative paths (`../../cli/dist`, `../core`) are unchanged (same directory depth). `pnpm test` is green — `integrate-vitest` 9/9, plus `integrate-module` 21 and `integrate-module-bundler` 22.
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.
Migrates the
integrate-avapackage's test runner from ava to vitest.What changed
avawithvitest("test": "vitest run") and drop theavaconfig block.vitest.config.ts:include: __tests__/**/*.spec.ts,testTimeout: 60000(matches ava's old1m), and externalize the native (napi, CommonJS)@oxc-node/corebinding so Node loads it directly instead of Vite transforming it.test/expect), dropping the avaExecutionContextthat was threaded through thecli.spec.tsstack-trace helper.avadevDependency from the root workspace.The subprocess specs still exercise oxc-node inside the spawned
node --import @oxc-node/core/register/oxnodechildren, and the transform spec hitsOxcTransformerin-process — so what's under test is unchanged; only the runner around it changed.All 9 tests pass under vitest 4.1.9 (
pnpm --filter=integrate-ava test), andoxlint/oxfmt --checkare clean.