-
Notifications
You must be signed in to change notification settings - Fork 411
Commit 8f17df9
authored
Update vitest monorepo to v2 (major) (#898)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/main/packages/coverage-v8#readme)
([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8))
| [`^1.4.0` ->
`^2.0.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/1.6.0/2.0.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [vitest](https://github.com/vitest-dev/vitest)
([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| [`^1.4.0` ->
`^2.0.0`](https://renovatebot.com/diffs/npm/vitest/1.6.0/2.0.0) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>vitest-dev/vitest (@​vitest/coverage-v8)</summary>
###
[`v2.0.0`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.0)
Vitest 2.0 is here! This release page lists all changes made to the
project during the beta. For the migration guide, please refer to the
[documentation](https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0).
##### 🚨 Breaking Changes
- Simplify mock function generic types and align with jest - by
**[@​hi-ogawa](https://github.com/hi-ogawa)** in
[https://github.com/vitest-dev/vitest/pull/4784](https://github.com/vitest-dev/vitest/pull/4784)
[<samp>(a0c1d37)</samp>](https://github.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6)
- Remove `--segfault-retry` - by
[@​sheremet-va](https://github.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5514](https://github.com/vitest-dev/vitest/issues/5514)
[<samp>(ed60e)</samp>](https://github.com/vitest-dev/vitest/commit/ed60e405e)
- This flag was introduced to combat `threads` segfaults. Our current
recommendation is to use the new default `forks` pool instead.
- Run suite hooks in a stack - by
[@​sheremet-va](https://github.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5609](https://github.com/vitest-dev/vitest/issues/5609)
[<samp>(1277d)</samp>](https://github.com/vitest-dev/vitest/commit/1277dc1e3)
- This feels like a more sensible default. Especially with the new
[`onTestFinished`](https://vitest.dev/api/#ontestfinished) hook. This
can make your tests run a little bit slower.
- Enable `coverage.ignoreEmptyLines` by default - by
[@​AriPerkkio](https://github.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5543](https://github.com/vitest-dev/vitest/issues/5543)
[<samp>(31994)</samp>](https://github.com/vitest-dev/vitest/commit/31994942f)
- 1 parent 00afb9e commit 8f17df9Copy full SHA for 8f17df9
2 files changed
+456
-340
lines changed
0 commit comments