bundle-require icon indicating copy to clipboard operation
bundle-require copied to clipboard

chore(deps): update dependency vitest to v0.15.2

Open renovate[bot] opened this issue 4 years ago β€’ 0 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vitest 0.2.5 -> 0.15.2 age adoption passing confidence

Release Notes

vitest-dev/vitest

v0.15.2

Compare Source

   🐞 Bug Fixes
  • Allow redefining global expect, closes #1496
  • Calculate label of graph node #1431
  • Snapshots are now updating #1503
  • Return types for vi.mocked are now equal to MaybeMocked #1511
  • Don't mark skipped snapshots as obsolete #1505
  • Correctly generate inline snapshots inside js files #1510
  • Respect transformMode when resolving id #1506
   ❀️ Contributors

Β Β Β Thanks to @​antfu | @​nieyuyao | @​RedJanvier | @​renovate[bot] | @​sheremet-va

Β Β Β Β View changes on GitHub

v0.15.1

Compare Source

   🐞 Bug Fixes
  • Reliably process css with css option 22fed1b8
   ❀️ Contributors

Β Β Β Thanks to @​sheremet-va | @​stormwarning

Β Β Β Β View changes on GitHub

v0.15.0

Compare Source

Β Β Β πŸš€ Features
  • Bind expect state to context #1468
  • Introduce VITEST_POOL_ID #1473
  • Add maxConcurrency option, 5 by default #1483
  • Add --shard command #1477
  • Add css config option, don't process CSS by default #1467
   🐞 Bug Fixes
  • Null inside test.each is not turned into an empty array #1462
  • Add @​types/node to dependencies #1474
  • Parent is defined on global, closes #1489
  • web-worker:
    • Ensure event listener functions are bound correctly #1487
Β Β Β Β View changes on GitHub

v0.14.2

Compare Source

Bug Fixes
Features

v0.14.1

Compare Source

Bug Fixes

v0.14.0

Compare Source

Breaking Changes
  • vite-node: use .mjs for esm build (692ad34)
  • remove "type": "module" from vitest/package.json (#​1411) (b4a9b0b), closes #​325
  • vite-node: respect ssr field, allow inlining everything (#​1434) (fd57b0e)
  • improve watcher performance, add forceRerunTriggers option, watchIgnore is renamed to watchExclude and now accepts only glob patterns (#​1424) (3f5ff5b)
Bug Fixes

v0.13.1

Compare Source

Bug Fixes
Features

v0.13.0

Compare Source

Features

v0.12.10

Compare Source

Bug Fixes
Features

v0.12.9

Compare Source

Bug Fixes

v0.12.8

Compare Source

Bug Fixes

v0.12.7

Compare Source

Bug Fixes
Features

v0.12.6

Compare Source

Bug Fixes

v0.12.5

Compare Source

Bug Fixes
Features
  • vite-node: include debug (ed3374f)

v0.12.4

Compare Source

Bug Fixes
  • snapshot: only add indent when the line is not empty (6a5dfe8)
Features

v0.12.3

Compare Source

Bug Fixes
  • try disable atomics for workers (154db71)

v0.12.2

Compare Source

Bug Fixes
Features
  • support custom env in config (4701e0b)

v0.12.1

Compare Source

Bug Fixes
Features

v0.12.0

Compare Source

Bug Fixes
  • calling global functions in happy-dom, refactor sharing global state (#​1262) (555aba6)
Features

v0.11.0

Compare Source

Bug Fixes
Features

v0.10.5

Compare Source

Bug Fixes
Features

v0.10.4

Compare Source

Bug Fixes

v0.10.3

Compare Source

Bug Fixes

v0.10.2

Compare Source

Features

v0.10.1

Compare Source

Bug Fixes
Features

v0.10.0

Compare Source

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.

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

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:

Test Context

Inspired by Playwright Fixtures, Vitest's test context allows you to define utils, states, and fixtures that can be used in your tests.

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

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. Thanks to the newly introduced 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.

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 (#​1136) (f2bceb2)

Bug Fixes

v0.9.4

Compare Source

Bug Fixes
Features

v0.9.3

Compare Source

Bug Fixes

v0.9.2

Compare Source

v0.9.1

Compare Source

Bug Fixes
Features

v0.9.0

Compare Source

Bug Fixes
Features

v0.8.5

Compare Source

Bug Fixes
Features

v0.8.4

Compare Source

Bug Fixes
Features

v0.8.3

Compare Source

Bug Fixes
Features

v0.8.2

Compare Source

Bug Fixes

v0.8.1

Compare Source

Bug Fixes
  • downgrade engine requirement (2d84a1e)

v0.8.0

Compare Source

Bug Fixes
Features
  • vite-node: support debug flag to emit additional info (6dd7f53)

v0.7.13

Compare Source

Bug Fixes

v0.7.12

Compare Source

Bug Fixes
Features

v0.7.11

Compare Source

Bug Fixes

v0.7.10

Compare Source

Bug Fixes
  • relax engine requirements (7719bb0)

v0.7.9

Compare Source

Bug Fixes

v0.7.8

Compare Source

Bug Fixes

v0.7.7

Compare Source

Bug Fixes
Features

v0.7.6

Compare Source

Bug Fixes
  • vite-node: fix externalizing (6f265e0)

v0.7.5

Compare Source

Features

v0.7.4

Compare Source

Bug Fixes
  • process.env timeing (5def681)
  • vite-node: stub more api for import.meta.hot (7b21be8)

v0.7.3

Compare Source

Bug Fixes
  • process.env.VITEST_MODE timing (2254c91)

v0.7.2

Compare Source

Features
  • expose process.env.VITEST_MODE (6647fa7)
  • new getRunningMode utils (3d6c41a)
  • new isFirstRun utils (210bc6f)

v0.7.1

Compare Source

Bug Fixes
  • inline mockdate and fix negative thread time (#​972) (aa239bf)
  • mock: reset mock state before each run (0e9b92d)
  • reporter: hooks status alignment (713c456)
Features

v0.7.0

Compare Source

Breacking changes

Features

v0.6.3

Compare Source

Bug Fixes
Features
  • add optional generic on array containing (#​935) (6ca857b)
  • group sync console.log calls with macro task (51c2058)

v0.6.1

Compare Source

Bug Fixes
Features

v0.6.0

Compare Source

Bug Fixes
Features

v0.5.9

Compare Source

Bug Fixes

v0.5.8

Compare Source

Bug Fixes

v0.5.7

Compare Source

Bug Fixes
  • do not override syntax error (7876bff)

v0.5.6

Compare Source

Bug Fixes
Features

v0.5.5

Compare Source

Bug Fixes
  • error out on empty test files (325ea1e)

v0.5.4

Compare Source

Bug Fixes
Features
  • pretty display unhandled rejection (518e3dd)

v0.5.3

Compare Source

v0.5.2

Compare Source

Bug Fixes
Features
  • expose cli start api (3b5371c)
  • improve test name pattern input (73eb13f)

v0.5.1

Compare Source

Bug Fixes
Features

v0.5.0

Compare Source

Breaking Change

  • defineConfig moved from vitest/node to vitest/config, #​799
Bug Fixes
Features

v0.4.3

Compare Source

Bug Fixes

v0.4.2

Compare Source

Bug Fixes

v0.4.1

Compare Source

Bug Fixes

v0.4.0

Compare Source

Bug Fixes
Features

v0.3.6

Compare Source

Bug Fixes
Features
Performance Improvements

v0.3.5

Compare Source

Bug Fixes
Features

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.


  • [ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Feb 03 '22 04:02 renovate[bot]