[Snyk] Upgrade vitest from 2.1.2 to 2.1.4 #19
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.
Snyk has created this PR to upgrade vitest from 2.1.2 to 2.1.4.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 2 versions ahead of your current version.
The recommended version was released on 25 days ago.
Release notes
Package name: vitest
-
2.1.4 - 2024-10-28
- browser: Allow custom HTML path, respect plugins
- windows:
- Don't normalize drive case letter in root - by @ sheremet-va in #6792 (b28cd)
- browser:
- Fix default browser port - by @ hi-ogawa in #6700 (9c518)
- Optimize expect-type - by @ sheremet-va in #6713 (07918)
- Don't polyfill process.env - by @ sheremet-va in #6718 (da6d2)
- Increment browser port automatically if there are several projects with browser.enabled - by @ sheremet-va in #6717 (a9397)
- Cleanup keyboard state - by @ hi-ogawa in #6731 (19278)
- Don't add
- User event cleanup on retry - by @ hi-ogawa in #6764 (bdd15)
- Ignore non mocked msw requests - by @ sheremet-va in #6770 (9d9ba)
- Initiate MSW in the same frame as tests - by @ sheremet-va in #6772 (2444f)
- deps:
- Update dependency sirv to v3 - in #6701 (fde5d)
- expect:
- Correct behavior of
- mocker:
- Remove spy from peer dependencies - by @ sheremet-va in #6777 (3a8b5)
- vitest:
- Clarify slowTestThreshold, print slow tests in non-TTY mode - by @ sheremet-va in #6715 (2e6aa)
- Print warnings form Vite plugins - by @ sheremet-va in #6724 (121b1)
- Don't fail if the working directory starts with a lowercase drive letter - by @ sheremet-va in #6779 (df6d7)
- Silence import analysis warning - by @ hi-ogawa in #6785 (39041)
- vitest,runner:
- Simplify
- Use
-
2.1.3 - 2024-10-14
- Fix error diff of
- browser:
- Provide aria role intellisense - by @ sheremet-va in #6629 (f36ea)
- Not.toBeInTheDocument works with locators API - by @ sheremet-va in #6634 (8bef5)
- Use
- Don't override the esbuild option in the browser mode - by @ sheremet-va in #6692 (d131f)
- expect:
- Preserve prototype in
- mocker:
- Specify correct spy dependency - by @ sheremet-va (7e958)
- runner:
- Ensure sequential suite overrides sequence.concurrent - by @ dsyddall and @ hi-ogawa in #6653 (5e6de)
- vitest:
- Deprecate UserConfig in favor of ViteUserConfig - by @ sheremet-va in #6626 (496bd)
- Don't hang with maxConcurrency 0 - by @ sheremet-va in #6627 (946d8)
- Deprecate old task types and node-reliant types - by @ sheremet-va in #6632 (00045)
- Fix
- Show rollup error details as test error - by @ hi-ogawa in #6686 (47dde)
- Always inline setup files - by @ sheremet-va in #6689 (19d64)
- Use
- web-worker:
- Share mocker with main executor - by @ hi-ogawa in #6623 (fe7b8)
- Reuse full name in reported tasks, update generator types - by @ sheremet-va in #6666 (7a0de)
-
2.1.2 - 2024-10-02
- Move
- benchmark:
- Clear
- browser:
- Fix dynamic import inside worker - by @ hi-ogawa in #6569 (ea2d4)
- Fix browser mock factory event race condition - by @ hi-ogawa in #6530 (f131f)
- Serve ui assets as static - by @ hi-ogawa in #6564 (adcda)
- Update solidjs testing library lib - by @ CamilleTeruel in #6548 (91442)
- Use
- Fix base for client script - by @ hi-ogawa in #6510 (f9528)
- Throw an error if "@ vitest/browser/context" is imported outside of the browser mode - by @ sheremet-va in #6570 (383f1)
- coverage:
- Remove empty coverage folder on test failure too - by @ AriPerkkio in #6547 (1371c)
- Include
- expect:
- Fix
- forks:
- Fix
- runner:
- Mark tests as skipped when
- Support fixture parsing of lowered async syntax - by @ hi-ogawa in #6531 (b553c)
- Fix fixture parsing of lowered async syntax for non arrow functions - by @ hi-ogawa in #6575 (3de00)
- Guard test hook callback - by @ sheremet-va in #6604 (14971)
- Run
- ui:
- List tests on ui when
- vite-node:
- Fix esm false-detection inside comment - by @ hi-ogawa in #6506 (91f85)
- vitest:
- Install dependencies with the same version when prompted - by @ sheremet-va in #6611 (ed8b7)
- Make env.SSR consistent between different pools - by @ sheremet-va in #6616 (8a8d3)
- Don't start a websocket server if api is disabled - by @ sheremet-va in #6617 (82140)
- workspace:
- Fix glob pattern detection - by @ hi-ogawa in #6502 (7727c)
- Ignore DS_Store by default - by @ sheremet-va in #6571 (d2a86)
from vitest GitHub release notes🚀 Features
This patch release includes a non-breaking feature for the experimental Browser Mode that doesn't follow SemVer. If you want to avoid picking up releases like this, make sure to pin the Vitest version in your
package.json. See npm's documentation about semver for more information.transformIndexHtml- by @ sheremet-va in #6725 (16902)🐞 Bug Fixes
v=queries to setup files imports - by @ sheremet-va in #6759 (b8258)toThrowErrorwith empty string parameter - by @ shulaoda in #6710 (a6129)test.extendtype exports - by @ hi-ogawa in #6707 (e5c38)🏎 Performance
hashto replacecreateHash- by @ btea in #6703 (5d07b)View changes on GitHub
🐞 Bug Fixes
toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy- by @ hi-ogawa in #6697 (e0027)/mockServiceWorker.jsinstead of/__vitest_msw__- by @ sheremet-va in #6687 (4b2ce)toMatchObjectdiff - by @ hi-ogawa in #6620 (d289e)<empty line>logs when interleavingconsole.log/error- by @ hi-ogawa in #6644 (9ece3)fast-globinstead oftinyglobbyin Vitest - by @ sheremet-va in #6688 (70baa)🏎 Performance
View changes on GitHub
🐞 Bug Fixes
Vitest.setServerto postconfigureServerhook to enable import analysis for workspace config loading - by @ hi-ogawa in #6584 (e7f35)BenchmarkResult.samplesarray to reduce memory usage - by @ hi-ogawa and @ AriPerkkio in #6541 (a6407)data:protocol on preview provider file upload - by @ userquin in #6501 (e9821)*.astroby default - by @ AriPerkkio in #6565 (f8ff7)cleanOnRerun: falseto invalidate previous results - by @ AriPerkkio in #6592 (88bde)toBeDefinedwithexpect.poll- by @ hi-ogawa in #6562 (f7da6)--cpu-profand--heap-profnot working by default - by @ AriPerkkio in #6555 (2e4d894)beforeAllfailed - by @ hi-ogawa in #6524 (fb797)onTestFinishedandonTestFailedduringretryandrepeats- by @ hi-ogawa in #6609 (c5e29)--standalone- by @ hi-ogawa in #6577 (d0bf8)View changes on GitHub
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: