Update dependency @vitest/coverage-istanbul to v0.31.0 - autoclosed
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@vitest/coverage-istanbul (source) | 0.30.1 -> 0.31.0 |
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the logs for more information.
Release Notes
vitest-dev/vitest
v0.31.0
🚨 Breaking Changes
-
Update mock implementation to support ESM runtime, introduce "vi.hoisted" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3258 (0c09a)
- Bypass ESM import order restriction with
vi.hoisted
to run code before imports are executed:
vi.hoisted(() => vi.setSystemTime(new Date(2022, 1, 1)))
You can also use it to pass variables to
vi.mock
:const { mockedMethod } = vi.hoisted(() => { return { mockedMethod: vi.fn() } }) vi.mocked('./path/to/module.js', () => { return { originalMethod: mockedMethod } })
- Bypass ESM import order restriction with
-
Move assertion declarations to expect package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3294 (cf3af)
- The change should be minor:
- declare namespace Vi { + declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} }
🚀 Features
- Add repeat method to tests - by @samkevin1 in https://github.com/vitest-dev/vitest/issues/2652 (7c8f0)
- Add an option to hide skipped test lines - by @g4rry420 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2745 (9bdb1)
- coverage: Watermarks for c8 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3254 (730af)
- ui: Add html coverage - by @userquin and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3071 (e24cd)
-
watch: Test run cancelling, feat:
--bail
option for cancelling test run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3163 (8d460)
🐞 Bug Fixes
- Don't call global setup teardown twice - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3188 (ba3d1)
- Reporter to log version before provider initalizations - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3131 (481b1)
- Throw an error if Vitest cannot access its internal state - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3250 (fbb14)
- Warning suppression broken - by @IceQub3 in https://github.com/vitest-dev/vitest/issues/3270 and https://github.com/vitest-dev/vitest/issues/3271 (036de)
- Show correct diff in "toHaveBeenCalledWith" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3289 (19fcd)
- Don't print esm warning, if package name is not found - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3292 (62c14)
- Support exactOptionalPropertyTypes - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3293 (ba81d)
- Don't inline vite hmr and rollup types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3291 (1f118)
-
browser:
- Failing to load vitest/utils - by @userquin in https://github.com/vitest-dev/vitest/issues/3190 (78bad)
-
coverage:
-
thresholdAutoUpdate
to work withperFile
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3182 (29eeb) - Throw error if fail to load built-in provider - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3217 (0a287)
- Stackblitz hangs with c8 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3225 (d9fda)
- C8 to ignore vite's generated helpers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3241 (21942)
- Workspaces c8 source maps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3226 (efce3)
-
-
docs:
- Correct typo and broken link to WebdriverIO - by @nathanbabcock in https://github.com/vitest-dev/vitest/issues/3275 (c7da1)
-
spy:
- Update to set initial implementation through normal logic - by @Codex- in https://github.com/vitest-dev/vitest/issues/3260 and https://github.com/vitest-dev/vitest/issues/3263 (c759a)
-
vite-node:
- Circular imports - by @antfu in https://github.com/vitest-dev/vitest/issues/3196 (cbb59)
- Add missing
import.meta.hot.send
mock - by @antfu (b1624)
-
vitest:
- Also check for vite relative to vitest package - by @JoshuaKGoldberg and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3274 (a3393)
-
watch:
- Run test files when added to filesystem - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3189 (7b2c8)
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.