Skip to content

feat: stabilize experimental features#9529

Merged
sheremet-va merged 1 commit intovitest-dev:mainfrom
sheremet-va:feat/stable-experimental-4.1
Jan 26, 2026
Merged

feat: stabilize experimental features#9529
sheremet-va merged 1 commit intovitest-dev:mainfrom
sheremet-va:feat/stable-experimental-4.1

Conversation

@sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Jan 26, 2026

Description

This PR stabilized these features added in 4.0.* as experimental:

  • configurePrettyDOM
  • globalThisAccessor property in mocking transforms
  • TestModule.prototype.viteEnvironment
  • TestSpecification.prototype.pool property - providing pool is still considered internal, but receiving the value from the specification is ok
  • onBrowserInit reporter hook
  • providing Set to toBeOneOf
  • onCancel hook returns a cleanup function

- [`onHookEnd(beforeAll)`](#onhookend)
- [`onTestCaseReady`](#ontestcaseready)
- [`onTestAnnotate`](#ontestannotate) <Version>3.2.0</Version>
- [`onTestCaseAnnotate`](#ontestcaseannotate) <Version>3.2.0</Version>
Copy link
Member Author

Choose a reason for hiding this comment

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

This was just documented incorrectly, the API was always onTestCaseAnnotate

@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit d3c3640
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69776803f290a50008cf5822
😎 Deploy Preview https://deploy-preview-9529--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.

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