forked from Mirrors/elk
chore: update nuxt-vitest
This commit is contained in:
parent
5870e8d6e6
commit
e6172ad38b
4 changed files with 38 additions and 197 deletions
|
@ -66,7 +66,7 @@ export async function translateText(text: string, from: string | null | undefine
|
||||||
text: '',
|
text: '',
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
const response = await $fetch<TranslationResponse>(config.public.translateApi, {
|
const response = await $fetch(config.public.translateApi, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: {
|
body: {
|
||||||
q: text,
|
q: text,
|
||||||
|
@ -75,7 +75,7 @@ export async function translateText(text: string, from: string | null | undefine
|
||||||
format: 'html',
|
format: 'html',
|
||||||
api_key: '',
|
api_key: '',
|
||||||
},
|
},
|
||||||
})
|
}) as TranslationResponse
|
||||||
status.success = true
|
status.success = true
|
||||||
status.text = response.translatedText
|
status.text = response.translatedText
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
"lru-cache": "^10.0.0",
|
"lru-cache": "^10.0.0",
|
||||||
"masto": "^5.11.3",
|
"masto": "^5.11.3",
|
||||||
"nuxt-security": "^0.13.1",
|
"nuxt-security": "^0.13.1",
|
||||||
"nuxt-vitest": "^0.8.7",
|
"nuxt-vitest": "^0.10.1",
|
||||||
"page-lifecycle": "^0.1.2",
|
"page-lifecycle": "^0.1.2",
|
||||||
"pinia": "^2.1.4",
|
"pinia": "^2.1.4",
|
||||||
"postcss-nested": "^6.0.1",
|
"postcss-nested": "^6.0.1",
|
||||||
|
|
222
pnpm-lock.yaml
222
pnpm-lock.yaml
|
@ -152,8 +152,8 @@ importers:
|
||||||
specifier: ^0.13.1
|
specifier: ^0.13.1
|
||||||
version: 0.13.1(patch_hash=bd6cmp7ukwwiwrxafbbotwkihe)(rollup@2.79.1)
|
version: 0.13.1(patch_hash=bd6cmp7ukwwiwrxafbbotwkihe)(rollup@2.79.1)
|
||||||
nuxt-vitest:
|
nuxt-vitest:
|
||||||
specifier: ^0.8.7
|
specifier: ^0.10.1
|
||||||
version: 0.8.7(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(rollup@2.79.1)(vite@4.3.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4)
|
version: 0.10.1(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(happy-dom@10.5.2)(rollup@2.79.1)(vite@4.3.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4)
|
||||||
page-lifecycle:
|
page-lifecycle:
|
||||||
specifier: ^0.1.2
|
specifier: ^0.1.2
|
||||||
version: 0.1.2
|
version: 0.1.2
|
||||||
|
@ -2794,58 +2794,6 @@ packages:
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@nuxt/kit@3.6.1(rollup@2.79.1):
|
|
||||||
resolution: {integrity: sha512-7AoiKV0zAtyT3ZvjMfGislMcB+JMbBZxYw68/oWtkEPXCfGQMYuiMI9Ue246/0JT2Yp2KZclEgrJEJ6NLkqFcw==}
|
|
||||||
engines: {node: ^14.18.0 || >=16.10.0}
|
|
||||||
dependencies:
|
|
||||||
'@nuxt/schema': 3.6.1(rollup@2.79.1)
|
|
||||||
c12: 1.4.2
|
|
||||||
consola: 3.2.2
|
|
||||||
defu: 6.1.2
|
|
||||||
globby: 13.2.1
|
|
||||||
hash-sum: 2.0.0
|
|
||||||
ignore: 5.2.4
|
|
||||||
jiti: 1.19.1
|
|
||||||
knitwork: 1.0.0
|
|
||||||
mlly: 1.4.0
|
|
||||||
pathe: 1.1.1
|
|
||||||
pkg-types: 1.0.3
|
|
||||||
scule: 1.0.0
|
|
||||||
semver: 7.5.3
|
|
||||||
unctx: 2.3.1
|
|
||||||
unimport: 3.0.14(rollup@2.79.1)
|
|
||||||
untyped: 1.3.2
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- rollup
|
|
||||||
- supports-color
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@nuxt/kit@3.6.1(rollup@3.26.0):
|
|
||||||
resolution: {integrity: sha512-7AoiKV0zAtyT3ZvjMfGislMcB+JMbBZxYw68/oWtkEPXCfGQMYuiMI9Ue246/0JT2Yp2KZclEgrJEJ6NLkqFcw==}
|
|
||||||
engines: {node: ^14.18.0 || >=16.10.0}
|
|
||||||
dependencies:
|
|
||||||
'@nuxt/schema': 3.6.1(rollup@3.26.0)
|
|
||||||
c12: 1.4.2
|
|
||||||
consola: 3.2.2
|
|
||||||
defu: 6.1.2
|
|
||||||
globby: 13.2.1
|
|
||||||
hash-sum: 2.0.0
|
|
||||||
ignore: 5.2.4
|
|
||||||
jiti: 1.19.1
|
|
||||||
knitwork: 1.0.0
|
|
||||||
mlly: 1.4.0
|
|
||||||
pathe: 1.1.1
|
|
||||||
pkg-types: 1.0.3
|
|
||||||
scule: 1.0.0
|
|
||||||
semver: 7.5.3
|
|
||||||
unctx: 2.3.1
|
|
||||||
unimport: 3.0.14(rollup@3.26.0)
|
|
||||||
untyped: 1.3.2
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- rollup
|
|
||||||
- supports-color
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@nuxt/kit@3.6.2(rollup@2.79.1):
|
/@nuxt/kit@3.6.2(rollup@2.79.1):
|
||||||
resolution: {integrity: sha512-X1WN76izsILva6TvQVTfJCHG7TXCwsB6jsxZKcU3qSog26jer5dildDb5ZmKL3e+IFD6BwK4ShO/py8VZcT6OA==}
|
resolution: {integrity: sha512-X1WN76izsILva6TvQVTfJCHG7TXCwsB6jsxZKcU3qSog26jer5dildDb5ZmKL3e+IFD6BwK4ShO/py8VZcT6OA==}
|
||||||
engines: {node: ^14.18.0 || >=16.10.0}
|
engines: {node: ^14.18.0 || >=16.10.0}
|
||||||
|
@ -2897,42 +2845,6 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@nuxt/schema@3.6.1(rollup@2.79.1):
|
|
||||||
resolution: {integrity: sha512-+4pr0lkcPP5QqprYV+/ujmBkt2JHmi/v5vaxCrMhElUFgifvJAfT89BkGFn6W7pz0b8Vd3GcByFUWI7/wX/Pcw==}
|
|
||||||
engines: {node: ^14.18.0 || >=16.10.0}
|
|
||||||
dependencies:
|
|
||||||
defu: 6.1.2
|
|
||||||
hookable: 5.5.3
|
|
||||||
pathe: 1.1.1
|
|
||||||
pkg-types: 1.0.3
|
|
||||||
postcss-import-resolver: 2.0.0
|
|
||||||
std-env: 3.3.3
|
|
||||||
ufo: 1.1.2
|
|
||||||
unimport: 3.0.14(rollup@2.79.1)
|
|
||||||
untyped: 1.3.2
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- rollup
|
|
||||||
- supports-color
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@nuxt/schema@3.6.1(rollup@3.26.0):
|
|
||||||
resolution: {integrity: sha512-+4pr0lkcPP5QqprYV+/ujmBkt2JHmi/v5vaxCrMhElUFgifvJAfT89BkGFn6W7pz0b8Vd3GcByFUWI7/wX/Pcw==}
|
|
||||||
engines: {node: ^14.18.0 || >=16.10.0}
|
|
||||||
dependencies:
|
|
||||||
defu: 6.1.2
|
|
||||||
hookable: 5.5.3
|
|
||||||
pathe: 1.1.1
|
|
||||||
pkg-types: 1.0.3
|
|
||||||
postcss-import-resolver: 2.0.0
|
|
||||||
std-env: 3.3.3
|
|
||||||
ufo: 1.1.2
|
|
||||||
unimport: 3.0.14(rollup@3.26.0)
|
|
||||||
untyped: 1.3.2
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- rollup
|
|
||||||
- supports-color
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@nuxt/schema@3.6.2(rollup@2.79.1):
|
/@nuxt/schema@3.6.2(rollup@2.79.1):
|
||||||
resolution: {integrity: sha512-wxb1/C5ozly5IwX0IRjVGml1n2KjZrTKsf6lTk3fdjUpW105kAvYX4j66PDOdBRE4vCwCsgaHJfWpUSeNBxbuA==}
|
resolution: {integrity: sha512-wxb1/C5ozly5IwX0IRjVGml1n2KjZrTKsf6lTk3fdjUpW105kAvYX4j66PDOdBRE4vCwCsgaHJfWpUSeNBxbuA==}
|
||||||
engines: {node: ^14.18.0 || >=16.10.0}
|
engines: {node: ^14.18.0 || >=16.10.0}
|
||||||
|
@ -4530,24 +4442,19 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
tinyspy: 2.1.1
|
tinyspy: 2.1.1
|
||||||
|
|
||||||
/@vitest/ui@0.30.1:
|
/@vitest/ui@0.33.0(vitest@0.33.0):
|
||||||
resolution: {integrity: sha512-Izz4ElDmdvX02KImSC2nCJI6CsGo9aETbKqxli55M0rbbPPAMtF0zDcJIqgEP5V6Y+4Ysf6wvsjLbLCTnaBvKw==}
|
resolution: {integrity: sha512-7gbAjLqt30R4bodkJAutdpy4ncv+u5IKTHYTow1c2q+FOxZUC9cKOSqMUxjwaaTwLN+EnDnmXYPtg3CoahaUzQ==}
|
||||||
|
peerDependencies:
|
||||||
|
vitest: '>=0.30.1 <1'
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/utils': 0.30.1
|
'@vitest/utils': 0.33.0
|
||||||
fast-glob: 3.3.0
|
fast-glob: 3.3.0
|
||||||
fflate: 0.7.4
|
fflate: 0.8.0
|
||||||
flatted: 3.2.7
|
flatted: 3.2.7
|
||||||
pathe: 1.1.1
|
pathe: 1.1.1
|
||||||
picocolors: 1.0.0
|
picocolors: 1.0.0
|
||||||
sirv: 2.0.3
|
sirv: 2.0.3
|
||||||
dev: false
|
vitest: 0.33.0(happy-dom@10.5.2)
|
||||||
|
|
||||||
/@vitest/utils@0.30.1:
|
|
||||||
resolution: {integrity: sha512-/c8Xv2zUVc+rnNt84QF0Y0zkfxnaGhp87K2dYJMLtLOIckPzuxLVzAtFCicGFdB4NeBHNzTRr1tNn7rCtQcWFA==}
|
|
||||||
dependencies:
|
|
||||||
concordance: 5.0.4
|
|
||||||
loupe: 2.3.6
|
|
||||||
pretty-format: 27.5.1
|
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@vitest/utils@0.33.0:
|
/@vitest/utils@0.33.0:
|
||||||
|
@ -5243,7 +5150,7 @@ packages:
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
nuxt: ^3.0.0
|
nuxt: ^3.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@nuxt/kit': 3.6.1(rollup@2.79.1)
|
'@nuxt/kit': 3.6.2(rollup@2.79.1)
|
||||||
'@vueuse/core': 10.2.1(vue@3.3.4)
|
'@vueuse/core': 10.2.1(vue@3.3.4)
|
||||||
'@vueuse/metadata': 10.2.1
|
'@vueuse/metadata': 10.2.1
|
||||||
local-pkg: 0.4.3
|
local-pkg: 0.4.3
|
||||||
|
@ -5261,7 +5168,7 @@ packages:
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
nuxt: ^3.0.0
|
nuxt: ^3.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@nuxt/kit': 3.6.1(rollup@3.26.0)
|
'@nuxt/kit': 3.6.2(rollup@3.26.0)
|
||||||
'@vueuse/core': 10.2.1(vue@3.3.4)
|
'@vueuse/core': 10.2.1(vue@3.3.4)
|
||||||
'@vueuse/metadata': 10.2.1
|
'@vueuse/metadata': 10.2.1
|
||||||
local-pkg: 0.4.3
|
local-pkg: 0.4.3
|
||||||
|
@ -5856,10 +5763,6 @@ packages:
|
||||||
inherits: 2.0.4
|
inherits: 2.0.4
|
||||||
readable-stream: 3.6.2
|
readable-stream: 3.6.2
|
||||||
|
|
||||||
/blueimp-md5@2.19.0:
|
|
||||||
resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/blurhash@2.0.5:
|
/blurhash@2.0.5:
|
||||||
resolution: {integrity: sha512-cRygWd7kGBQO3VEhPiTgq4Wc43ctsM+o46urrmPOiuAe+07fzlSB9OJVdpgDL0jPqXUVQ9ht7aq7kxOeJHRK+w==}
|
resolution: {integrity: sha512-cRygWd7kGBQO3VEhPiTgq4Wc43ctsM+o46urrmPOiuAe+07fzlSB9OJVdpgDL0jPqXUVQ9ht7aq7kxOeJHRK+w==}
|
||||||
dev: false
|
dev: false
|
||||||
|
@ -6362,20 +6265,6 @@ packages:
|
||||||
/concat-map@0.0.1:
|
/concat-map@0.0.1:
|
||||||
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
||||||
|
|
||||||
/concordance@5.0.4:
|
|
||||||
resolution: {integrity: sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==}
|
|
||||||
engines: {node: '>=10.18.0 <11 || >=12.14.0 <13 || >=14'}
|
|
||||||
dependencies:
|
|
||||||
date-time: 3.1.0
|
|
||||||
esutils: 2.0.3
|
|
||||||
fast-diff: 1.3.0
|
|
||||||
js-string-escape: 1.0.1
|
|
||||||
lodash: 4.17.21
|
|
||||||
md5-hex: 3.0.1
|
|
||||||
semver: 7.5.3
|
|
||||||
well-known-symbols: 2.0.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/config-chain@1.1.13:
|
/config-chain@1.1.13:
|
||||||
resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
|
resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -6577,13 +6466,6 @@ packages:
|
||||||
resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
|
resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
|
||||||
engines: {node: '>= 12'}
|
engines: {node: '>= 12'}
|
||||||
|
|
||||||
/date-time@3.1.0:
|
|
||||||
resolution: {integrity: sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==}
|
|
||||||
engines: {node: '>=6'}
|
|
||||||
dependencies:
|
|
||||||
time-zone: 1.0.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/de-indent@1.0.2:
|
/de-indent@1.0.2:
|
||||||
resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
|
resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
|
||||||
|
|
||||||
|
@ -7632,10 +7514,6 @@ packages:
|
||||||
/fast-deep-equal@3.1.3:
|
/fast-deep-equal@3.1.3:
|
||||||
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
|
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
|
||||||
|
|
||||||
/fast-diff@1.3.0:
|
|
||||||
resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/fast-folder-size@2.1.0:
|
/fast-folder-size@2.1.0:
|
||||||
resolution: {integrity: sha512-3h+e4YJJ6fze5RMaByScrfRdHE+DnM/as8r/jbjmIGhgty6v2yBRNbtOiItqhRitv4kBv8WAOQvbPtnyYK3gHw==}
|
resolution: {integrity: sha512-3h+e4YJJ6fze5RMaByScrfRdHE+DnM/as8r/jbjmIGhgty6v2yBRNbtOiItqhRitv4kBv8WAOQvbPtnyYK3gHw==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -7681,8 +7559,8 @@ packages:
|
||||||
node-domexception: 1.0.0
|
node-domexception: 1.0.0
|
||||||
web-streams-polyfill: 3.2.1
|
web-streams-polyfill: 3.2.1
|
||||||
|
|
||||||
/fflate@0.7.4:
|
/fflate@0.8.0:
|
||||||
resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==}
|
resolution: {integrity: sha512-FAdS4qMuFjsJj6XHbBaZeXOgaypXp8iw/Tpyuq/w3XA41jjLHT8NPA+n7czH/DDhdncq0nAyDZmPeWXh2qmdIg==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/file-entry-cache@6.0.1:
|
/file-entry-cache@6.0.1:
|
||||||
|
@ -8162,17 +8040,6 @@ packages:
|
||||||
whatwg-encoding: 2.0.0
|
whatwg-encoding: 2.0.0
|
||||||
whatwg-mimetype: 3.0.0
|
whatwg-mimetype: 3.0.0
|
||||||
|
|
||||||
/happy-dom@9.20.3:
|
|
||||||
resolution: {integrity: sha512-eBsgauT435fXFvQDNcmm5QbGtYzxEzOaX35Ia+h6yP/wwa4xSWZh1CfP+mGby8Hk6Xu59mTkpyf72rUXHNxY7A==}
|
|
||||||
dependencies:
|
|
||||||
css.escape: 1.5.1
|
|
||||||
entities: 4.5.0
|
|
||||||
iconv-lite: 0.6.3
|
|
||||||
webidl-conversions: 7.0.0
|
|
||||||
whatwg-encoding: 2.0.0
|
|
||||||
whatwg-mimetype: 3.0.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/has-bigints@1.0.2:
|
/has-bigints@1.0.2:
|
||||||
resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}
|
resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}
|
||||||
|
|
||||||
|
@ -8927,11 +8794,6 @@ packages:
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/js-string-escape@1.0.1:
|
|
||||||
resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==}
|
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/js-tokens@4.0.0:
|
/js-tokens@4.0.0:
|
||||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||||
|
|
||||||
|
@ -9384,13 +9246,6 @@ packages:
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/md5-hex@3.0.1:
|
|
||||||
resolution: {integrity: sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dependencies:
|
|
||||||
blueimp-md5: 2.19.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/md5@2.3.0:
|
/md5@2.3.0:
|
||||||
resolution: {integrity: sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==}
|
resolution: {integrity: sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -10446,28 +10301,30 @@ packages:
|
||||||
dev: false
|
dev: false
|
||||||
patched: true
|
patched: true
|
||||||
|
|
||||||
/nuxt-vitest@0.8.7(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(rollup@2.79.1)(vite@4.3.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4):
|
/nuxt-vitest@0.10.1(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(happy-dom@10.5.2)(rollup@2.79.1)(vite@4.3.9)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4):
|
||||||
resolution: {integrity: sha512-OaQqF8QxfLKzYzSrwcfkhv5BeyLQGGvrSvOedjV3OHuDjOaTJa6OPU2VTCZBVNvPMjnbm2h71/CsXbH6smvEJw==}
|
resolution: {integrity: sha512-Lee+r2Cs1L9OgLjmGC51aggE5xnbspbEMmt7oYYVOyNHmSz5zAp+YHTGU42BdD1ueYXDZ8QKmknlR0cxj1vLBw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@vitejs/plugin-vue': '*'
|
'@vitejs/plugin-vue': '*'
|
||||||
'@vitejs/plugin-vue-jsx': '*'
|
'@vitejs/plugin-vue-jsx': '*'
|
||||||
vite: '*'
|
vite: '*'
|
||||||
vitest: ^0.30.0
|
vitest: ^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.33.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@nuxt/kit': 3.6.2(rollup@2.79.1)
|
'@nuxt/kit': 3.6.2(rollup@2.79.1)
|
||||||
'@vitejs/plugin-vue': 4.2.3(vite@4.3.9)(vue@3.3.4)
|
'@vitejs/plugin-vue': 4.2.3(vite@4.3.9)(vue@3.3.4)
|
||||||
'@vitejs/plugin-vue-jsx': 3.0.1(vite@4.3.9)(vue@3.3.4)
|
'@vitejs/plugin-vue-jsx': 3.0.1(vite@4.3.9)(vue@3.3.4)
|
||||||
'@vitest/ui': 0.30.1
|
'@vitest/ui': 0.33.0(vitest@0.33.0)
|
||||||
defu: 6.1.2
|
defu: 6.1.2
|
||||||
get-port-please: 3.0.1
|
get-port-please: 3.0.1
|
||||||
perfect-debounce: 1.0.0
|
perfect-debounce: 1.0.0
|
||||||
std-env: 3.3.3
|
std-env: 3.3.3
|
||||||
vite: 4.3.9(@types/node@20.3.3)
|
vite: 4.3.9(@types/node@20.3.3)
|
||||||
vitest: 0.33.0(happy-dom@10.5.2)
|
vitest: 0.33.0(happy-dom@10.5.2)
|
||||||
vitest-environment-nuxt: 0.8.7(rollup@2.79.1)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4)
|
vitest-environment-nuxt: 0.10.1(happy-dom@10.5.2)(rollup@2.79.1)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@vue/compiler-dom'
|
- '@vue/compiler-dom'
|
||||||
- '@vue/server-renderer'
|
- '@vue/server-renderer'
|
||||||
|
- happy-dom
|
||||||
|
- jsdom
|
||||||
- rollup
|
- rollup
|
||||||
- supports-color
|
- supports-color
|
||||||
- vue
|
- vue
|
||||||
|
@ -11487,15 +11344,6 @@ packages:
|
||||||
resolution: {integrity: sha512-Rk753HI8f4uivXi4ZCIYdhmG1V+WKzvRMg/X+M42a6t7D07RcmopXJMDNk6N++7Bl75URRGsb40ruvg7Hcp2wQ==}
|
resolution: {integrity: sha512-Rk753HI8f4uivXi4ZCIYdhmG1V+WKzvRMg/X+M42a6t7D07RcmopXJMDNk6N++7Bl75URRGsb40ruvg7Hcp2wQ==}
|
||||||
engines: {node: ^14.13.1 || >=16.0.0}
|
engines: {node: ^14.13.1 || >=16.0.0}
|
||||||
|
|
||||||
/pretty-format@27.5.1:
|
|
||||||
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
|
|
||||||
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
|
|
||||||
dependencies:
|
|
||||||
ansi-regex: 5.0.1
|
|
||||||
ansi-styles: 5.2.0
|
|
||||||
react-is: 17.0.2
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/pretty-format@29.5.0:
|
/pretty-format@29.5.0:
|
||||||
resolution: {integrity: sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==}
|
resolution: {integrity: sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==}
|
||||||
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
||||||
|
@ -11750,10 +11598,6 @@ packages:
|
||||||
strip-json-comments: 2.0.1
|
strip-json-comments: 2.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/react-is@17.0.2:
|
|
||||||
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/react-is@18.2.0:
|
/react-is@18.2.0:
|
||||||
resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
|
resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
|
||||||
|
|
||||||
|
@ -13019,11 +12863,6 @@ packages:
|
||||||
resolution: {integrity: sha512-kH5pKeIIBPQXAOni2AiY/Cu/NKdkFREdpH+TLdM0g6WA7RriCv0kPLgP731ady67MhTAqrVG/4mnEeibVuCJcg==}
|
resolution: {integrity: sha512-kH5pKeIIBPQXAOni2AiY/Cu/NKdkFREdpH+TLdM0g6WA7RriCv0kPLgP731ady67MhTAqrVG/4mnEeibVuCJcg==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/time-zone@1.0.0:
|
|
||||||
resolution: {integrity: sha512-TIsDdtKo6+XrPtiTm1ssmMngN1sAhyKnTO2kunQWqNPWIVvCm15Wmw4SWInwTVgJ5u/Tr04+8Ei9TNcw4x4ONA==}
|
|
||||||
engines: {node: '>=4'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/tiny-decode@0.1.3:
|
/tiny-decode@0.1.3:
|
||||||
resolution: {integrity: sha512-1z+tXaZpPUyREOfjKDQj5lR6HfD6Pa4NF7pb/9ep7sP4+X5WF76bGdJktWCY1Rm+aMR46vJ75VAL/oAptpD1AA==}
|
resolution: {integrity: sha512-1z+tXaZpPUyREOfjKDQj5lR6HfD6Pa4NF7pb/9ep7sP4+X5WF76bGdJktWCY1Rm+aMR46vJ75VAL/oAptpD1AA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -13990,20 +13829,28 @@ packages:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.2
|
fsevents: 2.3.2
|
||||||
|
|
||||||
/vitest-environment-nuxt@0.8.7(rollup@2.79.1)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4):
|
/vitest-environment-nuxt@0.10.1(happy-dom@10.5.2)(rollup@2.79.1)(vitest@0.33.0)(vue-router@4.2.4)(vue@3.3.4):
|
||||||
resolution: {integrity: sha512-wk0Jn+PmZqF3jT3R/pkrgP7C98K6+/B3yq0dG9I8Qanwmp3014ljQgpiukrAZ6ZeF4k/8wrNBRliBcqtxCKFcw==}
|
resolution: {integrity: sha512-VFRnK+eNC9OR0PtNtiq+MaNR3rN+TnB7N8YFjDXURHTsWhInGY2031becn3HBXs49yBikW6lji18TT8yDAKCJw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vitest: ^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0
|
happy-dom: ^9.10.9
|
||||||
|
jsdom: ^22.0.0
|
||||||
|
vitest: ^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.33.0
|
||||||
vue: ^3.2.45
|
vue: ^3.2.45
|
||||||
vue-router: ^4.0.0
|
vue-router: ^4.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
happy-dom:
|
||||||
|
optional: true
|
||||||
|
jsdom:
|
||||||
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@nuxt/kit': 3.6.2(rollup@2.79.1)
|
'@nuxt/kit': 3.6.2(rollup@2.79.1)
|
||||||
'@vue/test-utils': 2.4.0(vue@3.3.4)
|
'@vue/test-utils': 2.4.0(vue@3.3.4)
|
||||||
defu: 6.1.2
|
defu: 6.1.2
|
||||||
estree-walker: 3.0.3
|
estree-walker: 3.0.3
|
||||||
h3: 1.7.1
|
h3: 1.7.1
|
||||||
happy-dom: 9.20.3
|
happy-dom: 10.5.2
|
||||||
magic-string: 0.30.1
|
magic-string: 0.30.1
|
||||||
|
node-fetch-native: 1.2.0
|
||||||
ofetch: 1.1.1
|
ofetch: 1.1.1
|
||||||
unenv: 1.5.1
|
unenv: 1.5.1
|
||||||
vitest: 0.33.0(happy-dom@10.5.2)
|
vitest: 0.33.0(happy-dom@10.5.2)
|
||||||
|
@ -14408,11 +14255,6 @@ packages:
|
||||||
- uglify-js
|
- uglify-js
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/well-known-symbols@2.0.0:
|
|
||||||
resolution: {integrity: sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==}
|
|
||||||
engines: {node: '>=6'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/whatwg-encoding@2.0.0:
|
/whatwg-encoding@2.0.0:
|
||||||
resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==}
|
resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// TODO: fix shadowing of `vi` import
|
import { describe, expect, it, vi } from 'vitest'
|
||||||
import { vi as _vi, describe, expect, it } from 'vitest'
|
|
||||||
import { renderToString } from 'vue/server-renderer'
|
import { renderToString } from 'vue/server-renderer'
|
||||||
import { format } from 'prettier'
|
import { format } from 'prettier'
|
||||||
import type { mastodon } from 'masto'
|
import type { mastodon } from 'masto'
|
||||||
|
@ -271,7 +270,7 @@ async function render(content: string, options?: ContentParseOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// mocks
|
// mocks
|
||||||
_vi.mock('vue-router', async () => {
|
vi.mock('vue-router', async () => {
|
||||||
const { defineComponent, h } = await import('vue')
|
const { defineComponent, h } = await import('vue')
|
||||||
return {
|
return {
|
||||||
RouterLink: defineComponent((attrs) => {
|
RouterLink: defineComponent((attrs) => {
|
||||||
|
@ -280,7 +279,7 @@ _vi.mock('vue-router', async () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
_vi.mock('shiki-es', async (importOriginal) => {
|
vi.mock('shiki-es', async (importOriginal) => {
|
||||||
const mod = await importOriginal()
|
const mod = await importOriginal()
|
||||||
return {
|
return {
|
||||||
...(mod as any),
|
...(mod as any),
|
||||||
|
|
Loading…
Reference in a new issue