Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vite-node] error transforming template literals with source map magic string #2918

Closed
6 tasks done
Tanimodori opened this issue Feb 25, 2023 · 2 comments · Fixed by #3379
Closed
6 tasks done

[vite-node] error transforming template literals with source map magic string #2918

Tanimodori opened this issue Feb 25, 2023 · 2 comments · Fixed by #3379

Comments

@Tanimodori
Copy link
Contributor

Describe the bug

vite-node will transform the following code

export function foo(src: string): string {
  return `//# sourceMappingURL=data:application/json;base64,${src}`;
}

into

// /home/projects/vitest-dev-vitest-dq6zze/foo.ts
function foo(src) {
  return `
}
Object.defineProperty(__vite_ssr_exports__, "foo", { enumerable: true, configurable: true, get(){ return foo }});

//# sourceMappingSource=vite-node
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IkFBQU8sU0FBUyxJQUFJLEtBQXFCO0FBQ3ZDLFNBQU8scURBQXFEO0FBQzlEO2lIQUFBIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi9ob21lL3Byb2plY3RzL3ZpdGVzdC1kZXYtdml0ZXN0LWRxNnp6ZS9mb28udHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGZvbyhzcmM6IHN0cmluZyk6IHN0cmluZyB7XHJcbiAgcmV0dXJuIGAvLyMgc291cmNlTWFwcGluZ1VSTD1kYXRhOmFwcGxpY2F0aW9uL2pzb247YmFzZTY0LCR7c3JjfWA7XHJcbn1cclxuIl0sImZpbGUiOiIvaG9tZS9wcm9qZWN0cy92aXRlc3QtZGV2LXZpdGVzdC1kcTZ6emUvZm9vLnRzIn0=

The backtick is missing so it will resulting in SyntaxError: Unexpected end of input in run-time.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-dq6zze?file=foo.ts

Reproduction steps:

  1. VITE_NODE_DEBUG_DUMP=true && vite-node ./foo.ts
[vite-node] [debug] dump modules to /home/projects/vitest-dev-vitest-dq6zze/.vite-node/dump
SyntaxError: Unexpected end of input
    at __global_eval__ (https://vitestdevvitestdq6zze-ytrg.w-credentialless.staticblitz.com/blitz.fc57b779eff411414c7b91114df9b720faaf721b.js:1:267)
    at _0x3c1c8c (https://vitestdevvitestdq6zze-ytrg.w-credentialless.staticblitz.com/blitz.fc57b779eff411414c7b91114df9b720faaf721b.js:15:145824)
    at Script.runInThisContext (https://vitestdevvitestdq6zze-ytrg.w-credentialless.staticblitz.com/blitz.fc57b779eff411414c7b91114df9b720faaf721b.js:15:144645)
    at Script.runInThisContext (https://vitestdevvitestdq6zze-ytrg.w-credentialless.staticblitz.com/blitz.fc57b779eff411414c7b91114df9b720faaf721b.js:6:338067)
    at Object.runInThisContext (https://vitestdevvitestdq6zze-ytrg.w-credentialless.staticblitz.com/blitz.fc57b779eff411414c7b91114df9b720faaf721b.js:6:340777)
    at ViteNodeRunner.directRequest (file://file:///home/projects/vitest-dev-vitest-dq6zze/node_modules/vite-node/dist/client.mjs:324:32)
    at ViteNodeRunner.cachedRequest (file://file:///home/projects/vitest-dev-vitest-dq6zze/node_modules/vite-node/dist/client.mjs:173:14)
    at ViteNodeRunner.executeFile (file://file:///home/projects/vitest-dev-vitest-dq6zze/node_modules/vite-node/dist/client.mjs:150:12)
    at CAC.run (file://file:///home/projects/vitest-dev-vitest-dq6zze/node_modules/vite-node/dist/cli.mjs:81:5)
  1. cat ~/projects/vitest-dev-vitest-dq6zze/.vite-node/dump/_home_projects_vitest-dev-vitest-dq6zze_foo_ts-756022366.js (Note that the hash may change. Use auto-completion for correct filename.)
// /home/projects/vitest-dev-vitest-dq6zze/foo.ts
function foo(src) {
  return `
}
Object.defineProperty(__vite_ssr_exports__, "foo", { enumerable: true, configurable: true, get(){ return foo }});

