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

chore(deps): update dependency vitest to v0.16.0 #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 21, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vitest 0.9.3 -> 0.16.0 age adoption passing confidence

Release Notes

vitest-dev/vitest

v0.16.0

Compare Source

   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

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
  • fix require reference (5da8b00)
  • console: ignore empty stdout/stderr (d3fb532)
  • clear mock from callstack, if mocked with factory (#​1276) (7459ff8)
  • don't show __vite_ssr prefix on imported variables (#​1272) (a2f17b0)
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
  • remove shebang when executing the code via vite-node (#​1224) (5dcfea7)

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

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 renovate bot changed the title Update dependency vitest to v0.9.4 chore(deps): update dependency vitest to v0.9.4 Apr 21, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 8818a1f to 10681a4 Compare April 24, 2022 10:00
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.9.4 chore(deps): update dependency vitest to v0.10.0 Apr 25, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 10681a4 to b04d9a1 Compare April 25, 2022 16:25
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.10.0 chore(deps): update dependency vitest to v0.10.1 May 2, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from b04d9a1 to eb1b713 Compare May 2, 2022 19:48
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.10.1 chore(deps): update dependency vitest to v0.10.2 May 3, 2022
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.10.2 chore(deps): update dependency vitest to v0.10.4 May 5, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 83ae207 to 3497b44 Compare May 5, 2022 17:56
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.10.4 chore(deps): update dependency vitest to v0.10.5 May 6, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 3497b44 to 53ca3bc Compare May 6, 2022 12:16
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.10.5 chore(deps): update dependency vitest to v0.11.0 May 7, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 53ca3bc to 445cddb Compare May 7, 2022 22:40
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.11.0 chore(deps): update dependency vitest to v0.12.0 May 8, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 445cddb to fd44c3b Compare May 8, 2022 08:58
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.0 chore(deps): update dependency vitest to v0.12.1 May 9, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch 2 times, most recently from 823dfaa to 7756ab4 Compare May 9, 2022 19:29
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.1 chore(deps): update dependency vitest to v0.12.2 May 9, 2022
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.2 chore(deps): update dependency vitest to v0.12.3 May 10, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 7756ab4 to 30fb082 Compare May 10, 2022 01:43
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.3 chore(deps): update dependency vitest to v0.12.4 May 11, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 30fb082 to c0d5af9 Compare May 11, 2022 01:36
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.4 chore(deps): update dependency vitest to v0.12.5 May 13, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from c0d5af9 to 1ce02a0 Compare May 13, 2022 15:48
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.5 chore(deps): update dependency vitest to v0.12.6 May 13, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch 2 times, most recently from ac479b3 to 9d1448c Compare May 20, 2022 10:11
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.6 chore(deps): update dependency vitest to v0.12.7 May 20, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 9d1448c to 2d553c8 Compare May 21, 2022 11:15
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.7 chore(deps): update dependency vitest to v0.12.8 May 21, 2022
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.8 chore(deps): update dependency vitest to v0.12.9 May 21, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 2d553c8 to f996844 Compare May 21, 2022 19:50
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.12.9 chore(deps): update dependency vitest to v0.13.0 May 29, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch 2 times, most recently from 4c33867 to 0912ce8 Compare June 1, 2022 11:24
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.13.0 chore(deps): update dependency vitest to v0.13.1 Jun 1, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 0912ce8 to 633a933 Compare June 5, 2022 17:24
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.13.1 chore(deps): update dependency vitest to v0.14.0 Jun 5, 2022
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.14.0 chore(deps): update dependency vitest to v0.14.1 Jun 6, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch 2 times, most recently from 1100007 to d3ec760 Compare June 10, 2022 12:38
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.14.1 chore(deps): update dependency vitest to v0.14.2 Jun 10, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from d3ec760 to 50ecd7e Compare June 14, 2022 20:41
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.14.2 chore(deps): update dependency vitest to v0.15.0 Jun 14, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 50ecd7e to 075829e Compare June 15, 2022 12:39
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.15.0 chore(deps): update dependency vitest to v0.15.1 Jun 15, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 075829e to 8fed040 Compare June 21, 2022 13:17
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.15.1 chore(deps): update dependency vitest to v0.15.2 Jun 21, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 8fed040 to 406043c Compare June 24, 2022 14:49
@renovate renovate bot changed the title chore(deps): update dependency vitest to v0.15.2 chore(deps): update dependency vitest to v0.16.0 Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants