Skip to content

Comments

fix(browser): support coverage.reportsDirectory with multiple directories#5056

Merged
AriPerkkio merged 1 commit intovitest-dev:mainfrom
AriPerkkio:fix/browser-coverage-dir
Feb 2, 2024
Merged

fix(browser): support coverage.reportsDirectory with multiple directories#5056
AriPerkkio merged 1 commit intovitest-dev:mainfrom
AriPerkkio:fix/browser-coverage-dir

Conversation

@AriPerkkio
Copy link
Member

@AriPerkkio AriPerkkio commented Jan 28, 2024

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify
Copy link

netlify bot commented Jan 28, 2024

Deploy Preview for fastidious-cascaron-4ded94 ready!

Name Link
🔨 Latest commit 9f29f05
🔍 Latest deploy log https://app.netlify.com/sites/fastidious-cascaron-4ded94/deploys/65bd08bb4af8250009b0b999
😎 Deploy Preview https://deploy-preview-5056--fastidious-cascaron-4ded94.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@userquin
Copy link
Member

@AriPerkkio
Copy link
Member Author

Are they currently in sync? Before this fix I see following with coverage.reportsDirectory: './one/two/three/':

  • packages/ui/node/index.ts: coverageFolder: [ '/Users/xyz/vitest/test/repro/one/two/three', '/three/' ]
  • packages/ui/client/composables/navigation.ts: coverageUrl: '/three/index.html'

In browser mode this '/three/index.html' is not served.

Would the correct fix be to add this logic into packages/browser/src/node/index.ts as @hi-ogawa suggested in #5013 - I think:

