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

Update dependency vitest to v0.15.2 #9

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 30, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vitest 0.0.122 -> 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
  • 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

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
  • vite-node: remove unsafe checks for inlining dependencies (#​1097) (c4a25ae)
Features

v0.8.5

Compare Source

Bug Fixes
Features

v0.8.4

Compare Source

Bug Fixes
Features
  • add commands to run tests depending on changed files (#​1078) (3c965d4)
  • reprint all tests, if one of the test files was deleted (#​1081) (2ded624)

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
  • prevent crashing when directory of outputFile does not exist (#​986) (5eac4ca)
  • render original source if mapped in node (#​987) (42406a3)
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

  • vite-node: don't fallback to cjs by default (#​924) (d959f28)
  • vite-node: normalize relative paths to be from current working directory (#​952) (7b98344)
  • vite-node: rework moduleCache, fix hmr (#​961) (f26cdf2)
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
  • loading animation for beforeEach, beforeAll, afterEach, afterAll (#​898) (95d6432)
  • support in-source tests via import.meta.vitest (#​901) (3eec387)

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
  • add config.d.ts && change defineConfig function type (#​830) (ac9c428)
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
  • allow reassigning global mocks (#​792) (7b34793)
  • vite-node: build spliting chunks (b04dd8f)
  • vite-node: external /dist/ by default (bb77e4f)

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 renovate bot force-pushed the renovate/vitest-0.x branch from 4d1fe4d to a136e84 Compare December 31, 2021 15:14
@renovate renovate bot changed the title Update dependency vitest to v0.0.124 Update dependency vitest to v0.0.125 Dec 31, 2021
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from a136e84 to 3606cd1 Compare January 2, 2022 01:44
@renovate renovate bot changed the title Update dependency vitest to v0.0.125 Update dependency vitest to v0.0.126 Jan 2, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 3606cd1 to 88f5592 Compare January 2, 2022 14:25
@renovate renovate bot changed the title Update dependency vitest to v0.0.126 Update dependency vitest to v0.0.127 Jan 2, 2022
@renovate renovate bot changed the title Update dependency vitest to v0.0.127 Update dependency vitest to v0.0.128 Jan 3, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch 2 times, most recently from 1b4aba9 to 5a23bb9 Compare January 3, 2022 14:55
@renovate renovate bot changed the title Update dependency vitest to v0.0.128 Update dependency vitest to v0.0.129 Jan 3, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 5a23bb9 to 0deb934 Compare January 3, 2022 19:29
@renovate renovate bot changed the title Update dependency vitest to v0.0.129 Update dependency vitest to v0.0.131 Jan 3, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 0deb934 to 398a755 Compare January 4, 2022 23:48
@renovate renovate bot changed the title Update dependency vitest to v0.0.131 Update dependency vitest to v0.0.132 Jan 4, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 398a755 to 148d7ec Compare January 5, 2022 12:16
@renovate renovate bot changed the title Update dependency vitest to v0.0.132 Update dependency vitest to v0.0.133 Jan 5, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 148d7ec to 4184207 Compare January 5, 2022 23:24
@renovate renovate bot changed the title Update dependency vitest to v0.0.133 Update dependency vitest to v0.0.134 Jan 5, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 4184207 to d2fbfa7 Compare January 6, 2022 17:54
@renovate renovate bot changed the title Update dependency vitest to v0.0.134 Update dependency vitest to v0.0.135 Jan 6, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from d2fbfa7 to 3cd901d Compare January 6, 2022 21:54
@renovate renovate bot changed the title Update dependency vitest to v0.0.135 Update dependency vitest to v0.0.136 Jan 6, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 3cd901d to 6028743 Compare January 7, 2022 14:33
@renovate renovate bot changed the title Update dependency vitest to v0.0.136 Update dependency vitest to v0.0.138 Jan 7, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 6028743 to 8eb7ab0 Compare January 7, 2022 16:26
@renovate renovate bot changed the title Update dependency vitest to v0.0.138 Update dependency vitest to v0.0.139 Jan 7, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 8eb7ab0 to 6f80c99 Compare January 10, 2022 19:58
@renovate renovate bot changed the title Update dependency vitest to v0.0.139 Update dependency vitest to v0.0.140 Jan 10, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 6f80c99 to b59af10 Compare January 11, 2022 18:23
@renovate renovate bot changed the title Update dependency vitest to v0.0.140 Update dependency vitest to v0.0.141 Jan 11, 2022
@renovate renovate bot changed the title Update dependency vitest to v0.4.1 Update dependency vitest to v0.4.2 Feb 19, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 2468523 to 1e0f80e Compare February 21, 2022 09:56
@renovate renovate bot changed the title Update dependency vitest to v0.4.2 Update dependency vitest to v0.5.0 Feb 21, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 1e0f80e to e0ccdcb Compare February 22, 2022 08:45
@renovate renovate bot changed the title Update dependency vitest to v0.5.0 Update dependency vitest to v0.5.1 Feb 22, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from e0ccdcb to 7c74147 Compare February 22, 2022 13:46
@renovate renovate bot changed the title Update dependency vitest to v0.5.1 Update dependency vitest to v0.5.3 Feb 22, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 7c74147 to d2cbf9e Compare February 23, 2022 16:53
@renovate renovate bot changed the title Update dependency vitest to v0.5.3 Update dependency vitest to v0.5.4 Feb 23, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from d2cbf9e to 5bbad46 Compare February 24, 2022 11:34
@renovate renovate bot changed the title Update dependency vitest to v0.5.4 Update dependency vitest to v0.5.5 Feb 24, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 5bbad46 to e428787 Compare February 26, 2022 10:22
@renovate renovate bot changed the title Update dependency vitest to v0.5.5 Update dependency vitest to v0.5.7 Feb 26, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from e428787 to 852dfc4 Compare February 27, 2022 20:54
@renovate renovate bot changed the title Update dependency vitest to v0.5.7 Update dependency vitest to v0.5.8 Feb 27, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 852dfc4 to 1ecdf04 Compare March 1, 2022 09:44
@renovate renovate bot changed the title Update dependency vitest to v0.5.8 Update dependency vitest to v0.5.9 Mar 1, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 1ecdf04 to 66b8645 Compare March 7, 2022 15:03
@renovate renovate bot changed the title Update dependency vitest to v0.5.9 Update dependency vitest to v0.6.0 Mar 7, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 66b8645 to 3a29c64 Compare March 26, 2022 15:56
@renovate renovate bot changed the title Update dependency vitest to v0.6.0 Update dependency vitest to v0.7.11 Mar 26, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 3a29c64 to f11035a Compare April 25, 2022 00:40
@renovate renovate bot changed the title Update dependency vitest to v0.7.11 Update dependency vitest to v0.9.4 Apr 25, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from f11035a to 75f4707 Compare May 15, 2022 18:33
@renovate renovate bot changed the title Update dependency vitest to v0.9.4 Update dependency vitest to v0.12.6 May 15, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 75f4707 to 95f500a Compare June 18, 2022 18:17
@renovate renovate bot changed the title Update dependency vitest to v0.12.6 Update dependency vitest to v0.15.1 Jun 18, 2022
@renovate renovate bot force-pushed the renovate/vitest-0.x branch from 95f500a to 91f1236 Compare June 23, 2022 23:04
@renovate renovate bot changed the title Update dependency vitest to v0.15.1 Update dependency vitest to v0.15.2 Jun 23, 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