//# sourceMappingSource=vite-node
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IkFBQU8sU0FBUyxJQUFJLEtBQXFCO0FBQ3ZDLFNBQU8scURBQXFEO0FBQzlEO2lIQUFBIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi9ob21lL3Byb2plY3RzL3ZpdGVzdC1kZXYtdml0ZXN0LWRxNnp6ZS9mb28udHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGZvbyhzcmM6IHN0cmluZyk6IHN0cmluZyB7XHJcbiAgcmV0dXJuIGAvLyMgc291cmNlTWFwcGluZ1VSTD1kYXRhOmFwcGxpY2F0aW9uL2pzb247YmFzZTY0LCR7c3JjfWA7XHJcbn1cclxuIl0sImZpbGUiOiIvaG9tZS9wcm9qZWN0cy92aXRlc3QtZGV2LXZpdGVzdC1kcTZ6emUvZm9vLnRzIn0=

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @vitest/ui: latest => 0.28.5 
    vite: latest => 4.1.4 
    vitest: latest => 0.28.5

Used Package Manager

npm

Validations

@Tanimodori
Copy link
Contributor Author

Tanimodori commented Feb 25, 2023

One more simple example

export const foo = '//# sourceMappingURL=data:application/json;base64,';

@rxliuli
Copy link
Contributor

rxliuli commented May 16, 2023

Looks like the problem is caused by this modification, ref: #2427

