Skip to content

Conversation

@RobinMalfait
Copy link
Member

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.

Test plan

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

Enabling [ci-all], to make sure all tests pass on all platforms.

Ideally we just repeat a step and create the shards dynamically, but not
sure if that's even possible. With this approach, we will generate _a
lot_ more integration tests though...
@thecrypticace
Copy link
Contributor

The Vitest tests timeout because of the repeated design system reloading + canonicalization cache prefilling.

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.

3 participants