Skip to content

[2.x] Upgrade TypeScript to v6 and Vitest to v5 - #548

Draft
pataar wants to merge 3 commits into
laravel:2.xfrom
pataar:upgrade-typescript-6-vitest-5
Draft

[2.x] Upgrade TypeScript to v6 and Vitest to v5#548
pataar wants to merge 3 commits into
laravel:2.xfrom
pataar:upgrade-typescript-6-vitest-5

Conversation

@pataar

@pataar pataar commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

This upgrades both TypeScript and Vitest to the latest version. The Vitest major had some problems with the code that nullifies the custom env vars. So had to exclude those.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@pataar
pataar force-pushed the upgrade-typescript-6-vitest-5 branch from fb2754d to a5641ca Compare September 6, 2026 10:15
Vitest 5 no longer evaluates import.meta-based define expressions in its
worker, so the guarded VITE_* replacements are now skipped under Vitest;
tests run with a real import.meta.env and need no replacement.

Claude-Session: https://claude.ai/code/session_01PqjbbMAW7txB4AQ3wp2gWD
@pataar
pataar force-pushed the upgrade-typescript-6-vitest-5 branch from a5641ca to 90a45b5 Compare September 6, 2026 10:19
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