sheremet-va added a commit that referenced this issue May 25, 2023
…3379)

Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
renovate bot referenced this issue in ariakit/ariakit May 30, 2023
[![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-c8](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-c8#readme)
([source](https://togithub.com/vitest-dev/vitest)) | [`0.31.1` ->
`0.31.2`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.31.1/0.31.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.2/compatibility-slim/0.31.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.2/confidence-slim/0.31.1)](https://docs.renovatebot.com/merge-confidence/)
|
| [vitest](https://togithub.com/vitest-dev/vitest) | [`0.31.1` ->
`0.31.2`](https://renovatebot.com/diffs/npm/vitest/0.31.1/0.31.2) |
[![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.2/compatibility-slim/0.31.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.2/confidence-slim/0.31.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)

#####    🚀 Features

- Throw error if using inline snapshot inside of `test.each` or
`describe.each`  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360)
[<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088)
- Pass down meta information to Node.js process  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) and
[@&#8203;dammy001](https://togithub.com/dammy001) in
[https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449)
[<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8)
- **coverage**: Add `reportOnFailure` option  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453)
[<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4)
- **dev**: Add moduleDirectories option to the vitest config  -  by
[@&#8203;fooddilsn](https://togithub.com/fooddilsn) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337)
[<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc)

#####    🐞 Bug Fixes

- Don't print empty diff  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437)
[<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f)
- Don't restore methods in automocked dependencies  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438)
[<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262)
- Dot reporter scrollback buffer spam  -  by
[@&#8203;gtm-nayan](https://togithub.com/gtm-nayan) in
[https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415)
[<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94)
- Gracefully exit when first `SIGINT` is received  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407)
[<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38)
- `rejects` & `resolves` breaks with thenable objects  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456)
[<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5)
- Prevent `birpc` timeouts when `Math.random` mock is not restored  - 
by [@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460)
[<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7)
- Assertion diff message now handle non writable property correctly  - 
by [@&#8203;PCreations](https://togithub.com/PCreations) in
[https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422)
[<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650)
- Extend logging of process timeout errors  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452)
[<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904)
- Support requiring files with `less` extension  -  by
[@&#8203;rluvaton](https://togithub.com/rluvaton) in
[https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465)
[<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695)
-   **cli**:
- Improve colors used when erroring  -  by
[@&#8203;ghiscoding](https://togithub.com/ghiscoding) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349)
[<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791)
-   **runner**:
- Suite timeout does not take effect  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455)
[<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376)
-   **spy**:
- Don't print received calls if there are no calls  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405)
[<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad)
-   **typecheck**:
- Show tsc errors not related to test files  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441)
[<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714)
-   **types**:
- Fix `PartialMock` with async TReturns  -  by
[@&#8203;ghry5](https://togithub.com/ghry5) in
[https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462)
[<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c)
-   **vite-node**:
- Circular import stuck  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418)
[<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40)
- Coerce to string in import(dep)  -  by
[@&#8203;jcbhmr](https://togithub.com/jcbhmr) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430)
[<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9)
- Don't remove sourcemap string in source code  -  by
[@&#8203;rxliuli](https://togithub.com/rxliuli) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918)
and
[https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379)
[<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7)
- Don't externalize "dist" by default  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446)
[<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)

</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://app.renovatebot.com/dashboard#github/ariakit/ariakit).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
David-Duefrene referenced this issue in David-Duefrene/dataviewer Jun 6, 2023
[![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) | [`0.30.1` ->
`0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.32.0) |
[![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0)

#####    🚨 Breaking Changes

- Throw an error, if the module cannot be resolved  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307)
[<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c)
- Improve globs  -  by
[@&#8203;nickmccurdy](https://togithub.com/nickmccurdy) in
[https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392)
[<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7)
- Add `@vitest/coverage-v8` package  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339)
[<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1)
- **mocker**: Don't restore mock to the original if the module is
automocked  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518)
[<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14)

#####    🚀 Features

- Support ssr optimizer  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490)
[<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0)
- Image type add apng  -  by [@&#8203;btea](https://togithub.com/btea)
in
[https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498)
[<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151)
- **expect**: Support `expect.soft`  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507)
[<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada)
- **runner**: Support using function/class as `describe`/`test` name  - 
by [@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497)
[<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890)

#####    🐞 Bug Fixes

- The cli option is passed to coverage.exclude  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506)
[<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe)
- **optimizer**: Always respect optimizeDeps even if include/exclude is
overridden  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488)
[<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0)
- **runner**: Ensure Vitest is deduped  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489)
[<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab)
- **ui**: Don't cache coverage assets  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508)
[<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6)
- **vite-node**: Circular import stuck  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480)
[<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d)
- **watch**: Junit reporter fails to re-generate report  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496)
[<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4)

#####    🚀 Features

- Enable experimentalOptimizer  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413)
[<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2)

#####    🐞 Bug Fixes

- **vite-node**: Deps.inline doesn't work  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485)
[<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3)

#####    🚀 Features

- Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471)
[<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c)

#####    🐞 Bug Fixes

- **logger**: Print unhandled errors before summary  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474)
[<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58)
- **runner**: Suite options do not propagate to nested suites (fix:
[#&#8203;3467](https://togithub.com/vitest-dev/vitest/issues/3467))  - 
by [@&#8203;xsjcTony](https://togithub.com/xsjcTony) in
[https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473)
and
[https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467)
[<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb)
- **vite-node**: Clear importers when invalidating module  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475)
[<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)

#####    🚀 Features

- Throw error if using inline snapshot inside of `test.each` or
`describe.each`  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360)
[<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088)
- Pass down meta information to Node.js process  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) and
[@&#8203;dammy001](https://togithub.com/dammy001) in
[https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449)
[<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8)
- **coverage**: Add `reportOnFailure` option  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453)
[<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4)
- **dev**: Add moduleDirectories option to the vitest config  -  by
[@&#8203;fooddilsn](https://togithub.com/fooddilsn) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337)
[<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc)

#####    🐞 Bug Fixes

- Don't print empty diff  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437)
[<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f)
- Don't restore methods in automocked dependencies  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438)
[<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262)
- Dot reporter scrollback buffer spam  -  by
[@&#8203;gtm-nayan](https://togithub.com/gtm-nayan) in
[https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415)
[<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94)
- Gracefully exit when first `SIGINT` is received  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407)
[<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38)
- `rejects` & `resolves` breaks with thenable objects  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456)
[<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5)
- Prevent `birpc` timeouts when `Math.random` mock is not restored  - 
by [@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460)
[<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7)
- Assertion diff message now handle non writable property correctly  - 
by [@&#8203;PCreations](https://togithub.com/PCreations) in
[https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422)
[<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650)
- Extend logging of process timeout errors  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452)
[<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904)
- Support requiring files with `less` extension  -  by
[@&#8203;rluvaton](https://togithub.com/rluvaton) in
[https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465)
[<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695)
-   **cli**:
- Improve colors used when erroring  -  by
[@&#8203;ghiscoding](https://togithub.com/ghiscoding) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349)
[<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791)
-   **runner**:
- Suite timeout does not take effect  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455)
[<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376)
-   **spy**:
- Don't print received calls if there are no calls  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405)
[<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad)
-   **typecheck**:
- Show tsc errors not related to test files  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441)
[<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714)
-   **types**:
- Fix `PartialMock` with async TReturns  -  by
[@&#8203;ghry5](https://togithub.com/ghry5) in
[https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462)
[<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c)
-   **vite-node**:
- Circular import stuck  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418)
[<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40)
- Coerce to string in import(dep)  -  by
[@&#8203;jcbhmr](https://togithub.com/jcbhmr) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430)
[<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9)
- Don't remove sourcemap string in source code  -  by
[@&#8203;rxliuli](https://togithub.com/rxliuli) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918)
and
[https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379)
[<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7)
- Don't externalize "dist" by default  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446)
[<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1)

#####    🚀 Features

- **watch**: Press `r` should rerun current pattern tests  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) and
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305)
[<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117)

#####    🐞 Bug Fixes

- Make sure thrown error is an object  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298)
[<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c)
- Remove duplicate type  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303)
[<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6)
- Throw an error, if tests are collected with a different vitest version
 -  by [@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301)
[<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe)
- Support application/x-gzip metadata in html report  -  by
[@&#8203;mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in
[https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333)
[<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e)
- Correctly restore vi.fn implementation  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341)
[<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f)
- Display error message correctly  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314)
[<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e)
- Exclude `cwd` from test name filter  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353)
[<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54)
- Check error type before modifying it  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385)
[<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912)
- `toMatchInlineSnapshot` fails when file path includes parentheses  - 
by [@&#8203;pacexy](https://togithub.com/pacexy) in
[https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370)
and
[https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371)
[<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a)
- Stop spying on a method, when it's restored  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386)
[<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a)
- Test repeats  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369)
[<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab)
-   **browser**:
- Throw an error if test failed to load  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390)
[<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c)
- Keep default export when rewriting exports  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389)
[<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3)
-   **cli**:
- Improve cac errors when mixing boolean and dot notation  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302)
[<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d)
-   **reporter**:
- Prevent deleting test reports stored in coverage directory  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331)
[<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396)
-   **typecheck**:
- Correctly resolve custom tsconfig path  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342)
[<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079)
-   **vite-node**:
- Allow returning id not wrapped in promise  -  by
[@&#8203;danielroe](https://togithub.com/danielroe) in
[https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312)
[<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.30.1...v0.31.0)

#####    🚨 Breaking Changes

- Remove `browser` from allowed pools inside `poolMatchGlob` config
option. Please, use Vitest workspaces for running tests in the browser.
- Move assertion declarations to expect package  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3294](https://togithub.com/vitest-dev/vitest/issues/3294)
[<samp>(cf3af)</samp>](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b)

    -   The change should be minor:

    ```diff
    - declare namespace Vi {
    + declare module 'vitest' {
       interface Assertion<T = any> extends CustomMatchers<T> {}
       interface AsymmetricMatchersContaining extends CustomMatchers {}
    }
    ```

#####    🚀 Features

- Update mock implementation to support ESM runtime, introduce
"vi.hoisted"  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3258](https://togithub.com/vitest-dev/vitest/issues/3258)
[<samp>(0c09a)</samp>](https://togithub.com/vitest-dev/vitest/commit/0c09a40d)
- Bypass ESM import order restriction with `vi.hoisted` to run code
before imports are executed:
    ```ts
    vi.hoisted(() => vi.setSystemTime(new Date(2022, 1, 1)))
    ```
    You can also use it to pass variables to `vi.mock`:
    ```ts
    const { mockedMethod } = vi.hoisted(() => {
      return { mockedMethod: vi.fn() }
    })   
    vi.mock('./path/to/module.js', () => {
      return { originalMethod: mockedMethod }
    })
    ```
- Add repeat method to tests  -  by
[@&#8203;samkevin1](https://togithub.com/samkevin1) in
[https://github.com/vitest-dev/vitest/issues/2652](https://togithub.com/vitest-dev/vitest/issues/2652)
[<samp>(7c8f0)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c8f0ba9)
- Add an option to hide skipped test lines  -  by
[@&#8203;g4rry420](https://togithub.com/g4rry420) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2745](https://togithub.com/vitest-dev/vitest/issues/2745)
[<samp>(9bdb1)</samp>](https://togithub.com/vitest-dev/vitest/commit/9bdb1603)
- **coverage**: Watermarks for c8  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3254](https://togithub.com/vitest-dev/vitest/issues/3254)
[<samp>(730af)</samp>](https://togithub.com/vitest-dev/vitest/commit/730af0b4)
- **ui**: Add html coverage  -  by
[@&#8203;userquin](https://togithub.com/userquin) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3071](https://togithub.com/vitest-dev/vitest/issues/3071)
[<samp>(e24cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/e24cd9b2)
- **watch**: Test run cancelling, feat: `--bail` option for cancelling
test run  -  by [@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3163](https://togithub.com/vitest-dev/vitest/issues/3163)
[<samp>(8d460)</samp>](https://togithub.com/vitest-dev/vitest/commit/8d4606eb)

#####    🐞 Bug Fixes

- Don't call global setup teardown twice  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3188](https://togithub.com/vitest-dev/vitest/issues/3188)
[<samp>(ba3d1)</samp>](https://togithub.com/vitest-dev/vitest/commit/ba3d1338)
- Reporter to log version before provider initalizations  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3131](https://togithub.com/vitest-dev/vitest/issues/3131)
[<samp>(481b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/481b1fd2)
- Throw an error if Vitest cannot access its internal state  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3250](https://togithub.com/vitest-dev/vitest/issues/3250)
[<samp>(fbb14)</samp>](https://togithub.com/vitest-dev/vitest/commit/fbb1468e)
- Warning suppression broken  -  by
[@&#8203;IceQub3](https://togithub.com/IceQub3) in
[https://github.com/vitest-dev/vitest/issues/3270](https://togithub.com/vitest-dev/vitest/issues/3270)
and
[https://github.com/vitest-dev/vitest/issues/3271](https://togithub.com/vitest-dev/vitest/issues/3271)
[<samp>(036de)</samp>](https://togithub.com/vitest-dev/vitest/commit/036de797)
- Show correct diff in "toHaveBeenCalledWith"  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3289](https://togithub.com/vitest-dev/vitest/issues/3289)
[<samp>(19fcd)</samp>](https://togithub.com/vitest-dev/vitest/commit/19fcd8df)
- Don't print esm warning, if package name is not found  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3292](https://togithub.com/vitest-dev/vitest/issues/3292)
[<samp>(62c14)</samp>](https://togithub.com/vitest-dev/vitest/commit/62c14cba)
- Support exactOptionalPropertyTypes  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3293](https://togithub.com/vitest-dev/vitest/issues/3293)
[<samp>(ba81d)</samp>](https://togithub.com/vitest-dev/vitest/commit/ba81d8a3)
- Don't inline vite hmr and rollup types  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3291](https://togithub.com/vitest-dev/vitest/issues/3291)
[<samp>(1f118)</samp>](https://togithub.com/vitest-dev/vitest/commit/1f1189bc)
-   **browser**:
- Failing to load vitest/utils  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3190](https://togithub.com/vitest-dev/vitest/issues/3190)
[<samp>(78bad)</samp>](https://togithub.com/vitest-dev/vitest/commit/78bad4ab)
-   **coverage**:
- `thresholdAutoUpdate` to work with `perFile`  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3182](https://togithub.com/vitest-dev/vitest/issues/3182)
[<samp>(29eeb)</samp>](https://togithub.com/vitest-dev/vitest/commit/29eebf65)
- Throw error if fail to load built-in provider  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3217](https://togithub.com/vitest-dev/vitest/issues/3217)
[<samp>(0a287)</samp>](https://togithub.com/vitest-dev/vitest/commit/0a2875e3)
- Stackblitz hangs with c8  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3225](https://togithub.com/vitest-dev/vitest/issues/3225)
[<samp>(d9fda)</samp>](https://togithub.com/vitest-dev/vitest/commit/d9fda2a1)
- C8 to ignore vite's generated helpers  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3241](https://togithub.com/vitest-dev/vitest/issues/3241)
[<samp>(21942)</samp>](https://togithub.com/vitest-dev/vitest/commit/21942db0)
- Workspaces c8 source maps  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3226](https://togithub.com/vitest-dev/vitest/issues/3226)
[<samp>(efce3)</samp>](https://togithub.com/vitest-dev/vitest/commit/efce3b4d)
-   **docs**:
- Correct typo and broken link to WebdriverIO  -  by
[@&#8203;nathanbabcock](https://togithub.com/nathanbabcock) in
[https://github.com/vitest-dev/vitest/issues/3275](https://togithub.com/vitest-dev/vitest/issues/3275)
[<samp>(c7da1)</samp>](https://togithub.com/vitest-dev/vitest/commit/c7da155f)
-   **spy**:
- Update to set initial implementation through normal logic  -  by
[@&#8203;Codex-](https://togithub.com/Codex-) in
[https://github.com/vitest-dev/vitest/issues/3260](https://togithub.com/vitest-dev/vitest/issues/3260)
and
[https://github.com/vitest-dev/vitest/issues/3263](https://togithub.com/vitest-dev/vitest/issues/3263)
[<samp>(c759a)</samp>](https://togithub.com/vitest-dev/vitest/commit/c759a9aa)
-   **vite-node**:
- Circular imports  -  by [@&#8203;antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/3196](https://togithub.com/vitest-dev/vitest/issues/3196)
[<samp>(cbb59)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbb593a8)
- Add missing `import.meta.hot.send` mock  -  by
[@&#8203;antfu](https://togithub.com/antfu)
[<samp>(b1624)</samp>](https://togithub.com/vitest-dev/vitest/commit/b1624db5)
-   **vitest**:
- Also check for vite relative to vitest package  -  by
[@&#8203;JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3274](https://togithub.com/vitest-dev/vitest/issues/3274)
[<samp>(a3393)</samp>](https://togithub.com/vitest-dev/vitest/commit/a3393b15)
-   **watch**:
- Run test files when added to filesystem  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3189](https://togithub.com/vitest-dev/vitest/issues/3189)
[<samp>(7b2c8)</samp>](https://togithub.com/vitest-dev/vitest/commit/7b2c81bc)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.30.1...v0.31.0)

</details>

---

### 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 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://app.renovatebot.com/dashboard#github/David-Duefrene/dataviewer).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS42OS4zIiwidXBkYXRlZEluVmVyIjoiMzUuMTEwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this issue in creatorsgarten/contentsgarten Jun 6, 2023
[![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) | [`^0.31.0` ->
`^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.32.0) |
[![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0)

#####    🚨 Breaking Changes

- Throw an error, if the module cannot be resolved  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307)
[<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c)
- Improve globs  -  by
[@&#8203;nickmccurdy](https://togithub.com/nickmccurdy) in
[https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392)
[<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7)
- Add `@vitest/coverage-v8` package  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339)
[<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1)
- **mocker**: Don't restore mock to the original if the module is
automocked  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518)
[<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14)

#####    🚀 Features

- Support ssr optimizer  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490)
[<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0)
- Image type add apng  -  by [@&#8203;btea](https://togithub.com/btea)
in
[https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498)
[<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151)
- **expect**: Support `expect.soft`  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507)
[<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada)
- **runner**: Support using function/class as `describe`/`test` name  - 
by [@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497)
[<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890)

#####    🐞 Bug Fixes

- The cli option is passed to coverage.exclude  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506)
[<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe)
- **optimizer**: Always respect optimizeDeps even if include/exclude is
overridden  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488)
[<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0)
- **runner**: Ensure Vitest is deduped  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489)
[<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab)
- **ui**: Don't cache coverage assets  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508)
[<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6)
- **vite-node**: Circular import stuck  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480)
[<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d)
- **watch**: Junit reporter fails to re-generate report  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496)
[<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4)

