tailwindcss/packages/@tailwindcss-upgrade/src/codemods/template
Robin Malfait 479b725cd3
Bump Vitest to v4 (#19216)
This PR bumps Vitest from v2 to v4. As far as I know we don't use any
Vitest specific features in our tests, but had to upgrade the
`vitest.workspace.ts` file to a `vitest.config.ts` file instead.

The only features we use are the typical `describe`, `it`, `test`, and
`expect` functions.

The only other part we use is `vi.spyOn` and `vi.fn` but those didn't
change in API either.

The test shards were removed to prevent errors. Not all suites have
enough files / tests to be broken up into 3 parts so Vitest now errors
when that happens.

### Test plan

1. All tests should pass in CI.
2. All integration tests should pass in CI.

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2025-11-20 18:16:20 -05:00
..
candidates.test.ts Introduce canonicalizeCandidates on the internal Design System (#19059) 2025-10-07 12:41:12 +02:00
candidates.ts Improve performance of cloning AST nodes (#19067) 2025-10-07 10:46:37 +00:00
is-safe-migration.test.ts Bump Vitest to v4 (#19216) 2025-11-20 18:16:20 -05:00
is-safe-migration.ts Ensure first class inside className in React is migrated (#19031) 2025-09-30 11:13:14 -04:00
migrate-arbitrary-variants.ts Improve memory usage during canonicalization (#19171) 2025-10-21 16:55:30 +02:00
migrate-automatic-var-injection.test.ts Improve upgrade migrations (#18184) 2025-05-30 13:32:59 +00:00
migrate-automatic-var-injection.ts Generalize the walk implementation (#19126) 2025-10-15 21:28:12 +02:00
migrate-camelcase-in-named-value.test.ts Change casing of utilities with named values to kebab-case to match u… (#18017) 2025-05-14 14:51:51 +02:00
migrate-camelcase-in-named-value.ts Improve performance of cloning AST nodes (#19067) 2025-10-07 10:46:37 +00:00
migrate-canonicalize-candidate.test.ts Make candidate template migrations faster (#18025) 2025-05-15 11:17:39 +00:00
migrate-canonicalize-candidate.ts Make candidate template migrations faster (#18025) 2025-05-15 11:17:39 +00:00
migrate-handle-empty-arbitrary-values.test.ts Ensure @tailwindcss/upgrade runs on Tailwind CSS v4 projects and is idempotent (#17717) 2025-04-22 11:10:46 -04:00
migrate-handle-empty-arbitrary-values.ts Ensure @tailwindcss/upgrade runs on Tailwind CSS v4 projects and is idempotent (#17717) 2025-04-22 11:10:46 -04:00
migrate-legacy-arbitrary-values.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-legacy-arbitrary-values.ts Improve performance of cloning AST nodes (#19067) 2025-10-07 10:46:37 +00:00
migrate-legacy-classes.test.ts Make candidate template migrations faster (#18025) 2025-05-15 11:17:39 +00:00
migrate-legacy-classes.ts Improve performance of cloning AST nodes (#19067) 2025-10-07 10:46:37 +00:00
migrate-max-width-screen.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-max-width-screen.ts Design system driven upgrade migrations (#17831) 2025-05-02 23:18:06 +02:00
migrate-modernize-arbitrary-values.test.ts Canonicalize dimensions (#19101) 2025-10-10 17:44:53 +02:00
migrate-modernize-arbitrary-values.ts Improve performance of cloning AST nodes (#19067) 2025-10-07 10:46:37 +00:00
migrate-prefix.test.ts Ensure @tailwindcss/upgrade runs on Tailwind CSS v4 projects and is idempotent (#17717) 2025-04-22 11:10:46 -04:00
migrate-prefix.ts Make candidate template migrations faster (#18025) 2025-05-15 11:17:39 +00:00
migrate-simple-legacy-classes.test.ts Ensure @tailwindcss/upgrade runs on Tailwind CSS v4 projects and is idempotent (#17717) 2025-04-22 11:10:46 -04:00
migrate-simple-legacy-classes.ts Design system driven upgrade migrations (#17831) 2025-05-02 23:18:06 +02:00
migrate-theme-to-var.ts Generalize the walk implementation (#19126) 2025-10-15 21:28:12 +02:00
migrate-variant-order.test.ts Ensure @tailwindcss/upgrade runs on Tailwind CSS v4 projects and is idempotent (#17717) 2025-04-22 11:10:46 -04:00
migrate-variant-order.ts Generalize the walk implementation (#19126) 2025-10-15 21:28:12 +02:00
migrate.test.ts Canonicalization constant folding and handling zeros (#19095) 2025-10-09 18:09:29 +00:00
migrate.ts Improve memory usage during canonicalization (#19171) 2025-10-21 16:55:30 +02:00
prepare-config.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00