Repository navigation
Scripts: Switch unit tests to Vitest and deprecate Jest tooling #82843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b21a905
Scripts: Switch unit tests to Vitest and deprecate Jest tooling
ciampo accf72f
Docs: Link Vitest tooling release notes to pull request
ciampo 30693b2
Tests: Align Vitest guidance and supported consumer versions
ciampo f290021
Scripts: Address Vitest tooling review feedback
ciampo 3ad8190
Scripts: Retain a minimal Jest compatibility adapter
ciampo de4d101
Scripts: Clarify the upgrade steps for existing Jest suites
ciampo 176872d
Tests: Remove obsolete Jest console references
ciampo 0f391e5
Scripts: Preserve supported Vite versions in install guidance
ciampo b825dda
Scripts: Explain legacy Jest migration in runner messages
ciampo d8d325d
Scripts: Fix Vitest consumer setup guidance
ciampo 34126c3
ESLint Plugin: Reuse namespace mappings for legacy rules
ciampo 420faa1
Docs: Clarify test setup and Vite compatibility
ciampo 8a3302d
Scripts: Recommend Vite 8 for new test setups
ciampo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Pack the public test tooling and verify it in standalone consumer projects. | ||
| # Keep registry installs and consumer browser downloads scoped to tooling changes. | ||
| name: Vitest consumers | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'packages/scripts/**' | ||
| - 'packages/eslint-plugin/**' | ||
| - 'tools/validation/test-vitest-consumers.mjs' | ||
| - 'tools/validation/fixtures/vitest-consumer/**' | ||
| - 'package-lock.json' | ||
| - '.github/workflows/vitest-consumers.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| consumer: | ||
| name: Node.js ${{ matrix.node }} / Vite ${{ matrix.vite }} | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 20 | ||
| permissions: | ||
| contents: read | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # Exact versions cover the supported Node and Vite lower bounds. | ||
| node: ['22.22.2', '24.15.0', '26.0.0'] | ||
|
manzoorwanijk marked this conversation as resolved.
Resolved
|
||
| vite: ['7.0.0', '8.0.0'] | ||
| # Major ranges also catch new releases without manual pin updates. | ||
| include: | ||
| - node: '22' | ||
| vite: '^7' | ||
| - node: '24' | ||
| vite: '^8' | ||
| browser: true | ||
| - node: '26' | ||
| vite: '^8' | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
| package-manager-cache: false | ||
| - name: Test isolated public tooling | ||
| env: | ||
| VITE_VERSION: ${{ matrix.vite }} | ||
| TEST_BROWSER: ${{ matrix.browser || false }} | ||
| run: | | ||
| args=(--vite="$VITE_VERSION") | ||
| if [ "$TEST_BROWSER" = "true" ]; then | ||
| args+=(--browser) | ||
| fi | ||
| node tools/validation/test-vitest-consumers.mjs "${args[@]}" | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.