Skip to content

Releases: vitest-dev/vitest

v1.0.0-beta.5

18 Nov 09:44
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release

   🚨 Breaking Changes

  • coverage: glob based coverage thresholds by @AriPerkkio in #4442 (18300)
    • Refactors coverage thresholds API into new shape and adds support for specifying thresholds for specific files using glob patterns. Moves thresholds related coverage options to coverage.thresholds. See #4442 for detailed list of breaking changes

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v1.0.0-beta.4

09 Nov 10:13
Compare
Choose a tag to compare
v1.0.0-beta.4 Pre-release
Pre-release

   🚨 Breaking Changes

   🚀 Features

   🐞 Bug Fixes

   🏎 Performance

    View changes on GitHub

v1.0.0-beta.3

27 Oct 12:45
Compare
Choose a tag to compare
v1.0.0-beta.3 Pre-release
Pre-release

   🚨 Breaking Changes

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v1.0.0-beta.2

12 Oct 19:26
Compare
Choose a tag to compare
v1.0.0-beta.2 Pre-release
Pre-release

   🚨 Breaking Changes

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v1.0.0-beta.1

03 Oct 11:31
Compare
Choose a tag to compare
v1.0.0-beta.1 Pre-release
Pre-release

   🐞 Bug Fixes

    View changes on GitHub

v1.0.0-beta.0

02 Oct 16:40
Compare
Choose a tag to compare
v1.0.0-beta.0 Pre-release
Pre-release

This is a beta release for upcoming 1.0.0 version. Use beta dist-tag when installing Vitest: npm install --save-dev vitest@beta.

   🚨 Breaking Changes

  • Support multiple parallel child_process  -  by @AriPerkkio in #3925 (8b4a4)
    • If you have to disable threads (if you use canvas package, for example), this should improve your speed tremendously.
    • useFakeTimers() no longer automatically mocks process.nextTick. Users can still mock it by explicitly specifying useFakeTimers({ toFake: ['nextTick'] })
  • Add support for pool and poolOptions, remove old flags  -  by @AriPerkkio in #4172 (114a9)
    • This removes a lot of configuration options to make it easier to configure the runner to your needs. Please, have a look at migration examples if you rely on --threads or other related flags.
      • --threads is now --pool=threads
      • --no-threads is now --pool=forks
      • --single-thread is now --poolOptions.threads.singleThread
      • --experimental-vm-threads is now --pool=vmThreads
      • --experimental-vm-worker-memory-limit is now --poolOptions.vmThreads.memoryLimit
      • --isolate is now --poolOptions.<pool-name>.isolate and browser.isolate
      • test.maxThreads is now test.poolOptions.<pool-name>.maxThreads
      • test.minThreads is now test.poolOptions.<pool-name>.minThreads
      • test.useAtomics is now test.poolOptions.<pool-name>.useAtomics
      • test.poolMatchGlobs.child_process is now test.poolMatchGlobs.forks
      • test.poolMatchGlobs.experimentalVmThreads is now test.poolMatchGlobs.vmThreads
  • Make snapshots more visually pleasing by @sheremet-va in #3961
    • This will probably cause a lot of test mismatches. Quotes in snapshots are no longer escaped, and all snapshots use backtick quotes (`) even if the string is just a single line. Please, read the PR description for a way to use the previous behavior if you have problems upgrading.
  • runner: Correctly process custom tasks, update runner hooks naming by @sheremet-va in #4076
    • This PR updates the names for most of the methods on a custom runner (Test -> Task).
    • It also improves the flow for creating your custom tasks like benchmarks using createTaskCollector utility. This is primarily an advanced API for library authors.
    • If you use @vitest/snapshot separately, you will also need to update its usage. You no longer need to extend SnapshotClient to override equalityCheck method - just pass it down as an isEqual option. Also some of the public API methods were renamed for clarity.
    • If you have any questions, please, read the PR description first.

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v0.34.6

29 Sep 07:32
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.34.5

21 Sep 13:50
Compare
Choose a tag to compare

   🚀 Features

   🐞 Bug Fixes

   🏎 Performance

    View changes on GitHub

v0.34.4

08 Sep 10:33
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.34.3

25 Aug 07:29
Compare
Choose a tag to compare

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub