Merged
Size
S
Change Breakdown
Testing60%
Maintenance25%
Config15%
#28394chore: Migrate @n8n/api-types to Vitest

@n8n/api-types test suite migrated to Vitest

The @n8n/api-types package now runs tests on Vitest instead of Jest, aligning with the project's modernized testing infrastructure and enabling faster test execution across this package.

The @n8n/api-types package has migrated its test runner from Jest to Vitest. Test scripts in package.json now invoke vitest commands instead of jest, and a new vite.config.ts file configures the test environment. TypeScript types have been updated from jest types to vitest/globals, and the jest.config.js file has been removed. The @n8n/api-types package now benefits from Vitest's speed and compatibility with the rest of n8n's testing ecosystem. This migration is part of a broader effort to consolidate testing infrastructure across the monorepo.

View Original GitHub Description

Summary

Migrate @n8n/api-types to Vitest

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/CAT-2795

Review / Merge checklist

  • I have seen this code, I have run this code, and I take responsibility for this code.
  • PR title and summary are descriptive. (conventions) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** -->
  • Docs updated or follow-up ticket created.
  • Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. -->
  • PR Labeled with Backport to Beta, Backport to Stable, or Backport to v1 (if the PR is an urgent fix that needs to be backported)
© 2026 · via Gitpulse