#####    🚀 Features

- Enable experimentalOptimizer  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413)
[<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2)

#####    🐞 Bug Fixes

- **vite-node**: Deps.inline doesn't work  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485)
[<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3)

#####    🚀 Features

- Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471)
[<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c)

#####    🐞 Bug Fixes

- **logger**: Print unhandled errors before summary  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474)
[<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58)
- **runner**: Suite options do not propagate to nested suites (fix:
[#&#8203;3467](https://togithub.com/vitest-dev/vitest/issues/3467))  - 
by [@&#8203;xsjcTony](https://togithub.com/xsjcTony) in
[https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473)
and
[https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467)
[<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb)
- **vite-node**: Clear importers when invalidating module  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475)
[<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)

#####    🚀 Features

- Throw error if using inline snapshot inside of `test.each` or
`describe.each`  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360)
[<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088)
- Pass down meta information to Node.js process  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) and
[@&#8203;dammy001](https://togithub.com/dammy001) in
[https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449)
[<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8)
- **coverage**: Add `reportOnFailure` option  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453)
[<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4)
- **dev**: Add moduleDirectories option to the vitest config  -  by
[@&#8203;fooddilsn](https://togithub.com/fooddilsn) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337)
[<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc)

#####    🐞 Bug Fixes

- Don't print empty diff  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437)
[<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f)
- Don't restore methods in automocked dependencies  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438)
[<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262)
- Dot reporter scrollback buffer spam  -  by
[@&#8203;gtm-nayan](https://togithub.com/gtm-nayan) in
[https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415)
[<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94)
- Gracefully exit when first `SIGINT` is received  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407)
[<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38)
- `rejects` & `resolves` breaks with thenable objects  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456)
[<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5)
- Prevent `birpc` timeouts when `Math.random` mock is not restored  - 
by [@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460)
[<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7)
- Assertion diff message now handle non writable property correctly  - 
by [@&#8203;PCreations](https://togithub.com/PCreations) in
[https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422)
[<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650)
- Extend logging of process timeout errors  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452)
[<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904)
- Support requiring files with `less` extension  -  by
[@&#8203;rluvaton](https://togithub.com/rluvaton) in
[https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465)
[<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695)
-   **cli**:
- Improve colors used when erroring  -  by
[@&#8203;ghiscoding](https://togithub.com/ghiscoding) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349)
[<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791)
-   **runner**:
- Suite timeout does not take effect  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455)
[<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376)
-   **spy**:
- Don't print received calls if there are no calls  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405)
[<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad)
-   **typecheck**:
- Show tsc errors not related to test files  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441)
[<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714)
-   **types**:
- Fix `PartialMock` with async TReturns  -  by
[@&#8203;ghry5](https://togithub.com/ghry5) in
[https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462)
[<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c)
-   **vite-node**:
- Circular import stuck  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418)
[<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40)
- Coerce to string in import(dep)  -  by
[@&#8203;jcbhmr](https://togithub.com/jcbhmr) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430)
[<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9)
- Don't remove sourcemap string in source code  -  by
[@&#8203;rxliuli](https://togithub.com/rxliuli) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918)
and
[https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379)
[<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7)
- Don't externalize "dist" by default  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446)
[<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)

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

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1)

#####    🚀 Features

- **watch**: Press `r` should rerun current pattern tests  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) and
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305)
[<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117)

