-
Notifications
You must be signed in to change notification settings - Fork 1
Commit f4baeb4
authored
chore(deps): update dependency vitest to v2
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5)
##### 🚀 Features
- Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1)
- This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go!
##### 🐞 Bug Fixes
- Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7)
- `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9)
- **browser**:
- Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620)
- UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482)
- Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd)
- Passing options to hover/unhover - by [@mneveroff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc)
- Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf)
- **vitest**:
- Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38)
- Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b)
- Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff)
- **web-worker**:
- Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e)
##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5)
##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4)
##### 🐞 Bug Fixes
- One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415)
- Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc)
- **browser**:
- Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488)
- Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1)
- Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f)
- **coverage**:
- Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003)
- Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148)
- Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1)
- Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8)
- **spy**:
- Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c)
##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4)
##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3)
##### 🚀 Features
- **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1)
##### 🐞 Bug Fixes
- `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e)
- **browser**:
- Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419)
- Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917)
- **spy**:
- Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd)
- **vite-node**:
- Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc)
##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3)
##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2)
##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1)
##### 🐞 Bug Fixes
- **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b)
- **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02)
- **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df)
##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1)
##### [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 vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37)
- Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@31994942f)
- 1 parent cf3306f commit f4baeb4Copy full SHA for f4baeb4
2 files changed
+97
-131
lines changed+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
0 commit comments