Skip to content

Upgrade vitest from 0.32 to 4.1 and typescript to 5.8#8

Open
Mathieu2301 wants to merge 1 commit into
mainfrom
mathieu/update-vitest
Open

Upgrade vitest from 0.32 to 4.1 and typescript to 5.8#8
Mathieu2301 wants to merge 1 commit into
mainfrom
mathieu/update-vitest

Conversation

@Mathieu2301

Copy link
Copy Markdown
Owner

Summary

  • Upgrades vitest from 0.32.2 to 4.1.2, @vitest/ui to 4.1.2, and typescript to 5.8
  • Migrates custom reporter to Vitest v4 API: new import paths (vitest/node, vitest/reporters, @vitest/runner), onFinishedonTestRunEnd, sync onInit with deferred Notion setup promise
  • Adds skipLibCheck: true to tsconfig for compatibility with Vitest v4 internal types
  • Updates reporters config parsing for new non-string format

Test plan

  • yarn build passes
  • yarn test runs successfully with Notion integration working end-to-end

Migrate custom reporter to Vitest v4 API:
- Reporter/Vitest/File/Task imports moved to new module paths
- onFinished replaced by onTestRunEnd, files from vitest.state
- onInit is now sync, so Notion setup promise is deferred
- reporters config parsing updated for new non-string format
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.

1 participant