#####    🐞 Bug Fixes

- Make sure thrown error is an object  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298)
[<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c)
- Remove duplicate type  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303)
[<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6)
- Throw an error, if tests are collected with a different vitest version
 -  by [@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301)
[<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe)
- Support application/x-gzip metadata in html report  -  by
[@&#8203;mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in
[https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333)
[<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e)
- Correctly restore vi.fn implementation  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341)
[<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f)
- Display error message correctly  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314)
[<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e)
- Exclude `cwd` from test name filter  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353)
[<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54)
- Check error type before modifying it  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385)
[<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912)
- `toMatchInlineSnapshot` fails when file path includes parentheses  - 
by [@&#8203;pacexy](https://togithub.com/pacexy) in
[https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370)
and
[https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371)
[<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a)
- Stop spying on a method, when it's restored  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386)
[<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a)
- Test repeats  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369)
[<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab)
-   **browser**:
- Throw an error if test failed to load  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390)
[<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c)
- Keep default export when rewriting exports  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389)
[<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3)
-   **cli**:
- Improve cac errors when mixing boolean and dot notation  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302)
[<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d)
-   **reporter**:
- Prevent deleting test reports stored in coverage directory  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331)
[<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396)
-   **typecheck**:
- Correctly resolve custom tsconfig path  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342)
[<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079)
-   **vite-node**:
- Allow returning id not wrapped in promise  -  by
[@&#8203;danielroe](https://togithub.com/danielroe) in
[https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312)
[<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1)

</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://app.renovatebot.com/dashboard#github/creatorsgarten/contentsgarten).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants