Skip to content

test: skip test with rolldown inside vmThreads + update snapshot#9415

Merged
sheremet-va merged 17 commits intovitest-dev:mainfrom
hi-ogawa:01-09-chore_test_rolldown_ci
Jan 13, 2026
Merged

test: skip test with rolldown inside vmThreads + update snapshot#9415
sheremet-va merged 17 commits intovitest-dev:mainfrom
hi-ogawa:01-09-chore_test_rolldown_ci

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Jan 9, 2026

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 830f66e
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69661b816ebefb0008590cfa
😎 Deploy Preview https://deploy-preview-9415--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

hi-ogawa and others added 10 commits January 8, 2026 20:49
Add scope tracking for ClassDeclaration and ClassExpression to prevent
incorrect import binding replacement when a class shadows an imported name.

- ClassDeclaration: add name to parent block scope (like FunctionDeclaration)
- ClassExpression: add name to its own scope (visible only inside class body)

This bug was hidden in vite v7 because esbuild renamed shadowing classes.
With vite v8/oxc preserving original names, the bug became visible.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hi-ogawa hi-ogawa changed the title chore: test rolldown ci test: skip test with rolldown inside vmThreads Jan 13, 2026
@hi-ogawa hi-ogawa force-pushed the 01-09-chore_test_rolldown_ci branch from 6e80689 to 0fdf86d Compare January 13, 2026 04:20
@hi-ogawa hi-ogawa changed the title test: skip test with rolldown inside vmThreads test: skip test with rolldown inside vmThreads + update snapshot Jan 13, 2026
@hi-ogawa hi-ogawa marked this pull request as ready for review January 13, 2026 04:35
test('clearScreen', async (ctx) => {
// skip vm since rolldown native modules break due to RegExp instance
// https://github.com/vitest-dev/vitest/issues/8754#issuecomment-3727583957
const vite = await import('vite')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can get rolldownVersion from 'vitest/node'

@sheremet-va sheremet-va merged commit 90ca5b2 into vitest-dev:main Jan 13, 2026
15 of 16 checks passed
@hi-ogawa hi-ogawa deleted the 01-09-chore_test_rolldown_ci branch January 14, 2026 01:25
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.

Rolldown CI Failures

2 participants