Skip to content

Migrate tests from AVA to Vitest - #124

Merged
chfoidl merged 4 commits into
mainfrom
cursor/migrate-ava-to-vitest-5496
May 27, 2026
Merged

Migrate tests from AVA to Vitest#124
chfoidl merged 4 commits into
mainfrom
cursor/migrate-ava-to-vitest-5496

Conversation

@chfoidl

@chfoidl chfoidl commented May 27, 2026

Copy link
Copy Markdown
Member

⚡ Improvements

  • Migrate all package tests from AVA to Vitest via shared @drupal-kit/config-vitest runner that preserves existing test, test.serial, and t.* APIs without changing test logic
  • Add per-package vitest.config.ts with sequential in-file execution for MSW-backed integration tests
  • Convert snapshot tests to Vitest __snapshots__ format and remove legacy AVA snapshot directories

@changeset-bot

changeset-bot Bot commented May 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fe5b044

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@drupal-kit/core Patch
@drupal-kit/consumers Patch
@drupal-kit/jsonapi Patch
@drupal-kit/simple-oauth-auth-code Patch
@drupal-kit/simple-oauth Patch
@drupal-kit/user-api Patch
@drupal-kit/verification Patch
@drupal-kit/types Patch
@drupal-kit/eslint-config Patch
@drupal-kit/config-prettier Patch
@drupal-kit/config-typescript Patch
@drupal-kit/config-vitest Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor
cursor Bot force-pushed the cursor/migrate-ava-to-vitest-5496 branch from dcc0ef4 to fabd620 Compare May 27, 2026 13:16
cursoragent and others added 3 commits May 27, 2026 14:49
Co-authored-by: Christian Foidl <christian@wunderwerk.io>
Co-authored-by: Christian Foidl <christian@wunderwerk.io>
Co-authored-by: Christian Foidl <christian@wunderwerk.io>
@cursor
cursor Bot force-pushed the cursor/migrate-ava-to-vitest-5496 branch from e755dee to 8aca995 Compare May 27, 2026 14:50
Co-authored-by: Christian Foidl <christian@wunderwerk.io>
@chfoidl
chfoidl merged commit dde9bda into main May 27, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request May 27, 2026
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.

2 participants