test: Update vitest

This commit is contained in:
Sidharth Vinod 2022-11-24 16:33:42 +05:30
parent 50aab56177
commit 5e330a6d78
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 52 additions and 8 deletions

View File

@ -110,12 +110,8 @@
"vitepress": "^1.0.0-alpha.28",
"vitepress-plugin-mermaid": "^2.0.8",
"vitepress-plugin-search": "^1.0.4-alpha.15",
"vitest": "^0.25.1"
"vitest": "^0.25.3"
},
"sideEffects": [
"**/*.css",
"**/*.scss"
],
"volta": {
"node": "18.12.1"
}

View File

@ -2,7 +2,7 @@
// Update https://github.com/mermaid-js/mermaid/blob/18c27c6f1d0537a738cbd95898df301b83c38ffc/packages/mermaid/src/docs.mts#L246 once fixed
import { expect, test } from 'vitest';
import { getRedirect } from './.vitepress/theme/redirect';
import { getRedirect } from './redirect';
test.each([
['http://localhost:1234/mermaid/#/flowchart.md', 'syntax/flowchart.html'],

52
pnpm-lock.yaml generated
View File

@ -173,8 +173,8 @@ importers:
specifier: ^1.0.4-alpha.15
version: 1.0.4-alpha.15_s3edpouswd4dgoi2en7bdlrp54
vitest:
specifier: ^0.25.1
version: 0.25.1_iyb77cyw3lw7duusvxyjdsflhu
specifier: ^0.25.3
version: 0.25.3_iyb77cyw3lw7duusvxyjdsflhu
packages/mermaid:
dependencies:
@ -11214,6 +11214,54 @@ packages:
- terser
dev: true
/vitest/0.25.3_iyb77cyw3lw7duusvxyjdsflhu:
resolution: {integrity: sha512-/UzHfXIKsELZhL7OaM2xFlRF8HRZgAHtPctacvNK8H4vOcbJJAMEgbWNGSAK7Y9b1NBe5SeM7VTuz2RsTHFJJA==}
engines: {node: '>=v14.16.0'}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@vitest/browser': '*'
'@vitest/ui': '*'
happy-dom: '*'
jsdom: '*'
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
'@vitest/browser':
optional: true
'@vitest/ui':
optional: true
happy-dom:
optional: true
jsdom:
optional: true
dependencies:
'@types/chai': 4.3.3
'@types/chai-subset': 1.3.3
'@types/node': 18.11.9
'@vitest/ui': 0.25.1
acorn: 8.8.0
acorn-walk: 8.2.0
chai: 4.3.6
debug: 4.3.4
happy-dom: 6.0.4
jsdom: 20.0.2
local-pkg: 0.4.2
source-map: 0.6.1
strip-literal: 0.4.2
tinybench: 2.3.1
tinypool: 0.3.0
tinyspy: 1.0.2
vite: 3.2.3_@types+node@18.11.9
transitivePeerDependencies:
- less
- sass
- stylus
- sugarss
- supports-color
- terser
dev: true
/vm2/3.9.11:
resolution: {integrity: sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==}
engines: {node: '>=6.0'}