coverageFolder && server.middlewares.use(coveragePath!, sirv(coverageFolder[0], {

@AriPerkkio AriPerkkio force-pushed the fix/browser-coverage-dir branch from 89e498d to b57f074 Compare January 30, 2024 18:44
@AriPerkkio AriPerkkio marked this pull request as ready for review January 31, 2024 05:49
@AriPerkkio AriPerkkio requested a review from userquin January 31, 2024 05:50
@AriPerkkio
Copy link
Member Author

Are there any existing test cases for browser's watch mode? I guess only UI has those e2e-tests?

@sheremet-va
Copy link
Member

sheremet-va commented Jan 31, 2024

We have a browser test in test/watch/file-watching.test.ts. For the UI part, we don't have any tests.

@AriPerkkio
Copy link
Member Author

There are no existing test cases where this could be added easily. I've tried to build a new one into test/ui but for some reason Playwright sees only a blank page there.

And now I'm again running into the case where browser mode picks non-existing test cases and fails:

I'll try to verify these changes manually with multiple different configuration options once the error above stops showing up. But I'm not sure if adding a regression test is doable for now.

userquin
userquin previously approved these changes Feb 2, 2024
Copy link
Member

@userquin userquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic seems to be the same included in the vitest:ui plugin

@AriPerkkio
Copy link
Member Author

AriPerkkio commented Feb 2, 2024

I've now tested multiple different variations of reportsDirectory and it seems to work OK.

About the error mentioned in #5056 (comment). This is something I've seen many times ever since browser mode was implemented. We've also seen this on CI.

Browser mode seems to attempt to run test cases that do not belong to the current project that is being run. It includes test cases from previous browser mode runs. I'm starting to think there is some kind of 24h caching that causes this. When I ran into this bug this time, I tried removing all node_modules, installing fresh dependencies and building project. I even rebooted my laptop and it still came up. I searched node_modules and pnpm store path location for matches of the erroneous test case but there were none. I was hoping some .vite or .vitest cache would be the root cause. The error came up with all browser.provider options - even the none one. The error disappeared now that I ran tests again today - I had not done any changes in between. 🤷

@AriPerkkio AriPerkkio merged commit ae73f27 into vitest-dev:main Feb 2, 2024
@AriPerkkio AriPerkkio deleted the fix/browser-coverage-dir branch February 2, 2024 16:27
@sheremet-va sheremet-va added this to the 1.3.0 milestone Feb 9, 2024
renovate bot referenced this pull request in Johannes-Andersen/Johannes Feb 16, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@vitest/coverage-v8](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-v8#readme)
([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8))
| [`1.2.2` ->
`1.3.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/1.2.2/1.3.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitest%2fcoverage-v8/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitest%2fcoverage-v8/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitest%2fcoverage-v8/1.2.2/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitest%2fcoverage-v8/1.2.2/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vitest](https://togithub.com/vitest-dev/vitest)
([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| [`1.2.2` ->
`1.3.0`](https://renovatebot.com/diffs/npm/vitest/1.2.2/1.3.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/1.2.2/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/1.2.2/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitest-dev/vitest (@&#8203;vitest/coverage-v8)</summary>

###
[`v1.3.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.3.0)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v1.2.2...v1.3.0)

##### 🚀 Features

- Deprecate watchExclude - by
[@&#8203;patak-dev](https://togithub.com/patak-dev) in
[https://github.com/vitest-dev/vitest/issues/5171](https://togithub.com/vitest-dev/vitest/issues/5171)
[<samp>(82885)</samp>](https://togithub.com/vitest-dev/vitest/commit/828858f8)
-   **browser**:
- Run test files in isolated iframes - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5036](https://togithub.com/vitest-dev/vitest/issues/5036)
[<samp>(4f401)</samp>](https://togithub.com/vitest-dev/vitest/commit/4f40177e)
-   **config**:
- Add `snapshotSerializers` option - by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/5092](https://togithub.com/vitest-dev/vitest/issues/5092)
[<samp>(5b102)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b1021da)
-   **reporters**:
- Support custom options - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5111](https://togithub.com/vitest-dev/vitest/issues/5111)
[<samp>(fec9c)</samp>](https://togithub.com/vitest-dev/vitest/commit/fec9ca0b)
-   **runner**:
- Support automatic fixtures - by
[@&#8203;fenghan34](https://togithub.com/fenghan34) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5102](https://togithub.com/vitest-dev/vitest/issues/5102)
[<samp>(0441f)</samp>](https://togithub.com/vitest-dev/vitest/commit/0441f761)
-   **ui**:
- Save splitpanes size to local storage - by
[@&#8203;posva](https://togithub.com/posva) in
[https://github.com/vitest-dev/vitest/issues/5166](https://togithub.com/vitest-dev/vitest/issues/5166)
[<samp>(c28b4)</samp>](https://togithub.com/vitest-dev/vitest/commit/c28b4c26)
-   **vitest**:
- Add onTestFinished hook - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5128](https://togithub.com/vitest-dev/vitest/issues/5128)
[<samp>(6f5b4)</samp>](https://togithub.com/vitest-dev/vitest/commit/6f5b42b7)
- Add github actions reporter - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5093](https://togithub.com/vitest-dev/vitest/issues/5093)
[<samp>(40afb)</samp>](https://togithub.com/vitest-dev/vitest/commit/40afbe3a)
- Expose jsdom global if jsdom environment is enabled - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5155](https://togithub.com/vitest-dev/vitest/issues/5155)
[<samp>(567d2)</samp>](https://togithub.com/vitest-dev/vitest/commit/567d20b9)
- Add new CLI options - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5163](https://togithub.com/vitest-dev/vitest/issues/5163)
[<samp>(4e179)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e179426)
- "test" accepts options object as the second parameter - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5142](https://togithub.com/vitest-dev/vitest/issues/5142)
[<samp>(7d9b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/7d9b1fb0)
-   **vm**:
- Support wasm module - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5131](https://togithub.com/vitest-dev/vitest/issues/5131)
[<samp>(5ed53)</samp>](https://togithub.com/vitest-dev/vitest/commit/5ed537f0)

##### 🐞 Bug Fixes

- Fix sourcemap in vm pools - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5063](https://togithub.com/vitest-dev/vitest/issues/5063)
[<samp>(81105)</samp>](https://togithub.com/vitest-dev/vitest/commit/8110540a)
- Don't optimize react/jsx-runtime by default when running in Node - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5079](https://togithub.com/vitest-dev/vitest/issues/5079)
[<samp>(0d2bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/0d2bfeac)
- Rpc timeout error messages to include caller - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5103](https://togithub.com/vitest-dev/vitest/issues/5103)
[<samp>(a6e04)</samp>](https://togithub.com/vitest-dev/vitest/commit/a6e04bd8)
- Requires fixed version across the monorepo - by
[@&#8203;antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/5208](https://togithub.com/vitest-dev/vitest/issues/5208)
[<samp>(68f51)</samp>](https://togithub.com/vitest-dev/vitest/commit/68f51961)
- Prevent merging of `poolOptions` - by
[@&#8203;penalosa](https://togithub.com/penalosa) in
[https://github.com/vitest-dev/vitest/issues/5221](https://togithub.com/vitest-dev/vitest/issues/5221)
[<samp>(bc5b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc5b2d04)
-   **browser**:
- Don't exclude node builtins from optimization - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5082](https://togithub.com/vitest-dev/vitest/issues/5082)
[<samp>(714c9)</samp>](https://togithub.com/vitest-dev/vitest/commit/714c911f)
- Support `coverage.reportsDirectory` with multiple directories - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5056](https://togithub.com/vitest-dev/vitest/issues/5056)
[<samp>(ae73f)</samp>](https://togithub.com/vitest-dev/vitest/commit/ae73f273)
-   **cli**:
- Parse `--browser=<name>` correctly - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5179](https://togithub.com/vitest-dev/vitest/issues/5179)
[<samp>(656e2)</samp>](https://togithub.com/vitest-dev/vitest/commit/656e210b)
-   **coverage**:
- `.tmp` directory conflicts with `--shard` option - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5184](https://togithub.com/vitest-dev/vitest/issues/5184)
[<samp>(5749d)</samp>](https://togithub.com/vitest-dev/vitest/commit/5749d2c2)
-   **deps**:
- Update dependency strip-literal to v2 - by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/vitest-dev/vitest/issues/5136](https://togithub.com/vitest-dev/vitest/issues/5136)6
[<samp>(ef557)</samp>](https://togithub.com/vitest-dev/vitest/commit/ef557243)
-   **reporters**:
- Testsuite name should include project root in Junit output - by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/5116](https://togithub.com/vitest-dev/vitest/issues/5116)
[<samp>(2494f)</samp>](https://togithub.com/vitest-dev/vitest/commit/2494fbf2)
-   **typecheck**:
- Fix suite collection while-loop - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5065](https://togithub.com/vitest-dev/vitest/issues/5065)
[<samp>(35675)</samp>](https://togithub.com/vitest-dev/vitest/commit/35675bd3)
-   **ui**:
- Fix tests duration time - by
[@&#8203;vovsemenv](https://togithub.com/vovsemenv) in
[https://github.com/vitest-dev/vitest/issues/5219](https://togithub.com/vitest-dev/vitest/issues/5219)
[<samp>(58103)</samp>](https://togithub.com/vitest-dev/vitest/commit/581030ee)
-   **utils**:
- Fix asymmetric matcher diff inside array - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5189](https://togithub.com/vitest-dev/vitest/issues/5189)
[<samp>(3ffcd)</samp>](https://togithub.com/vitest-dev/vitest/commit/3ffcd2ea)
-   **vitest**:
- Correctly report failed test files as failures in json reporter,
export json reporter types - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5081](https://togithub.com/vitest-dev/vitest/issues/5081)
[<samp>(0417b)</samp>](https://togithub.com/vitest-dev/vitest/commit/0417ba20)
- Don't run typecheck tests in browser if both are enabled - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5080](https://togithub.com/vitest-dev/vitest/issues/5080)
[<samp>(1045b)</samp>](https://togithub.com/vitest-dev/vitest/commit/1045b98b)
- Handle function config inside `defineWorkspace` - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5089](https://togithub.com/vitest-dev/vitest/issues/5089)
[<samp>(0bf52)</samp>](https://togithub.com/vitest-dev/vitest/commit/0bf52533)
- Remove excessive listeners when running without isolation, don't reset
the state - by [@&#8203;sheremet-va](https://togithub.com/sheremet-va)
in
[https://github.com/vitest-dev/vitest/issues/5132](https://togithub.com/vitest-dev/vitest/issues/5132)
[<samp>(b607f)</samp>](https://togithub.com/vitest-dev/vitest/commit/b607f1ea)
- Auto-enable "github-actions" only where users didn't configure
reporters - by [@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5158](https://togithub.com/vitest-dev/vitest/issues/5158)
[<samp>(ef044)</samp>](https://togithub.com/vitest-dev/vitest/commit/ef0440cb)
- Support more array cli options - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5162](https://togithub.com/vitest-dev/vitest/issues/5162)
[<samp>(3afe6)</samp>](https://togithub.com/vitest-dev/vitest/commit/3afe68f1)
- Add types for the new global `jsdom` variable - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5164](https://togithub.com/vitest-dev/vitest/issues/5164)
[<samp>(0f898)</samp>](https://togithub.com/vitest-dev/vitest/commit/0f898d87)
- Expose onTestFinished globally - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va)
[<samp>(1304f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1304fed7)
- Disable optimizer by default until it's stable - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5156](https://togithub.com/vitest-dev/vitest/issues/5156)
[<samp>(e1bd8)</samp>](https://togithub.com/vitest-dev/vitest/commit/e1bd8d5d)
- Delegate snapshot options to workspace from root config - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5199](https://togithub.com/vitest-dev/vitest/issues/5199)
[<samp>(86297)</samp>](https://togithub.com/vitest-dev/vitest/commit/86297d42)
- Fix `optimizeDeps.disabled` warnings on Vite 5.1 - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5215](https://togithub.com/vitest-dev/vitest/issues/5215)
[<samp>(1aecd)</samp>](https://togithub.com/vitest-dev/vitest/commit/1aecd650)
-   **vm**:
- Handle `disableConsoleIntercept` config - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5074](https://togithub.com/vitest-dev/vitest/issues/5074)
[<samp>(a55ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/a55adac6)
- Improve error when module is not found - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5053](https://togithub.com/vitest-dev/vitest/issues/5053)
[<samp>(79a50)</samp>](https://togithub.com/vitest-dev/vitest/commit/79a50c3f)

##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.2.2...v1.3.0)

</details>

---

### 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.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Johannes-Andersen/Johannes).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in fwouts/previewjs Feb 16, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vitest](https://togithub.com/vitest-dev/vitest)
([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| [`^1.2.2` ->
`^1.3.0`](https://renovatebot.com/diffs/npm/vitest/1.2.2/1.3.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/1.2.2/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/1.2.2/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitest-dev/vitest (vitest)</summary>

###
[`v1.3.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.3.0)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v1.2.2...v1.3.0)

##### 🚀 Features

- Deprecate watchExclude - by
[@&#8203;patak-dev](https://togithub.com/patak-dev) in
[https://github.com/vitest-dev/vitest/issues/5171](https://togithub.com/vitest-dev/vitest/issues/5171)
[<samp>(82885)</samp>](https://togithub.com/vitest-dev/vitest/commit/828858f8)
-   **browser**:
- Run test files in isolated iframes - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5036](https://togithub.com/vitest-dev/vitest/issues/5036)
[<samp>(4f401)</samp>](https://togithub.com/vitest-dev/vitest/commit/4f40177e)
-   **config**:
- Add `snapshotSerializers` option - by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/5092](https://togithub.com/vitest-dev/vitest/issues/5092)
[<samp>(5b102)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b1021da)
-   **reporters**:
- Support custom options - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5111](https://togithub.com/vitest-dev/vitest/issues/5111)
[<samp>(fec9c)</samp>](https://togithub.com/vitest-dev/vitest/commit/fec9ca0b)
-   **runner**:
- Support automatic fixtures - by
[@&#8203;fenghan34](https://togithub.com/fenghan34) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5102](https://togithub.com/vitest-dev/vitest/issues/5102)
[<samp>(0441f)</samp>](https://togithub.com/vitest-dev/vitest/commit/0441f761)
-   **ui**:
- Save splitpanes size to local storage - by
[@&#8203;posva](https://togithub.com/posva) in
[https://github.com/vitest-dev/vitest/issues/5166](https://togithub.com/vitest-dev/vitest/issues/5166)
[<samp>(c28b4)</samp>](https://togithub.com/vitest-dev/vitest/commit/c28b4c26)
-   **vitest**:
- Add onTestFinished hook - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5128](https://togithub.com/vitest-dev/vitest/issues/5128)
[<samp>(6f5b4)</samp>](https://togithub.com/vitest-dev/vitest/commit/6f5b42b7)
- Add github actions reporter - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5093](https://togithub.com/vitest-dev/vitest/issues/5093)
[<samp>(40afb)</samp>](https://togithub.com/vitest-dev/vitest/commit/40afbe3a)
- Expose jsdom global if jsdom environment is enabled - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5](https://togithub.com/vitest-dev/vitest/issues/5)[15](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:16)5
[<samp>(567d2)</samp>](https://togithub.com/vitest-dev/vitest/commit/567d20b9)
- Add new CLI options - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5](https://togithub.com/vitest-dev/vitest/issues/5)[16](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:17)3
[<samp>(4e179)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e179426)
- "test" accepts options object as the second parameter - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5142](https://togithub.com/vitest-dev/vitest/issues/5142)
[<samp>(7d9b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/7d9b1fb0)
-   **vm**:
- Support wasm module - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5131](https://togithub.com/vitest-dev/vitest/issues/5131)
[<samp>(5ed53)</samp>](https://togithub.com/vitest-dev/vitest/commit/5ed537f0)

##### 🐞 Bug Fixes

- Fix sourcemap in vm pools - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5063](https://togithub.com/vitest-dev/vitest/issues/5063)
[<samp>(81105)</samp>](https://togithub.com/vitest-dev/vitest/commit/8110540a)
- Don't optimize react/jsx-runtime by default when running in Node - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5079](https://togithub.com/vitest-dev/vitest/issues/5079)
[<samp>(0d2bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/0d2bfeac)
- Rpc timeout error messages to include caller - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5103](https://togithub.com/vitest-dev/vitest/issues/5103)
[<samp>(a6e04)</samp>](https://togithub.com/vitest-dev/vitest/commit/a6e04bd8)
- Requires fixed version across the monorepo - by
[@&#8203;antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/5208](https://togithub.com/vitest-dev/vitest/issues/5208)
[<samp>(68f51)</samp>](https://togithub.com/vitest-dev/vitest/commit/68f51961)
- Prevent merging of `poolOptions` - by
[@&#8203;penalosa](https://togithub.com/penalosa) in
[https://github.com/vitest-dev/vitest/issues/5221](https://togithub.com/vitest-dev/vitest/issues/5221)
[<samp>(bc5b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc5b2d04)
-   **browser**:
- Don't exclude node builtins from optimization - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5082](https://togithub.com/vitest-dev/vitest/issues/5082)
[<samp>(714c9)</samp>](https://togithub.com/vitest-dev/vitest/commit/714c911f)
- Support `coverage.reportsDirectory` with multiple directories - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5056](https://togithub.com/vitest-dev/vitest/issues/5056)
[<samp>(ae73f)</samp>](https://togithub.com/vitest-dev/vitest/commit/ae73f273)
-   **cli**:
- Parse `--browser=<name>` correctly - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5](https://togithub.com/vitest-dev/vitest/issues/5)[17](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:18)9
[<samp>(656e2)</samp>](https://togithub.com/vitest-dev/vitest/commit/656e210b)
-   **coverage**:
- `.tmp` directory conflicts with `--shard` option - by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/5](https://togithub.com/vitest-dev/vitest/issues/5)[18](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:19)4
[<samp>(5749d)</samp>](https://togithub.com/vitest-dev/vitest/commit/5749d2c2)
-   **deps**:
- Update dependency strip-literal to v2 - by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/vitest-dev/vitest/issues/5136](https://togithub.com/vitest-dev/vitest/issues/5136)6
[<samp>(ef557)</samp>](https://togithub.com/vitest-dev/vitest/commit/ef557243)
-   **reporters**:
- Testsuite name should include project root in Junit output - by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/5116](https://togithub.com/vitest-dev/vitest/issues/5116)
[<samp>(2494f)</samp>](https://togithub.com/vitest-dev/vitest/commit/2494fbf2)
-   **typecheck**:
- Fix suite collection while-loop - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5065](https://togithub.com/vitest-dev/vitest/issues/5065)
[<samp>(35675)</samp>](https://togithub.com/vitest-dev/vitest/commit/35675bd3)
-   **ui**:
- Fix tests duration time - by
[@&#8203;vovsemenv](https://togithub.com/vovsemenv) in
[https://github.com/vitest-dev/vitest/issues/52](https://togithub.com/vitest-dev/vitest/issues/52)[19](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:20)
[<samp>(58103)</samp>](https://togithub.com/vitest-dev/vitest/commit/581030ee)
-   **utils**:
- Fix asymmetric matcher diff inside array - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5189](https://togithub.com/vitest-dev/vitest/issues/5189)
[<samp>(3ffcd)</samp>](https://togithub.com/vitest-dev/vitest/commit/3ffcd2ea)
-   **vitest**:
- Correctly report failed test files as failures in json reporter,
export json reporter types - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5081](https://togithub.com/vitest-dev/vitest/issues/5081)
[<samp>(0417b)</samp>](https://togithub.com/vitest-dev/vitest/commit/0417ba\[20]\(https://github.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:21\))
- Don't run typecheck tests in browser if both are enabled - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5080](https://togithub.com/vitest-dev/vitest/issues/5080)
[<samp>(1045b)</samp>](https://togithub.com/vitest-dev/vitest/commit/1045b98b)
- Handle function config inside `defineWorkspace` - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5089](https://togithub.com/vitest-dev/vitest/issues/5089)
[<samp>(0bf52)</samp>](https://togithub.com/vitest-dev/vitest/commit/0bf52533)
- Remove excessive listeners when running without isolation, don't reset
the state - by [@&#8203;sheremet-va](https://togithub.com/sheremet-va)
in
[https://github.com/vitest-dev/vitest/issues/5132](https://togithub.com/vitest-dev/vitest/issues/5132)
[<samp>(b607f)</samp>](https://togithub.com/vitest-dev/vitest/commit/b607f1ea)
- Auto-enable "github-actions" only where users didn't configure
reporters - by [@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5158](https://togithub.com/vitest-dev/vitest/issues/5158)
[<samp>(ef044)</samp>](https://togithub.com/vitest-dev/vitest/commit/ef0440cb)
- Support more array cli options - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5162](https://togithub.com/vitest-dev/vitest/issues/5162)
[<samp>(3afe6)</samp>](https://togithub.com/vitest-dev/vitest/commit/3afe68f1)
- Add types for the new global `jsdom` variable - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5164](https://togithub.com/vitest-dev/vitest/issues/5164)
[<samp>(0f898)</samp>](https://togithub.com/vitest-dev/vitest/commit/0f898d87)
- Expose onTestFinished globally - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va)
[<samp>(1304f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1304fed7)
- Disable optimizer by default until it's stable - by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/5156](https://togithub.com/vitest-dev/vitest/issues/5156)
[<samp>(e1bd8)</samp>](https://togithub.com/vitest-dev/vitest/commit/e1bd8d5d)
- Delegate snapshot options to workspace from root config - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5199](https://togithub.com/vitest-dev/vitest/issues/5199)
[<samp>(86297)</samp>](https://togithub.com/vitest-dev/vitest/commit/86297d42)
- Fix `optimizeDeps.disabled` warnings on Vite 5.1 - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/5](https://togithub.com/vitest-dev/vitest/issues/5)[21](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:22)5
[<samp>(1aecd)</samp>](https://togithub.com/vitest-dev/vitest/commit/1aecd650)
-   **vm**:
- Handle `disableConsoleIntercept` config - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
https://github.com/vitest-dev/vitest/issues/[50](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:51)74
[<samp>(a55ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/a55adac6)
- Improve error when module is not found - by
[@&#8203;hi-ogawa](https://togithub.com/hi-ogawa) in
[https://github.com/vitest-dev/vitest/issues/50](https://togithub.com/vitest-dev/vitest/issues/50)[53](https://togithub.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:54)
[<samp>(79a50)</samp>](https://togithub.com/vitest-dev/vitest/commit/79a50c3f)

##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.2.2...v1.3.0)

</details>

---

### 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.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in ariakit/ariakit Feb 16, 2024