pnpm/pnpm
### [`v6.32.22`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.22)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.21...v6.32.22)
##### Patch Changes
- Don't fail when the cafile setting is specified [#4877](https://togithub.com/pnpm/pnpm/issues/4877). This fixes a regression introduced in pnpm v6.32.21.
- Add better hints to the peer dependency issue errors.
### [`v6.32.21`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.21)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.20...v6.32.21)
##### Patch Changes
- Report only the first occurence of a deprecated package.
### [`v6.32.20`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.20)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.19...v6.32.20)
##### Patch Changes
- Suggest to update using Corepack when pnpm was installed via Corepack.
- It should be possible to install a git-hosted package that has no `package.json` file [#4822](https://togithub.com/pnpm/pnpm/issues/4822).
- When the same package is found several times in the dependency graph, correctly autoinstall its missing peer dependencies at all times [#4820](https://togithub.com/pnpm/pnpm/issues/4820).
### [`v6.32.19`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.19)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.18...v6.32.19)
#### Patch Changes
- Improve the performance of the build sequence calculation step [#4815](https://togithub.com/pnpm/pnpm/pull/4815).
- Correctly detect repeated dependency sequence during resolution [#4813](https://togithub.com/pnpm/pnpm/pull/4813).
### [`v6.32.18`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.18)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.17...v6.32.18)
##### Patch Changes
- Don't fail on projects with linked dependencies, when `auto-install-peers` is set to `true` [#4796](https://togithub.com/pnpm/pnpm/issues/4796).
- `NODE_ENV=production pnpm install --dev` should only install dev deps [#4745](https://togithub.com/pnpm/pnpm/pull/4745).
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.17...v6.32.18
### [`v6.32.17`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.17)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.16...v6.32.17)
##### Patch Changes
- Correctly detect the active Node.js version, when the pnpm CLI is bundled to an executable [#4203](https://togithub.com/pnpm/pnpm/issues/4203).
### [`v6.32.16`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.16)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.15...v6.32.16)
#### Patch Changes
- When `auto-install-peers` is set to `true`, automatically install missing peer dependencies without writing them to `package.json` as dependencies. This makes pnpm handle peer dependencies the same way as npm v7 [#4776](https://togithub.com/pnpm/pnpm/pull/4776).
### [`v6.32.15`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.15)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.14...v6.32.15)
##### Patch Changes
- Don't fail to create the command shim files if the target directory doesn't exist.
- `pnpm setup` should not fail on Windows if `PNPM_HOME` is not yet in the system registry [#4757](https://togithub.com/pnpm/pnpm/issues/4757)
- `pnpm dlx` shouldn't modify the lockfile in the current working directory [#4743](https://togithub.com/pnpm/pnpm/issues/4743).
### [`v6.32.14`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.14)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.13...v6.32.14)
##### Patch Changes
- Sanitize the directory names created inside `node_modules/.pnpm` and inside the global store [#4716](https://togithub.com/pnpm/pnpm/issues/4716)
- Resolve commits from GitHub via https [#4734](https://togithub.com/pnpm/pnpm/pull/4734).
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.13...v6.32.14
### [`v6.32.13`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.13)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.12...v6.32.13)
##### Patch Changes
- `pnpm setup` should update the config of the current shell, not the preferred shell.
- `pnpm dlx` should work with git-hosted packages. For example: `pnpm dlx gengjiawen/envinfo` [#4714](https://togithub.com/pnpm/pnpm/issues/4714).
- `pnpm setup` should not override the PNPM_HOME env variable on Windows, unless `--force` is used.
- All arguments after `pnpm create ` should be passed to the executed create app package. So `pnpm create next-app --typescript` should work\`.
- `pnpm run --stream` should prefix the output with directory [#4702](https://togithub.com/pnpm/pnpm/issues/4702)
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.12...v6.32.13
### [`v6.32.12`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.12)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.11...v6.32.12)
##### Patch Changes
- Use Yarn's compatibility database to patch broken packages in the ecosystem with package extensions.
- `pnpm dlx` should work when the bin name of the executed package isn't the same as the package name [#4672](https://togithub.com/pnpm/pnpm/issues/4672).
- `pnpm prune` works in a workspace [#4647](https://togithub.com/pnpm/pnpm/pull/4691).
- `pnpm prune` does not remove hoisted dependencies.
- `pnpm dlx` should print messages about installation to stderr [#1698](https://togithub.com/pnpm/pnpm/issues/1698).
### [`v6.32.11`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.11)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.10...v6.32.11)
##### Patch Changes
- `pnpm publish` should work correctly in a workspace, when the latest npm CLI is installed [#4348](https://togithub.com/pnpm/pnpm/issues/4348).
- Installation shouldn't fail when a package from node_modules is moved to the `node_modules/.ignored` subfolder and a package with that name is already present in \`node_modules/.ignored' [#4626](https://togithub.com/pnpm/pnpm/pull/4626).
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.10...v6.32.11
### [`v6.32.10`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.10)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.9...v6.32.10)
##### Patch Changes
- It should be possible to use a chain of local file dependencies [#4611](https://togithub.com/pnpm/pnpm/issues/4611).
- Filtering by directory should work with directories that have unicode chars in the name [#4595](https://togithub.com/pnpm/pnpm/pull/4595).
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.9...v6.32.10
### [`v6.32.9`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.9)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.8...v6.32.9)
##### Patch Changes
- Fix an error with peer resolutions, which was happening when there was a circular dependency and another dependency that had the name of the circular dependency as a substring.
- When `pnpm exec` is running a command in a workspace project, the commands that are in the dependencies of that workspace project should be in the PATH [#4481](https://togithub.com/pnpm/pnpm/issues/4481).
- Hide "WARN deprecated" messages on loglevel error [#4507](https://togithub.com/pnpm/pnpm/pull/4507)
Don't show the progress bar when loglevel is set to warn or error.
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.8...v6.32.9
### [`v6.32.8`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.8)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.7...v6.32.8)
##### Patch Changes
- Don't check the integrity of the store with the package version from the lockfile, when the package was updated [#4580](https://togithub.com/pnpm/pnpm/pull/4580).
- Don't update a direct dependency that has the same name as a dependency in the workspace, when adding a new dependency to a workspace project [#4575](https://togithub.com/pnpm/pnpm/pull/4575).
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.7...v6.32.8
### [`v6.32.7`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.7)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.6...v6.32.7)
##### Patch Changes
- Setting the `auto-install-peers` to `true` should work.
**Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.6...v6.32.7
vitest-dev/vitest
### [`v0.15.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.15.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.15.0...v0.15.1)
##### 🐞 Bug Fixes
- Reliably process css with `css` option [`22fed1b8`](https://togithub.com/vitest-dev/vitest/commit/22fed1b8)
##### ❤️ Contributors
Thanks to [@sheremet-va](https://togithub.com/sheremet-va) | [@stormwarning](https://togithub.com/stormwarning)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.15.0...v0.15.1)
### [`v0.15.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.15.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.14.2...v0.15.0)
##### 🚀 Features
- Bind expect state to context [`#1468`](https://togithub.com/vitest-dev/vitest/issues/1468)
- Introduce `VITEST_POOL_ID` [`#1473`](https://togithub.com/vitest-dev/vitest/issues/1473)
- Add `maxConcurrency` option, `5` by default [`#1483`](https://togithub.com/vitest-dev/vitest/issues/1483)
- Add --shard command [`#1477`](https://togithub.com/vitest-dev/vitest/issues/1477)
- Add `css` config option, don't process CSS by default [`#1467`](https://togithub.com/vitest-dev/vitest/issues/1467)
##### 🐞 Bug Fixes
- Null inside test.each is not turned into an empty array [`#1462`](https://togithub.com/vitest-dev/vitest/issues/1462)
- Add [@types/node](https://togithub.com/types/node) to dependencies [`#1474`](https://togithub.com/vitest-dev/vitest/issues/1474)
- Parent is defined on global, closes [`#1489`](https://togithub.com/vitest-dev/vitest/issues/1489)
- **web-worker**:
- Ensure event listener functions are bound correctly [`#1487`](https://togithub.com/vitest-dev/vitest/issues/1487)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.14.2...v0.15.0)
### [`v0.14.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.14.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.14.1...v0.14.2)
##### Bug Fixes
- can mock files with space in path ([#1457](https://togithub.com/vitest-dev/vitest/issues/1457)) ([235b950](https://togithub.com/vitest-dev/vitest/commit/235b950))
- skip writing snap file, if content didn't change ([#1456](https://togithub.com/vitest-dev/vitest/issues/1456)) ([97106f6](https://togithub.com/vitest-dev/vitest/commit/97106f6))
- **ui:** update vue dependency conflict ([#1460](https://togithub.com/vitest-dev/vitest/issues/1460)) ([9a87a3c](https://togithub.com/vitest-dev/vitest/commit/9a87a3c))
- allow accessing Audio, Option and private jsdom props on global ([#1443](https://togithub.com/vitest-dev/vitest/issues/1443)) ([95ded47](https://togithub.com/vitest-dev/vitest/commit/95ded47))
- build failing with Vite 3 ([#1451](https://togithub.com/vitest-dev/vitest/issues/1451)) ([60eaee0](https://togithub.com/vitest-dev/vitest/commit/60eaee0))
- don't fail when there is no source file defined in source map ([#1453](https://togithub.com/vitest-dev/vitest/issues/1453)) ([03c7cf6](https://togithub.com/vitest-dev/vitest/commit/03c7cf6))
- resolve circular ref when cloning object ([#1444](https://togithub.com/vitest-dev/vitest/issues/1444)) ([8452a7d](https://togithub.com/vitest-dev/vitest/commit/8452a7d))
##### Features
- improve deep equality check failing message for toBe ([#1383](https://togithub.com/vitest-dev/vitest/issues/1383)) ([842e048](https://togithub.com/vitest-dev/vitest/commit/842e048))
- new `--ouputDiffLines` cli flag ([#1446](https://togithub.com/vitest-dev/vitest/issues/1446)) ([0b8a5bc](https://togithub.com/vitest-dev/vitest/commit/0b8a5bc))
### [`v0.14.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.14.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.14.0...v0.14.1)
##### Bug Fixes
- correct export extension ([#1439](https://togithub.com/vitest-dev/vitest/issues/1439)) ([9d6c6f2](https://togithub.com/vitest-dev/vitest/commit/9d6c6f2))
### [`v0.14.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.14.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.13.1...v0.14.0)
##### Breaking Changes
- **vite-node:** use `.mjs` for esm build ([692ad34](https://togithub.com/vitest-dev/vitest/commit/692ad34))
- remove `"type": "module"` from vitest/package.json ([#1411](https://togithub.com/vitest-dev/vitest/issues/1411)) ([b4a9b0b](https://togithub.com/vitest-dev/vitest/commit/b4a9b0b)), closes [#325](https://togithub.com/vitest-dev/vitest/issues/325)
- **vite-node:** respect ssr field, allow inlining everything ([#1434](https://togithub.com/vitest-dev/vitest/issues/1434)) ([fd57b0e](https://togithub.com/vitest-dev/vitest/commit/fd57b0e))
- improve watcher performance, add forceRerunTriggers option, `watchIgnore` is renamed to `watchExclude` and now accepts only glob patterns ([#1424](https://togithub.com/vitest-dev/vitest/issues/1424)) ([3f5ff5b](https://togithub.com/vitest-dev/vitest/commit/3f5ff5b))
##### Bug Fixes
- repair TestFunction return type. ([#1408](https://togithub.com/vitest-dev/vitest/issues/1408)) ([f169f5a](https://togithub.com/vitest-dev/vitest/commit/f169f5a))
- don't escape quotes for objects in difference view ([#1435](https://togithub.com/vitest-dev/vitest/issues/1435)) ([1560417](https://togithub.com/vitest-dev/vitest/commit/1560417))
- **types:** add callable type to vi.spyOn ([#1432](https://togithub.com/vitest-dev/vitest/issues/1432)) ([17dfd39](https://togithub.com/vitest-dev/vitest/commit/17dfd39))
- **types:** add explicit extension for ESM compatibility ([#1417](https://togithub.com/vitest-dev/vitest/issues/1417)) ([4b54aed](https://togithub.com/vitest-dev/vitest/commit/4b54aed))
- **vite-node:** Prevent crash when passing single module as options ([#1406](https://togithub.com/vitest-dev/vitest/issues/1406)) ([ab8f004](https://togithub.com/vitest-dev/vitest/commit/ab8f004))
### [`v0.13.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.13.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.13.0...v0.13.1)
##### Bug Fixes
- don't escape $ in snapshots, when not needed ([#1401](https://togithub.com/vitest-dev/vitest/issues/1401)) ([c5b7a72](https://togithub.com/vitest-dev/vitest/commit/c5b7a72))
- don't generate coverage folder when coverage is not enabled ([#1403](https://togithub.com/vitest-dev/vitest/issues/1403)) ([6c424de](https://togithub.com/vitest-dev/vitest/commit/6c424de))
- update esbuild to fix UI crash ([#1404](https://togithub.com/vitest-dev/vitest/issues/1404)) ([b122691](https://togithub.com/vitest-dev/vitest/commit/b122691))
##### Features
- disable Vite hmr in tests ([#1400](https://togithub.com/vitest-dev/vitest/issues/1400)) ([b7bfc09](https://togithub.com/vitest-dev/vitest/commit/b7bfc09))
### [`v0.13.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.13.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.10...v0.13.0)
##### Features
- **vite-node:** options via CLI (fixes [#1208](https://togithub.com/vitest-dev/vitest/issues/1208)) ([#1215](https://togithub.com/vitest-dev/vitest/issues/1215)) ([5deb246](https://togithub.com/vitest-dev/vitest/commit/5deb246))
### [`v0.12.10`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.10)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.9...v0.12.10)
##### Bug Fixes
- birpc using safe timers ([#1379](https://togithub.com/vitest-dev/vitest/issues/1379)) ([89353ae](https://togithub.com/vitest-dev/vitest/commit/89353ae))
- improve test name escaping in TAP reporters ([#1367](https://togithub.com/vitest-dev/vitest/issues/1367)) ([f8db7d7](https://togithub.com/vitest-dev/vitest/commit/f8db7d7))
##### Features
- add dynamicImportSettled utility function ([#1359](https://togithub.com/vitest-dev/vitest/issues/1359)) ([1793937](https://togithub.com/vitest-dev/vitest/commit/1793937))
- Export snapshot state to `expect.extend`. ([#1378](https://togithub.com/vitest-dev/vitest/issues/1378)) ([4ec0a76](https://togithub.com/vitest-dev/vitest/commit/4ec0a76))
### [`v0.12.9`](https://togithub.com/vitest-dev/vitest/compare/v0.12.8...v0.12.9)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.8...v0.12.9)
### [`v0.12.8`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.8)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.7...v0.12.8)
##### Bug Fixes
- don't bind global classes ([#1345](https://togithub.com/vitest-dev/vitest/issues/1345)) ([195cc58](https://togithub.com/vitest-dev/vitest/commit/195cc58))
- replace root when resolving dependency ([#1310](https://togithub.com/vitest-dev/vitest/issues/1310)) ([b802d5e](https://togithub.com/vitest-dev/vitest/commit/b802d5e))
### [`v0.12.7`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.7)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.6...v0.12.7)
##### Bug Fixes
- don't crach on DOMError ([#1341](https://togithub.com/vitest-dev/vitest/issues/1341)) ([527bb37](https://togithub.com/vitest-dev/vitest/commit/527bb37))
- simplify globals access, fix global != global ([#1340](https://togithub.com/vitest-dev/vitest/issues/1340)) ([d32a758](https://togithub.com/vitest-dev/vitest/commit/d32a758))
- **test:ci:** reporters utils test is failing ([#1308](https://togithub.com/vitest-dev/vitest/issues/1308)) ([775a26d](https://togithub.com/vitest-dev/vitest/commit/775a26d))
- **vite-node:** fix cb func argument for change event ([#1319](https://togithub.com/vitest-dev/vitest/issues/1319)) ([b228edb](https://togithub.com/vitest-dev/vitest/commit/b228edb))
- **ws-client:** should use costom WebSocketConstructor ([#1313](https://togithub.com/vitest-dev/vitest/issues/1313)) ([03a54e0](https://togithub.com/vitest-dev/vitest/commit/03a54e0))
##### Features
- add function/promise forms of defineConfig() ([#1324](https://togithub.com/vitest-dev/vitest/issues/1324)) ([5af545d](https://togithub.com/vitest-dev/vitest/commit/5af545d))
- support npm setup files ([#1312](https://togithub.com/vitest-dev/vitest/issues/1312)) ([7b56822](https://togithub.com/vitest-dev/vitest/commit/7b56822))
### [`v0.12.6`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.6)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.5...v0.12.6)
##### Bug Fixes
- `.resolves` and `.rejects` expectations ([#1300](https://togithub.com/vitest-dev/vitest/issues/1300)) ([789cc93](https://togithub.com/vitest-dev/vitest/commit/789cc93))
- `process.stdout` could be undefined on Windows (fix [#1292](https://togithub.com/vitest-dev/vitest/issues/1292)) ([#1305](https://togithub.com/vitest-dev/vitest/issues/1305)) ([3179ac9](https://togithub.com/vitest-dev/vitest/commit/3179ac9))
- can mock non-existent paths and virtual modules via **mocks** ([#1298](https://togithub.com/vitest-dev/vitest/issues/1298)) ([c491fb4](https://togithub.com/vitest-dev/vitest/commit/c491fb4))
### [`v0.12.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.5)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.4...v0.12.5)
##### Bug Fixes
- skip props from prototype when cloning ([#1287](https://togithub.com/vitest-dev/vitest/issues/1287)) ([574d072](https://togithub.com/vitest-dev/vitest/commit/574d072))
##### Features
- **vite-node:** include `debug` ([ed3374f](https://togithub.com/vitest-dev/vitest/commit/ed3374f))
### [`v0.12.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.4)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.3...v0.12.4)
##### Bug Fixes
- **snapshot:** only add indent when the line is not empty ([6a5dfe8](https://togithub.com/vitest-dev/vitest/commit/6a5dfe8))
##### Features
- `onConsoleLog` options to filter logs ([35c1b52](https://togithub.com/vitest-dev/vitest/commit/35c1b52))
- press `f` to rerun only failed tests ([#1283](https://togithub.com/vitest-dev/vitest/issues/1283)) ([3c6f991](https://togithub.com/vitest-dev/vitest/commit/3c6f991))
### [`v0.12.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.3)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.2...v0.12.3)
##### Bug Fixes
- try disable atomics for workers ([154db71](https://togithub.com/vitest-dev/vitest/commit/154db71))
### [`v0.12.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.1...v0.12.2)
##### Bug Fixes
- make exports prop of proxy point to exports object ([#1260](https://togithub.com/vitest-dev/vitest/issues/1260)) ([cd4bed5](https://togithub.com/vitest-dev/vitest/commit/cd4bed5))
##### Features
- support custom env in config ([4701e0b](https://togithub.com/vitest-dev/vitest/commit/4701e0b))
### [`v0.12.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.0...v0.12.1)
##### Bug Fixes
- fix `require` reference ([5da8b00](https://togithub.com/vitest-dev/vitest/commit/5da8b00))
- **console:** ignore empty stdout/stderr ([d3fb532](https://togithub.com/vitest-dev/vitest/commit/d3fb532))
- clear mock from callstack, if mocked with factory ([#1276](https://togithub.com/vitest-dev/vitest/issues/1276)) ([7459ff8](https://togithub.com/vitest-dev/vitest/commit/7459ff8))
- don't show \__vite_ssr prefix on imported variables ([#1272](https://togithub.com/vitest-dev/vitest/issues/1272)) ([a2f17b0](https://togithub.com/vitest-dev/vitest/commit/a2f17b0))
##### Features
- allow passing config to sinon/fake-timers ([#1261](https://togithub.com/vitest-dev/vitest/issues/1261)) ([d4e8060](https://togithub.com/vitest-dev/vitest/commit/d4e8060))
### [`v0.12.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.11.0...v0.12.0)
##### Bug Fixes
- calling global functions in happy-dom, refactor sharing global state ([#1262](https://togithub.com/vitest-dev/vitest/issues/1262)) ([555aba6](https://togithub.com/vitest-dev/vitest/commit/555aba6))
##### Features
- allow passing passWithNoTests, allowOnly inside config ([#1264](https://togithub.com/vitest-dev/vitest/issues/1264)) ([dd3c5a1](https://togithub.com/vitest-dev/vitest/commit/dd3c5a1))
- initialize environment only once for no-threads ([#1263](https://togithub.com/vitest-dev/vitest/issues/1263)) ([2d3f8d5](https://togithub.com/vitest-dev/vitest/commit/2d3f8d5))
### [`v0.11.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.11.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.5...v0.11.0)
##### Bug Fixes
- add animation frame methods to global ([#1258](https://togithub.com/vitest-dev/vitest/issues/1258)) ([34e177f](https://togithub.com/vitest-dev/vitest/commit/34e177f)), closes [#1243](https://togithub.com/vitest-dev/vitest/issues/1243)
- add missing c8 option `src` ([#1254](https://togithub.com/vitest-dev/vitest/issues/1254)) ([b7973fe](https://togithub.com/vitest-dev/vitest/commit/b7973fe))
- close node.js server correctly in the puppeteer example ([#1257](https://togithub.com/vitest-dev/vitest/issues/1257)) ([98e57e2](https://togithub.com/vitest-dev/vitest/commit/98e57e2))
- resolve id before loading from vite ([#1204](https://togithub.com/vitest-dev/vitest/issues/1204)) ([110788a](https://togithub.com/vitest-dev/vitest/commit/110788a))
##### Features
- self/window/global share state with globalThis ([#1256](https://togithub.com/vitest-dev/vitest/issues/1256)) ([fbd7974](https://togithub.com/vitest-dev/vitest/commit/fbd7974))
- **vite-node:** replace minimist with cac ([#1249](https://togithub.com/vitest-dev/vitest/issues/1249)) ([d9ad044](https://togithub.com/vitest-dev/vitest/commit/d9ad044))
### [`v0.10.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.5)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.4...v0.10.5)
##### Bug Fixes
- correctly order arguments in Jest diff util ([#1245](https://togithub.com/vitest-dev/vitest/issues/1245)) ([70bc30b](https://togithub.com/vitest-dev/vitest/commit/70bc30b))
##### Features
- remove shebang when executing the code via vite-node ([#1224](https://togithub.com/vitest-dev/vitest/issues/1224)) ([5dcfea7](https://togithub.com/vitest-dev/vitest/commit/5dcfea7))
### [`v0.10.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.4)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.3...v0.10.4)
##### Bug Fixes
- happy-dom v3 crashes ([#1234](https://togithub.com/vitest-dev/vitest/issues/1234)) ([ae2c561](https://togithub.com/vitest-dev/vitest/commit/ae2c561))
### [`v0.10.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.3)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.2...v0.10.3)
##### Bug Fixes
- default to faled tests and unchecked snapshots when updating snapshots ([#1238](https://togithub.com/vitest-dev/vitest/issues/1238)) ([3d8e846](https://togithub.com/vitest-dev/vitest/commit/3d8e846))
- show custom error message if snapshot failed ([#1237](https://togithub.com/vitest-dev/vitest/issues/1237)) ([a955655](https://togithub.com/vitest-dev/vitest/commit/a955655))
- use console.\_stdout, if available ([#1235](https://togithub.com/vitest-dev/vitest/issues/1235)) ([d15d47f](https://togithub.com/vitest-dev/vitest/commit/d15d47f))
- **inline-snapshots:** detect linebreaks ([#1232](https://togithub.com/vitest-dev/vitest/issues/1232)) ([4de5da7](https://togithub.com/vitest-dev/vitest/commit/4de5da7))
### [`v0.10.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.1...v0.10.2)
##### Features
- add config option logHeapUsage ([#1225](https://togithub.com/vitest-dev/vitest/issues/1225)) ([9c42c4f](https://togithub.com/vitest-dev/vitest/commit/9c42c4f))
### [`v0.10.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.0...v0.10.1)
##### Bug Fixes
- clear errors before running files ([#1205](https://togithub.com/vitest-dev/vitest/issues/1205)) ([ac9645c](https://togithub.com/vitest-dev/vitest/commit/ac9645c))
- diff output is incorrectly when using expect.any ([#1197](https://togithub.com/vitest-dev/vitest/issues/1197)) ([d09de8f](https://togithub.com/vitest-dev/vitest/commit/d09de8f))
- self exported module call stack error ([#1221](https://togithub.com/vitest-dev/vitest/issues/1221)) ([4956713](https://togithub.com/vitest-dev/vitest/commit/4956713))
- todo assertion status in json output ([#1223](https://togithub.com/vitest-dev/vitest/issues/1223)) ([a944a91](https://togithub.com/vitest-dev/vitest/commit/a944a91))
- typo in feature request template ([#1222](https://togithub.com/vitest-dev/vitest/issues/1222)) ([adb49fd](https://togithub.com/vitest-dev/vitest/commit/adb49fd))
- **types:** autocomplete built-in reporters ([#1189](https://togithub.com/vitest-dev/vitest/issues/1189)) ([750c80b](https://togithub.com/vitest-dev/vitest/commit/750c80b))
##### Features
- `test.skipIf` and `test.runIf` apis ([76c3894](https://togithub.com/vitest-dev/vitest/commit/76c3894))
- error log improvements ([#1202](https://togithub.com/vitest-dev/vitest/issues/1202)) ([306b545](https://togithub.com/vitest-dev/vitest/commit/306b545))
### [`v0.10.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.9.4...v0.10.0)
#### Breaking Changes
From Vitest v0.10.0, the callback style of declaring tests is deprecated. You can rewrite them to use `async`/`await` functions, or use Promise to mimic the callback style.
```diff
- it('should work', (done) => {
+ it('should work', () => new Promise(done => {
// ...
done()
- })
+ }))
```
#### Features
##### `beforeAll` / `beforeEach` cleanup callback
`beforeAll` / `beforeEach` now accepts an optional cleanup function as the return value (equivalent to `afterAll` / `afterEach`).
```ts
import { beforeAll } from 'vitest'
beforeEach(async () => {
// called once before each test run
await startMocking()
// clean up function, called once after each test run
return async () => {
await stopMocking()
}
})
```
Learn more at:
- [`beforeAll`](https://vitest.dev/api/#beforeall)
- [`beforeEach`](https://vitest.dev/api/#beforeeach)
##### Test Context
Inspired by [Playwright Fixtures](https://playwright.dev/docs/test-fixtures), Vitest's test context allows you to define utils, states, and fixtures that can be used in your tests.
```ts
import { beforeEach, it } from 'vitest'
beforeEach((context) => {
// extend context
context.foo = 'bar'
})
it('should work', ({ foo }) => {
console.log(foo) // 'bar'
})
```
Learn more at [Test Context](https://vitest.dev/guide/test-context)
##### Concurrent Snapshot
Due to the limitation of JavaScript, timing based Singleton pattern will cause conflicts when running multiple async functions in concurrent. Previously reported as [#551](https://togithub.com/vitest-dev/vitest/issues/551). Thanks to the newly introduced [Test Context](#test-context), we can now provide a test specific `expect` instance to avoid conflicts. To use it, you can destructure the `expect` from each test context instead of the global one.
```ts
test.concurrent('test 1', async ({ expect }) => {
expect(foo).toMatchSnapshot()
})
test.concurrent('test 2', async ({ expect }) => {
expect(foo).toMatchSnapshot()
})
```
##### Reporter from file / package
Now you can pass a path to file, or a package name to the `reporters` options to use custom reporter. Thanks to [@ericjgagnon](https://togithub.com/ericjgagnon) ([#1136](https://togithub.com/vitest-dev/vitest/issues/1136)) ([f2bceb2](https://togithub.com/vitest-dev/vitest/commit/f2bceb2))
#### Bug Fixes
- types for EachFunction are missing awaitable return (fix: [#1181](https://togithub.com/vitest-dev/vitest/issues/1181)) ([#1182](https://togithub.com/vitest-dev/vitest/issues/1182)) ([95b1ba4](https://togithub.com/vitest-dev/vitest/commit/95b1ba4))
### [`v0.9.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.9.4)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.9.3...v0.9.4)
##### Bug Fixes
- **deps:** update all non-major dependencies ([#1159](https://togithub.com/vitest-dev/vitest/issues/1159)) ([4d1e0a0](https://togithub.com/vitest-dev/vitest/commit/4d1e0a0))
- config.root priority ([#1164](https://togithub.com/vitest-dev/vitest/issues/1164)) ([d8e0493](https://togithub.com/vitest-dev/vitest/commit/d8e0493))
- optimizeDeps.disabled ([#1150](https://togithub.com/vitest-dev/vitest/issues/1150)) ([b40fb60](https://togithub.com/vitest-dev/vitest/commit/b40fb60))
- remove invalid xml characters in junit reporter output (fix [#1144](https://togithub.com/vitest-dev/vitest/issues/1144)) ([#1145](https://togithub.com/vitest-dev/vitest/issues/1145)) ([ab8e2b8](https://togithub.com/vitest-dev/vitest/commit/ab8e2b8))
- remove process.env edge case in defines ([#1156](https://togithub.com/vitest-dev/vitest/issues/1156)) ([0c9137d](https://togithub.com/vitest-dev/vitest/commit/0c9137d))
- reset snapshot state between test reruns ([#1162](https://togithub.com/vitest-dev/vitest/issues/1162)) ([c2e98ef](https://togithub.com/vitest-dev/vitest/commit/c2e98ef))
- temporary revert [@sinonjs](https://togithub.com/sinonjs)/fake-timers ([f685b87](https://togithub.com/vitest-dev/vitest/commit/f685b87))
##### Features
- **ui:** add the draft state \* on code editor ([#1131](https://togithub.com/vitest-dev/vitest/issues/1131)) ([571b94b](https://togithub.com/vitest-dev/vitest/commit/571b94b))
- add satisfy alias ([#1172](https://togithub.com/vitest-dev/vitest/issues/1172)) ([7dbd837](https://togithub.com/vitest-dev/vitest/commit/7dbd837))
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
6.32.6
->6.32.22
^0.9.3
->^0.15.1
Release Notes
pnpm/pnpm
### [`v6.32.22`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.22) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.21...v6.32.22) ##### Patch Changes - Don't fail when the cafile setting is specified [#4877](https://togithub.com/pnpm/pnpm/issues/4877). This fixes a regression introduced in pnpm v6.32.21. - Add better hints to the peer dependency issue errors. ### [`v6.32.21`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.21) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.20...v6.32.21) ##### Patch Changes - Report only the first occurence of a deprecated package. ### [`v6.32.20`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.20) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.19...v6.32.20) ##### Patch Changes - Suggest to update using Corepack when pnpm was installed via Corepack. - It should be possible to install a git-hosted package that has no `package.json` file [#4822](https://togithub.com/pnpm/pnpm/issues/4822). - When the same package is found several times in the dependency graph, correctly autoinstall its missing peer dependencies at all times [#4820](https://togithub.com/pnpm/pnpm/issues/4820). ### [`v6.32.19`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.19) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.18...v6.32.19) #### Patch Changes - Improve the performance of the build sequence calculation step [#4815](https://togithub.com/pnpm/pnpm/pull/4815). - Correctly detect repeated dependency sequence during resolution [#4813](https://togithub.com/pnpm/pnpm/pull/4813). ### [`v6.32.18`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.18) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.17...v6.32.18) ##### Patch Changes - Don't fail on projects with linked dependencies, when `auto-install-peers` is set to `true` [#4796](https://togithub.com/pnpm/pnpm/issues/4796). - `NODE_ENV=production pnpm install --dev` should only install dev deps [#4745](https://togithub.com/pnpm/pnpm/pull/4745). **Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.17...v6.32.18 ### [`v6.32.17`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.17) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.16...v6.32.17) ##### Patch Changes - Correctly detect the active Node.js version, when the pnpm CLI is bundled to an executable [#4203](https://togithub.com/pnpm/pnpm/issues/4203). ### [`v6.32.16`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.16) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.15...v6.32.16) #### Patch Changes - When `auto-install-peers` is set to `true`, automatically install missing peer dependencies without writing them to `package.json` as dependencies. This makes pnpm handle peer dependencies the same way as npm v7 [#4776](https://togithub.com/pnpm/pnpm/pull/4776). ### [`v6.32.15`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.15) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.14...v6.32.15) ##### Patch Changes - Don't fail to create the command shim files if the target directory doesn't exist. - `pnpm setup` should not fail on Windows if `PNPM_HOME` is not yet in the system registry [#4757](https://togithub.com/pnpm/pnpm/issues/4757) - `pnpm dlx` shouldn't modify the lockfile in the current working directory [#4743](https://togithub.com/pnpm/pnpm/issues/4743). ### [`v6.32.14`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.14) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.13...v6.32.14) ##### Patch Changes - Sanitize the directory names created inside `node_modules/.pnpm` and inside the global store [#4716](https://togithub.com/pnpm/pnpm/issues/4716) - Resolve commits from GitHub via https [#4734](https://togithub.com/pnpm/pnpm/pull/4734). **Full Changelog**: https://github.com/pnpm/pnpm/compare/v6.32.13...v6.32.14 ### [`v6.32.13`](https://togithub.com/pnpm/pnpm/releases/tag/v6.32.13) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v6.32.12...v6.32.13) ##### Patch Changes - `pnpm setup` should update the config of the current shell, not the preferred shell. - `pnpm dlx` should work with git-hosted packages. For example: `pnpm dlx gengjiawen/envinfo` [#4714](https://togithub.com/pnpm/pnpm/issues/4714). - `pnpm setup` should not override the PNPM_HOME env variable on Windows, unless `--force` is used. - All arguments after `pnpm createvitest-dev/vitest
### [`v0.15.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.15.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.15.0...v0.15.1) ##### 🐞 Bug Fixes - Reliably process css with `css` option [`22fed1b8`](https://togithub.com/vitest-dev/vitest/commit/22fed1b8) ##### ❤️ Contributors Thanks to [@sheremet-va](https://togithub.com/sheremet-va) | [@stormwarning](https://togithub.com/stormwarning) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.15.0...v0.15.1) ### [`v0.15.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.15.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.14.2...v0.15.0) ##### 🚀 Features - Bind expect state to context [`#1468`](https://togithub.com/vitest-dev/vitest/issues/1468) - Introduce `VITEST_POOL_ID` [`#1473`](https://togithub.com/vitest-dev/vitest/issues/1473) - Add `maxConcurrency` option, `5` by default [`#1483`](https://togithub.com/vitest-dev/vitest/issues/1483) - Add --shard command [`#1477`](https://togithub.com/vitest-dev/vitest/issues/1477) - Add `css` config option, don't process CSS by default [`#1467`](https://togithub.com/vitest-dev/vitest/issues/1467) ##### 🐞 Bug Fixes - Null inside test.each is not turned into an empty array [`#1462`](https://togithub.com/vitest-dev/vitest/issues/1462) - Add [@types/node](https://togithub.com/types/node) to dependencies [`#1474`](https://togithub.com/vitest-dev/vitest/issues/1474) - Parent is defined on global, closes [`#1489`](https://togithub.com/vitest-dev/vitest/issues/1489) - **web-worker**: - Ensure event listener functions are bound correctly [`#1487`](https://togithub.com/vitest-dev/vitest/issues/1487) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.14.2...v0.15.0) ### [`v0.14.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.14.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.14.1...v0.14.2) ##### Bug Fixes - can mock files with space in path ([#1457](https://togithub.com/vitest-dev/vitest/issues/1457)) ([235b950](https://togithub.com/vitest-dev/vitest/commit/235b950)) - skip writing snap file, if content didn't change ([#1456](https://togithub.com/vitest-dev/vitest/issues/1456)) ([97106f6](https://togithub.com/vitest-dev/vitest/commit/97106f6)) - **ui:** update vue dependency conflict ([#1460](https://togithub.com/vitest-dev/vitest/issues/1460)) ([9a87a3c](https://togithub.com/vitest-dev/vitest/commit/9a87a3c)) - allow accessing Audio, Option and private jsdom props on global ([#1443](https://togithub.com/vitest-dev/vitest/issues/1443)) ([95ded47](https://togithub.com/vitest-dev/vitest/commit/95ded47)) - build failing with Vite 3 ([#1451](https://togithub.com/vitest-dev/vitest/issues/1451)) ([60eaee0](https://togithub.com/vitest-dev/vitest/commit/60eaee0)) - don't fail when there is no source file defined in source map ([#1453](https://togithub.com/vitest-dev/vitest/issues/1453)) ([03c7cf6](https://togithub.com/vitest-dev/vitest/commit/03c7cf6)) - resolve circular ref when cloning object ([#1444](https://togithub.com/vitest-dev/vitest/issues/1444)) ([8452a7d](https://togithub.com/vitest-dev/vitest/commit/8452a7d)) ##### Features - improve deep equality check failing message for toBe ([#1383](https://togithub.com/vitest-dev/vitest/issues/1383)) ([842e048](https://togithub.com/vitest-dev/vitest/commit/842e048)) - new `--ouputDiffLines` cli flag ([#1446](https://togithub.com/vitest-dev/vitest/issues/1446)) ([0b8a5bc](https://togithub.com/vitest-dev/vitest/commit/0b8a5bc)) ### [`v0.14.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.14.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.14.0...v0.14.1) ##### Bug Fixes - correct export extension ([#1439](https://togithub.com/vitest-dev/vitest/issues/1439)) ([9d6c6f2](https://togithub.com/vitest-dev/vitest/commit/9d6c6f2)) ### [`v0.14.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.14.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.13.1...v0.14.0) ##### Breaking Changes - **vite-node:** use `.mjs` for esm build ([692ad34](https://togithub.com/vitest-dev/vitest/commit/692ad34)) - remove `"type": "module"` from vitest/package.json ([#1411](https://togithub.com/vitest-dev/vitest/issues/1411)) ([b4a9b0b](https://togithub.com/vitest-dev/vitest/commit/b4a9b0b)), closes [#325](https://togithub.com/vitest-dev/vitest/issues/325) - **vite-node:** respect ssr field, allow inlining everything ([#1434](https://togithub.com/vitest-dev/vitest/issues/1434)) ([fd57b0e](https://togithub.com/vitest-dev/vitest/commit/fd57b0e)) - improve watcher performance, add forceRerunTriggers option, `watchIgnore` is renamed to `watchExclude` and now accepts only glob patterns ([#1424](https://togithub.com/vitest-dev/vitest/issues/1424)) ([3f5ff5b](https://togithub.com/vitest-dev/vitest/commit/3f5ff5b)) ##### Bug Fixes - repair TestFunction return type. ([#1408](https://togithub.com/vitest-dev/vitest/issues/1408)) ([f169f5a](https://togithub.com/vitest-dev/vitest/commit/f169f5a)) - don't escape quotes for objects in difference view ([#1435](https://togithub.com/vitest-dev/vitest/issues/1435)) ([1560417](https://togithub.com/vitest-dev/vitest/commit/1560417)) - **types:** add callable type to vi.spyOn ([#1432](https://togithub.com/vitest-dev/vitest/issues/1432)) ([17dfd39](https://togithub.com/vitest-dev/vitest/commit/17dfd39)) - **types:** add explicit extension for ESM compatibility ([#1417](https://togithub.com/vitest-dev/vitest/issues/1417)) ([4b54aed](https://togithub.com/vitest-dev/vitest/commit/4b54aed)) - **vite-node:** Prevent crash when passing single module as options ([#1406](https://togithub.com/vitest-dev/vitest/issues/1406)) ([ab8f004](https://togithub.com/vitest-dev/vitest/commit/ab8f004)) ### [`v0.13.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.13.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.13.0...v0.13.1) ##### Bug Fixes - don't escape $ in snapshots, when not needed ([#1401](https://togithub.com/vitest-dev/vitest/issues/1401)) ([c5b7a72](https://togithub.com/vitest-dev/vitest/commit/c5b7a72)) - don't generate coverage folder when coverage is not enabled ([#1403](https://togithub.com/vitest-dev/vitest/issues/1403)) ([6c424de](https://togithub.com/vitest-dev/vitest/commit/6c424de)) - update esbuild to fix UI crash ([#1404](https://togithub.com/vitest-dev/vitest/issues/1404)) ([b122691](https://togithub.com/vitest-dev/vitest/commit/b122691)) ##### Features - disable Vite hmr in tests ([#1400](https://togithub.com/vitest-dev/vitest/issues/1400)) ([b7bfc09](https://togithub.com/vitest-dev/vitest/commit/b7bfc09)) ### [`v0.13.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.13.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.10...v0.13.0) ##### Features - **vite-node:** options via CLI (fixes [#1208](https://togithub.com/vitest-dev/vitest/issues/1208)) ([#1215](https://togithub.com/vitest-dev/vitest/issues/1215)) ([5deb246](https://togithub.com/vitest-dev/vitest/commit/5deb246)) ### [`v0.12.10`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.10) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.9...v0.12.10) ##### Bug Fixes - birpc using safe timers ([#1379](https://togithub.com/vitest-dev/vitest/issues/1379)) ([89353ae](https://togithub.com/vitest-dev/vitest/commit/89353ae)) - improve test name escaping in TAP reporters ([#1367](https://togithub.com/vitest-dev/vitest/issues/1367)) ([f8db7d7](https://togithub.com/vitest-dev/vitest/commit/f8db7d7)) ##### Features - add dynamicImportSettled utility function ([#1359](https://togithub.com/vitest-dev/vitest/issues/1359)) ([1793937](https://togithub.com/vitest-dev/vitest/commit/1793937)) - Export snapshot state to `expect.extend`. ([#1378](https://togithub.com/vitest-dev/vitest/issues/1378)) ([4ec0a76](https://togithub.com/vitest-dev/vitest/commit/4ec0a76)) ### [`v0.12.9`](https://togithub.com/vitest-dev/vitest/compare/v0.12.8...v0.12.9) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.8...v0.12.9) ### [`v0.12.8`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.8) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.7...v0.12.8) ##### Bug Fixes - don't bind global classes ([#1345](https://togithub.com/vitest-dev/vitest/issues/1345)) ([195cc58](https://togithub.com/vitest-dev/vitest/commit/195cc58)) - replace root when resolving dependency ([#1310](https://togithub.com/vitest-dev/vitest/issues/1310)) ([b802d5e](https://togithub.com/vitest-dev/vitest/commit/b802d5e)) ### [`v0.12.7`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.7) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.6...v0.12.7) ##### Bug Fixes - don't crach on DOMError ([#1341](https://togithub.com/vitest-dev/vitest/issues/1341)) ([527bb37](https://togithub.com/vitest-dev/vitest/commit/527bb37)) - simplify globals access, fix global != global ([#1340](https://togithub.com/vitest-dev/vitest/issues/1340)) ([d32a758](https://togithub.com/vitest-dev/vitest/commit/d32a758)) - **test:ci:** reporters utils test is failing ([#1308](https://togithub.com/vitest-dev/vitest/issues/1308)) ([775a26d](https://togithub.com/vitest-dev/vitest/commit/775a26d)) - **vite-node:** fix cb func argument for change event ([#1319](https://togithub.com/vitest-dev/vitest/issues/1319)) ([b228edb](https://togithub.com/vitest-dev/vitest/commit/b228edb)) - **ws-client:** should use costom WebSocketConstructor ([#1313](https://togithub.com/vitest-dev/vitest/issues/1313)) ([03a54e0](https://togithub.com/vitest-dev/vitest/commit/03a54e0)) ##### Features - add function/promise forms of defineConfig() ([#1324](https://togithub.com/vitest-dev/vitest/issues/1324)) ([5af545d](https://togithub.com/vitest-dev/vitest/commit/5af545d)) - support npm setup files ([#1312](https://togithub.com/vitest-dev/vitest/issues/1312)) ([7b56822](https://togithub.com/vitest-dev/vitest/commit/7b56822)) ### [`v0.12.6`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.6) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.5...v0.12.6) ##### Bug Fixes - `.resolves` and `.rejects` expectations ([#1300](https://togithub.com/vitest-dev/vitest/issues/1300)) ([789cc93](https://togithub.com/vitest-dev/vitest/commit/789cc93)) - `process.stdout` could be undefined on Windows (fix [#1292](https://togithub.com/vitest-dev/vitest/issues/1292)) ([#1305](https://togithub.com/vitest-dev/vitest/issues/1305)) ([3179ac9](https://togithub.com/vitest-dev/vitest/commit/3179ac9)) - can mock non-existent paths and virtual modules via **mocks** ([#1298](https://togithub.com/vitest-dev/vitest/issues/1298)) ([c491fb4](https://togithub.com/vitest-dev/vitest/commit/c491fb4)) ### [`v0.12.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.5) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.4...v0.12.5) ##### Bug Fixes - skip props from prototype when cloning ([#1287](https://togithub.com/vitest-dev/vitest/issues/1287)) ([574d072](https://togithub.com/vitest-dev/vitest/commit/574d072)) ##### Features - **vite-node:** include `debug` ([ed3374f](https://togithub.com/vitest-dev/vitest/commit/ed3374f)) ### [`v0.12.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.3...v0.12.4) ##### Bug Fixes - **snapshot:** only add indent when the line is not empty ([6a5dfe8](https://togithub.com/vitest-dev/vitest/commit/6a5dfe8)) ##### Features - `onConsoleLog` options to filter logs ([35c1b52](https://togithub.com/vitest-dev/vitest/commit/35c1b52)) - press `f` to rerun only failed tests ([#1283](https://togithub.com/vitest-dev/vitest/issues/1283)) ([3c6f991](https://togithub.com/vitest-dev/vitest/commit/3c6f991)) ### [`v0.12.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.2...v0.12.3) ##### Bug Fixes - try disable atomics for workers ([154db71](https://togithub.com/vitest-dev/vitest/commit/154db71)) ### [`v0.12.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.1...v0.12.2) ##### Bug Fixes - make exports prop of proxy point to exports object ([#1260](https://togithub.com/vitest-dev/vitest/issues/1260)) ([cd4bed5](https://togithub.com/vitest-dev/vitest/commit/cd4bed5)) ##### Features - support custom env in config ([4701e0b](https://togithub.com/vitest-dev/vitest/commit/4701e0b)) ### [`v0.12.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.12.0...v0.12.1) ##### Bug Fixes - fix `require` reference ([5da8b00](https://togithub.com/vitest-dev/vitest/commit/5da8b00)) - **console:** ignore empty stdout/stderr ([d3fb532](https://togithub.com/vitest-dev/vitest/commit/d3fb532)) - clear mock from callstack, if mocked with factory ([#1276](https://togithub.com/vitest-dev/vitest/issues/1276)) ([7459ff8](https://togithub.com/vitest-dev/vitest/commit/7459ff8)) - don't show \__vite_ssr prefix on imported variables ([#1272](https://togithub.com/vitest-dev/vitest/issues/1272)) ([a2f17b0](https://togithub.com/vitest-dev/vitest/commit/a2f17b0)) ##### Features - allow passing config to sinon/fake-timers ([#1261](https://togithub.com/vitest-dev/vitest/issues/1261)) ([d4e8060](https://togithub.com/vitest-dev/vitest/commit/d4e8060)) ### [`v0.12.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.12.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.11.0...v0.12.0) ##### Bug Fixes - calling global functions in happy-dom, refactor sharing global state ([#1262](https://togithub.com/vitest-dev/vitest/issues/1262)) ([555aba6](https://togithub.com/vitest-dev/vitest/commit/555aba6)) ##### Features - allow passing passWithNoTests, allowOnly inside config ([#1264](https://togithub.com/vitest-dev/vitest/issues/1264)) ([dd3c5a1](https://togithub.com/vitest-dev/vitest/commit/dd3c5a1)) - initialize environment only once for no-threads ([#1263](https://togithub.com/vitest-dev/vitest/issues/1263)) ([2d3f8d5](https://togithub.com/vitest-dev/vitest/commit/2d3f8d5)) ### [`v0.11.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.11.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.5...v0.11.0) ##### Bug Fixes - add animation frame methods to global ([#1258](https://togithub.com/vitest-dev/vitest/issues/1258)) ([34e177f](https://togithub.com/vitest-dev/vitest/commit/34e177f)), closes [#1243](https://togithub.com/vitest-dev/vitest/issues/1243) - add missing c8 option `src` ([#1254](https://togithub.com/vitest-dev/vitest/issues/1254)) ([b7973fe](https://togithub.com/vitest-dev/vitest/commit/b7973fe)) - close node.js server correctly in the puppeteer example ([#1257](https://togithub.com/vitest-dev/vitest/issues/1257)) ([98e57e2](https://togithub.com/vitest-dev/vitest/commit/98e57e2)) - resolve id before loading from vite ([#1204](https://togithub.com/vitest-dev/vitest/issues/1204)) ([110788a](https://togithub.com/vitest-dev/vitest/commit/110788a)) ##### Features - self/window/global share state with globalThis ([#1256](https://togithub.com/vitest-dev/vitest/issues/1256)) ([fbd7974](https://togithub.com/vitest-dev/vitest/commit/fbd7974)) - **vite-node:** replace minimist with cac ([#1249](https://togithub.com/vitest-dev/vitest/issues/1249)) ([d9ad044](https://togithub.com/vitest-dev/vitest/commit/d9ad044)) ### [`v0.10.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.5) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.4...v0.10.5) ##### Bug Fixes - correctly order arguments in Jest diff util ([#1245](https://togithub.com/vitest-dev/vitest/issues/1245)) ([70bc30b](https://togithub.com/vitest-dev/vitest/commit/70bc30b)) ##### Features - remove shebang when executing the code via vite-node ([#1224](https://togithub.com/vitest-dev/vitest/issues/1224)) ([5dcfea7](https://togithub.com/vitest-dev/vitest/commit/5dcfea7)) ### [`v0.10.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.3...v0.10.4) ##### Bug Fixes - happy-dom v3 crashes ([#1234](https://togithub.com/vitest-dev/vitest/issues/1234)) ([ae2c561](https://togithub.com/vitest-dev/vitest/commit/ae2c561)) ### [`v0.10.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.2...v0.10.3) ##### Bug Fixes - default to faled tests and unchecked snapshots when updating snapshots ([#1238](https://togithub.com/vitest-dev/vitest/issues/1238)) ([3d8e846](https://togithub.com/vitest-dev/vitest/commit/3d8e846)) - show custom error message if snapshot failed ([#1237](https://togithub.com/vitest-dev/vitest/issues/1237)) ([a955655](https://togithub.com/vitest-dev/vitest/commit/a955655)) - use console.\_stdout, if available ([#1235](https://togithub.com/vitest-dev/vitest/issues/1235)) ([d15d47f](https://togithub.com/vitest-dev/vitest/commit/d15d47f)) - **inline-snapshots:** detect linebreaks ([#1232](https://togithub.com/vitest-dev/vitest/issues/1232)) ([4de5da7](https://togithub.com/vitest-dev/vitest/commit/4de5da7)) ### [`v0.10.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.1...v0.10.2) ##### Features - add config option logHeapUsage ([#1225](https://togithub.com/vitest-dev/vitest/issues/1225)) ([9c42c4f](https://togithub.com/vitest-dev/vitest/commit/9c42c4f)) ### [`v0.10.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.10.0...v0.10.1) ##### Bug Fixes - clear errors before running files ([#1205](https://togithub.com/vitest-dev/vitest/issues/1205)) ([ac9645c](https://togithub.com/vitest-dev/vitest/commit/ac9645c)) - diff output is incorrectly when using expect.any ([#1197](https://togithub.com/vitest-dev/vitest/issues/1197)) ([d09de8f](https://togithub.com/vitest-dev/vitest/commit/d09de8f)) - self exported module call stack error ([#1221](https://togithub.com/vitest-dev/vitest/issues/1221)) ([4956713](https://togithub.com/vitest-dev/vitest/commit/4956713)) - todo assertion status in json output ([#1223](https://togithub.com/vitest-dev/vitest/issues/1223)) ([a944a91](https://togithub.com/vitest-dev/vitest/commit/a944a91)) - typo in feature request template ([#1222](https://togithub.com/vitest-dev/vitest/issues/1222)) ([adb49fd](https://togithub.com/vitest-dev/vitest/commit/adb49fd)) - **types:** autocomplete built-in reporters ([#1189](https://togithub.com/vitest-dev/vitest/issues/1189)) ([750c80b](https://togithub.com/vitest-dev/vitest/commit/750c80b)) ##### Features - `test.skipIf` and `test.runIf` apis ([76c3894](https://togithub.com/vitest-dev/vitest/commit/76c3894)) - error log improvements ([#1202](https://togithub.com/vitest-dev/vitest/issues/1202)) ([306b545](https://togithub.com/vitest-dev/vitest/commit/306b545)) ### [`v0.10.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.10.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.9.4...v0.10.0) #### Breaking Changes From Vitest v0.10.0, the callback style of declaring tests is deprecated. You can rewrite them to use `async`/`await` functions, or use Promise to mimic the callback style. ```diff - it('should work', (done) => { + it('should work', () => new Promise(done => { // ... done() - }) + })) ``` #### Features ##### `beforeAll` / `beforeEach` cleanup callback `beforeAll` / `beforeEach` now accepts an optional cleanup function as the return value (equivalent to `afterAll` / `afterEach`). ```ts import { beforeAll } from 'vitest' beforeEach(async () => { // called once before each test run await startMocking() // clean up function, called once after each test run return async () => { await stopMocking() } }) ``` Learn more at: - [`beforeAll`](https://vitest.dev/api/#beforeall) - [`beforeEach`](https://vitest.dev/api/#beforeeach) ##### Test Context Inspired by [Playwright Fixtures](https://playwright.dev/docs/test-fixtures), Vitest's test context allows you to define utils, states, and fixtures that can be used in your tests. ```ts import { beforeEach, it } from 'vitest' beforeEach((context) => { // extend context context.foo = 'bar' }) it('should work', ({ foo }) => { console.log(foo) // 'bar' }) ``` Learn more at [Test Context](https://vitest.dev/guide/test-context) ##### Concurrent Snapshot Due to the limitation of JavaScript, timing based Singleton pattern will cause conflicts when running multiple async functions in concurrent. Previously reported as [#551](https://togithub.com/vitest-dev/vitest/issues/551). Thanks to the newly introduced [Test Context](#test-context), we can now provide a test specific `expect` instance to avoid conflicts. To use it, you can destructure the `expect` from each test context instead of the global one. ```ts test.concurrent('test 1', async ({ expect }) => { expect(foo).toMatchSnapshot() }) test.concurrent('test 2', async ({ expect }) => { expect(foo).toMatchSnapshot() }) ``` ##### Reporter from file / package Now you can pass a path to file, or a package name to the `reporters` options to use custom reporter. Thanks to [@ericjgagnon](https://togithub.com/ericjgagnon) ([#1136](https://togithub.com/vitest-dev/vitest/issues/1136)) ([f2bceb2](https://togithub.com/vitest-dev/vitest/commit/f2bceb2)) #### Bug Fixes - types for EachFunction are missing awaitable return (fix: [#1181](https://togithub.com/vitest-dev/vitest/issues/1181)) ([#1182](https://togithub.com/vitest-dev/vitest/issues/1182)) ([95b1ba4](https://togithub.com/vitest-dev/vitest/commit/95b1ba4)) ### [`v0.9.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.9.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.9.3...v0.9.4) ##### Bug Fixes - **deps:** update all non-major dependencies ([#1159](https://togithub.com/vitest-dev/vitest/issues/1159)) ([4d1e0a0](https://togithub.com/vitest-dev/vitest/commit/4d1e0a0)) - config.root priority ([#1164](https://togithub.com/vitest-dev/vitest/issues/1164)) ([d8e0493](https://togithub.com/vitest-dev/vitest/commit/d8e0493)) - optimizeDeps.disabled ([#1150](https://togithub.com/vitest-dev/vitest/issues/1150)) ([b40fb60](https://togithub.com/vitest-dev/vitest/commit/b40fb60)) - remove invalid xml characters in junit reporter output (fix [#1144](https://togithub.com/vitest-dev/vitest/issues/1144)) ([#1145](https://togithub.com/vitest-dev/vitest/issues/1145)) ([ab8e2b8](https://togithub.com/vitest-dev/vitest/commit/ab8e2b8)) - remove process.env edge case in defines ([#1156](https://togithub.com/vitest-dev/vitest/issues/1156)) ([0c9137d](https://togithub.com/vitest-dev/vitest/commit/0c9137d)) - reset snapshot state between test reruns ([#1162](https://togithub.com/vitest-dev/vitest/issues/1162)) ([c2e98ef](https://togithub.com/vitest-dev/vitest/commit/c2e98ef)) - temporary revert [@sinonjs](https://togithub.com/sinonjs)/fake-timers ([f685b87](https://togithub.com/vitest-dev/vitest/commit/f685b87)) ##### Features - **ui:** add the draft state \* on code editor ([#1131](https://togithub.com/vitest-dev/vitest/issues/1131)) ([571b94b](https://togithub.com/vitest-dev/vitest/commit/571b94b)) - add satisfy alias ([#1172](https://togithub.com/vitest-dev/vitest/issues/1172)) ([7dbd837](https://togithub.com/vitest-dev/vitest/commit/7dbd837))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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.