Conversation
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Next stepsTake a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with |
2794e82
to
92fa808
Compare
@antfu Do you have any idea about the failing test here? It looks like the mocking isn't succeeding because the path differs between |
Maybe @sheremet-va has some idea? |
The path cannot differ, but the call order can. Vitest now implements mocking as a plugin that hoists |
Yeah, I think we should |
26059e9
to
4dd035a
Compare
c124df2
to
428252e
Compare
linking vitest-dev/vitest#3308 here |
0d211ae
to
ca0cafb
Compare
4423f29
to
523ffe1
Compare
38d3062
to
84cccf0
Compare
6440fc1
to
bcf755a
Compare
1ca453d
to
7d3a1b4
Compare
New and updated dependency changes detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: @vitest/coverage-c8@0.30.1, h3@1.6.6, vitest@0.30.1 Footnotes |
b5147a1
to
f02bd02
Compare
baa22f7
to
f57b3ba
Compare
f57b3ba
to
c053e16
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
This PR contains the following updates:
0.30.1
->0.32.2
^0.30.0
->^0.32.0
9.10.9
->9.20.3
0.30.1
->0.32.2
^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0
->^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.32.0
^0.30.0
->0.30.1
Release Notes
vitest-dev/vitest
v0.32.2
Compare Source
🐞 Bug Fixes
View changes on GitHub
v0.32.1
Compare Source
🚀 Features
registerConsoleShortcuts
fromvitest/node
- by @deot in https://github.com/vitest-dev/vitest/issues/3563 (bc49b)expect.unreachable
- by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3556 (8e385)describe
/test
name support anonymous function - by @btea in https://github.com/vitest-dev/vitest/issues/3562 (3d436)🐞 Bug Fixes
performance
fromperf_hooks
- by @Max10240 and wangbaolong.wbl in https://github.com/vitest-dev/vitest/issues/3578 and https://github.com/vitest-dev/vitest/issues/3579 (24ec8)vitest
- by @userquin in https://github.com/vitest-dev/vitest/issues/3580 (b4ac8)View changes on GitHub
v0.32.0
Compare Source
🚨 Breaking Changes
test.js
to be a test file. Also any file in__tests__
is now considered to be a test, not just files withtest
orspec
suffix.@vitest/coverage-v8
package - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3339 (82112)@vitest/coverage-c8
is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user hasc8
as their coverage provider. Please, install the new@vitest/coverage-v8
package if you previously used@vitest/coverage-c8
.spy.mockRestore
on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does.🚀 Features
expect.soft
- by @Dunqing in https://github.com/vitest-dev/vitest/issues/3507 (7c687)describe
/test
name - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3497 (15253)🐞 Bug Fixes
View changes on GitHub
v0.31.4
Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v0.31.3
Compare Source
🚀 Features
VITE_NODE_DEPS_MODULE_DIRECTORIES
from .npmrc - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3471 (393bf)🐞 Bug Fixes
View changes on GitHub
v0.31.2
Compare Source
🚀 Features
test.each
ordescribe.each
- by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3360 (7c2f7)reportOnFailure
option - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3453 (1988f)🐞 Bug Fixes
SIGINT
is received - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3407 (a2cc2)rejects
&resolves
breaks with thenable objects - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3456 (4e996)birpc
timeouts whenMath.random
mock is not restored - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3460 (cd5d5)less
extension - by @rluvaton in https://github.com/vitest-dev/vitest/issues/3465 (4d045)PartialMock
with async TReturns - by @ghry5 in https://github.com/vitest-dev/vitest/issues/3462 (b664d)View changes on GitHub
v0.31.1
Compare Source
🚀 Features
r
should rerun current pattern tests - by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 (69d27)🐞 Bug Fixes
cwd
from test name filter - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3353 (324a9)toMatchInlineSnapshot
fails when file path includes parentheses - by @pacexy in https://github.com/vitest-dev/vitest/issues/3370 and https://github.com/vitest-dev/vitest/issues/3371 (dcf13)View changes on GitHub
v0.31.0
Compare Source
🚨 Breaking Changes
Remove
browser
from allowed pools insidepoolMatchGlob
config option. Please, use Vitest workspaces for running tests in the browser.Move assertion declarations to expect package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3294 (cf3af)
🚀 Features
vi.hoisted
to run code before imports are executed:vi.mock
:--bail
option for cancelling test run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3163 (8d460)🐞 Bug Fixes
thresholdAutoUpdate
to work withperFile
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3182 (29eeb)import.meta.hot.send
mock - by @antfu (b1624)View changes on GitHub
capricorn86/happy-dom
v9.20.3
Compare Source
👷♂️ Patch fixes
HTMLUnknownElement
to a custom element that is replacing it when it is defined. (#668)v9.20.2
Compare Source
👷♂️ Patch fixes
Window.getComputedStyle()
when callingCSSStyleDeclaration.getPropertyValue()
. (#932)v9.20.1
Compare Source
👷♂️ Patch fixes
querySelectorAll()
where it didn't always return elements in document order. (#928)v9.20.0
Compare Source
🎨 Features
v9.19.2
Compare Source
👷♂️ Patch fixes
v9.19.1
Compare Source
👷♂️ Patch fixes
XMLHttpRequest
Thank you @btea for your contribution!
v9.19.0
Compare Source
🎨 Features
Window.getComputedStyle()
andWindow.matchMedia()
(#921)Window.getComputedStyle()
andWindow.matchMedia()
when setting font size (other properties will be set to "0px") (#921)<html>
when usingWindow.getComputedStyle()
(#921)CSSStyleDeclaration
. (#921)👷♂️ Patch fixes
CSSStyleDeclaration
. Not having support for "height" was missed somehow, as we have support for "width". (#922)v9.18.3
Compare Source
👷♂️ Patch fixes
CharacterData.data
,CharacterData.nodeValue
orCharacterData.textContent
. (#819)v9.18.2
Compare Source
👷♂️ Patch fixes
Thank you @gtm-nayan for your contribution!
v9.18.1
Compare Source
👷♂️ Patch fixes
v9.18.0
Compare Source
🎨 Features
v9.17.0
Compare Source
🎨 Features
v9.16.0
Compare Source
🎨 Features
XMLSerializer.serializeToString()
. (#908)v9.15.0
Compare Source
🎨 Features
Element.getInnerHTML()
. (#898)Thank you @crypto-scythe for your contribution!
v9.14.0
Compare Source
🎨 Features
Document.links
. (#896)Thank you @btea for your contribution!
v9.13.1
Compare Source
👷♂️ Patch fixes
CSSStyleDeclaration
. (#889)Thank you @btea for your contribution!
v9.13.0
Compare Source
🎨 Features
Element.querySelectorAll()
. The performance was decreased after the implementation of document sorting order, due to the fact that it relied onObject.assign()
for each match, which is slower than iterating through all matches in the end. (#909)v9.12.0
Compare Source
🎨 Features
👷♂️ Patch fixes
v9.11.0
Compare Source
🎨 Features
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.