chore(deps): update devdependency vitest to v0.25.3
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| vitest | 0.24.5 -> 0.25.3 |
Release Notes
vitest-dev/vitest
v0.25.3
🚀 Features
- Test.each support string template - by @poyoho in https://github.com/vitest-dev/vitest/issues/2337 (f7897)
🐞 Bug Fixes
- Junit consistently puts "skipped" inside "testcase" - by @sheremet-va (f7b27)
- Detect tests in folders starting with
.- by @sidharthv96 in https://github.com/vitest-dev/vitest/issues/2344 and https://github.com/vitest-dev/vitest/issues/2359 (c3951) - cli: Don't override config by setting cli options to undefined - by @rmehner in https://github.com/vitest-dev/vitest/issues/2330 (6ce3e)
- coverage: Env-replacer to add filenames into sourcemaps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2338 (a2e9d)
- mocker: Clear automocked modules on unmock - by @mcous in https://github.com/vitest-dev/vitest/issues/2353 (60918)
View changes on GitHub
v0.25.2
🐞 Bug Fixes
- Dates are equal, if both are invalid - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2326
- Don't ignore properties, when put on a default function in CJS context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2325
View changes on GitHub
v0.25.1
🚀 Features
- Add
vi.setConfighelper - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2293 - Allow hooks to be executed in a stack or list - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2294
🐞 Bug Fixes
- Always rewrite defined jsdom keys - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2290
- Default reporter regression - by @antfu in https://github.com/vitest-dev/vitest/issues/2292
- Don't fail
benchwhen using options - by @poyoho in https://github.com/vitest-dev/vitest/issues/2295
View changes on GitHub
v0.25.0
✅ Builtin TypeChecking
In v0.25.0, Vitest allows you to write tests for your types, using expectTypeOf or assertType syntaxes. By default all tests inside *.test-d.ts files are considered type tests. Run vitest typecheck to run type tests.
// my.test-d.ts
import { assertType, expectTypeOf } from 'vitest'
import { mount } from './mount.js'
test('my types work properly', () => {
expectTypeOf(mount).toBeFunction()
expectTypeOf(mount).parameter(0).toMatchTypeOf<{ name: string }>()
// @​ts-expect-error name is a string
assertType(mount({ name: 42 }))
})
Learn more at the documentation and this RFC
🚨 Breaking Changes
- Return context in
startVitest()- by @antfu in https://github.com/vitest-dev/vitest/issues/2072
🚀 Features
-
onTestFailedhook - by @antfu in https://github.com/vitest-dev/vitest/issues/2210 - Display error frame if present (like Vite) - by @haikyuu and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2257
- Benchmark table report - by @poyoho in https://github.com/vitest-dev/vitest/issues/2179
- Add typechecking functionality - by @sheremet-va and @antfu in https://github.com/vitest-dev/vitest/issues/2107
🐞 Bug Fixes
- Clear full screen only in watch mode - by @sheremet-va (c3d89)
- Don't serialize symbols and immutables - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2266
- Use --conditions instead of -C - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2267
- Show correct stack trace in errors and console - by @sheremet-va and @antfu in https://github.com/vitest-dev/vitest/issues/2248
- Align
.eachbehavior with jest - by @bartoszgolebiowski and @antfu in https://github.com/vitest-dev/vitest/issues/2064 - Remove undefined values in options - by @g4rry420 and @antfu in https://github.com/vitest-dev/vitest/issues/2281
- coverage: Istanbul provider to preserve implicit else - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2275
View changes on GitHub
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.