chore(deps): update devdependency @nuxt/test-utils to v3.10.0 (main) (#25271)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
renovate[bot] 2024-01-17 17:58:23 +00:00 committed by GitHub
parent 8ef16a624c
commit 37e57c747a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 43 additions and 29 deletions

View File

@ -45,7 +45,7 @@
"devDependencies": { "devDependencies": {
"@codspeed/vitest-plugin": "2.3.1", "@codspeed/vitest-plugin": "2.3.1",
"@nuxt/eslint-config": "0.2.0", "@nuxt/eslint-config": "0.2.0",
"@nuxt/test-utils": "3.9.0", "@nuxt/test-utils": "3.10.0",
"@nuxt/webpack-builder": "workspace:*", "@nuxt/webpack-builder": "workspace:*",
"@types/fs-extra": "11.0.4", "@types/fs-extra": "11.0.4",
"@types/node": "20.11.5", "@types/node": "20.11.5",

View File

@ -26,8 +26,8 @@ importers:
specifier: 0.2.0 specifier: 0.2.0
version: 0.2.0(eslint@8.56.0) version: 0.2.0(eslint@8.56.0)
'@nuxt/test-utils': '@nuxt/test-utils':
specifier: 3.9.0 specifier: 3.10.0
version: 3.9.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14) version: 3.10.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14)
'@nuxt/webpack-builder': '@nuxt/webpack-builder':
specifier: workspace:* specifier: workspace:*
version: link:packages/webpack version: link:packages/webpack
@ -2034,16 +2034,17 @@ packages:
rc9: 2.1.1 rc9: 2.1.1
std-env: 3.7.0 std-env: 3.7.0
/@nuxt/test-utils@3.9.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14): /@nuxt/test-utils@3.10.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14):
resolution: {integrity: sha512-17qaU4vfFJWIaT4BJ/R6C2rIuvxaF5HaiRusXHhA/34SyiduNEhezIvIVqhWVkn33y5CNueduE0AykBEj1IgEA==} resolution: {integrity: sha512-9ZKKrccCUyZP0P9/BdTNHWwTRvIbBnrmDvqvO0dQpTiUhgDVeO1vdG40o4e4olw7sbzUP51C8uA0OkRur/zBvQ==}
engines: {node: ^14.18.0 || >=16.10.0} engines: {node: ^14.18.0 || >=16.10.0}
peerDependencies: peerDependencies:
'@cucumber/cucumber': ^10.3.1
'@jest/globals': ^29.5.0 '@jest/globals': ^29.5.0
'@testing-library/vue': ^7.0.0 || ^8.0.1 '@testing-library/vue': ^7.0.0 || ^8.0.1
'@vitest/ui': ^0.34.6 || ^1.0.0 '@vitest/ui': ^0.34.6 || ^1.0.0
'@vue/test-utils': ^2.4.2 '@vue/test-utils': ^2.4.2
h3: '*' h3: '*'
happy-dom: ^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 happy-dom: ^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0
jsdom: ^22.0.0 || ^23.0.0 jsdom: ^22.0.0 || ^23.0.0
playwright-core: ^1.34.3 playwright-core: ^1.34.3
vite: 5.0.11 vite: 5.0.11
@ -2051,6 +2052,8 @@ packages:
vue: 3.4.14 vue: 3.4.14
vue-router: ^4.0.0 vue-router: ^4.0.0
peerDependenciesMeta: peerDependenciesMeta:
'@cucumber/cucumber':
optional: true
'@jest/globals': '@jest/globals':
optional: true optional: true
'@testing-library/vue': '@testing-library/vue':
@ -2077,7 +2080,7 @@ packages:
destr: 2.0.2 destr: 2.0.2
estree-walker: 3.0.3 estree-walker: 3.0.3
execa: 8.0.1 execa: 8.0.1
fake-indexeddb: 5.0.1 fake-indexeddb: 5.0.2
get-port-please: 3.1.2 get-port-please: 3.1.2
h3: 1.10.0 h3: 1.10.0
happy-dom: 13.1.4 happy-dom: 13.1.4
@ -5094,8 +5097,8 @@ packages:
ufo: 1.3.2 ufo: 1.3.2
dev: false dev: false
/fake-indexeddb@5.0.1: /fake-indexeddb@5.0.2:
resolution: {integrity: sha512-vxybH29Owtc6khV/Usy47B1g+eKwyhFiX8nwpCC4td320jvwrKQDH6vNtcJZgUzVxmfsSIlHzLKQzT76JMCO7A==} resolution: {integrity: sha512-cB507r5T3D55DfclY01GLkninZLfU7HXV/mhVRTnTRm5k2u+fY7Fof2dBkr80p5t7G7dlA/G5dI87QiMdPpMCQ==}
engines: {node: '>=18'} engines: {node: '>=18'}
dev: true dev: true
@ -9586,8 +9589,9 @@ packages:
/vitest-environment-nuxt@1.0.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14): /vitest-environment-nuxt@1.0.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14):
resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==} resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==}
dependencies: dependencies:
'@nuxt/test-utils': 3.9.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14) '@nuxt/test-utils': 3.10.0(@vue/test-utils@2.4.3)(h3@1.10.0)(happy-dom@13.1.4)(playwright-core@1.41.0)(vite@5.0.11)(vitest@1.1.1)(vue-router@4.2.5)(vue@3.4.14)
transitivePeerDependencies: transitivePeerDependencies:
- '@cucumber/cucumber'
- '@jest/globals' - '@jest/globals'
- '@testing-library/vue' - '@testing-library/vue'
- '@vitest/ui' - '@vitest/ui'

View File

@ -1678,9 +1678,12 @@ describe.skipIf(isDev())('dynamic paths', () => {
}) })
it('should allow setting base URL and build assets directory', async () => { it('should allow setting base URL and build assets directory', async () => {
process.env.NUXT_APP_BUILD_ASSETS_DIR = '/_other/' await startServer({
process.env.NUXT_APP_BASE_URL = '/foo/' env: {
await startServer() NUXT_APP_BUILD_ASSETS_DIR: '/_other/',
NUXT_APP_BASE_URL: '/foo/',
}
})
const html = await $fetch('/foo/assets') const html = await $fetch('/foo/assets')
for (const match of html.matchAll(/(href|src)="(.*?)"|url\(([^)]*?)\)/g)) { for (const match of html.matchAll(/(href|src)="(.*?)"|url\(([^)]*?)\)/g)) {
@ -1695,9 +1698,11 @@ describe.skipIf(isDev())('dynamic paths', () => {
}) })
it('should allow setting relative baseURL', async () => { it('should allow setting relative baseURL', async () => {
delete process.env.NUXT_APP_BUILD_ASSETS_DIR await startServer({
process.env.NUXT_APP_BASE_URL = './' env: {
await startServer() NUXT_APP_BASE_URL: './'
}
})
const html = await $fetch('/assets') const html = await $fetch('/assets')
for (const match of html.matchAll(/(href|src)="(.*?)"|url\(([^)]*?)\)/g)) { for (const match of html.matchAll(/(href|src)="(.*?)"|url\(([^)]*?)\)/g)) {
@ -1713,19 +1718,25 @@ describe.skipIf(isDev())('dynamic paths', () => {
}) })
it('should use baseURL when redirecting', async () => { it('should use baseURL when redirecting', async () => {
process.env.NUXT_APP_BUILD_ASSETS_DIR = '/_other/' await startServer({
process.env.NUXT_APP_BASE_URL = '/foo/' env: {
await startServer() NUXT_APP_BUILD_ASSETS_DIR: '/_other/',
NUXT_APP_BASE_URL: '/foo/',
}
})
const { headers } = await fetch('/foo/navigate-to/', { redirect: 'manual' }) const { headers } = await fetch('/foo/navigate-to/', { redirect: 'manual' })
expect(headers.get('location')).toEqual('/foo/') expect(headers.get('location')).toEqual('/foo/')
}) })
it('should allow setting CDN URL', async () => { it('should allow setting CDN URL', async () => {
process.env.NUXT_APP_BASE_URL = '/foo/' await startServer({
process.env.NUXT_APP_CDN_URL = 'https://example.com/' env: {
process.env.NUXT_APP_BUILD_ASSETS_DIR = '/_cdn/' NUXT_APP_BASE_URL: '/foo/',
await startServer() NUXT_APP_CDN_URL: 'https://example.com/',
NUXT_APP_BUILD_ASSETS_DIR: '/_cdn/'
}
})
const html = await $fetch('/foo/assets') const html = await $fetch('/foo/assets')
for (const match of html.matchAll(/(href|src)="(.*?)"|url\(([^)]*?)\)/g)) { for (const match of html.matchAll(/(href|src)="(.*?)"|url\(([^)]*?)\)/g)) {
@ -1740,9 +1751,6 @@ describe.skipIf(isDev())('dynamic paths', () => {
}) })
it('restore server', async () => { it('restore server', async () => {
process.env.NUXT_APP_BASE_URL = undefined
process.env.NUXT_APP_CDN_URL = undefined
process.env.NUXT_APP_BUILD_ASSETS_DIR = undefined
await startServer() await startServer()
}) })
}) })
@ -2029,13 +2037,15 @@ describe('component islands', () => {
}) })
it.skipIf(isDev())('should not render an error when having a baseURL', async () => { it.skipIf(isDev())('should not render an error when having a baseURL', async () => {
process.env.NUXT_APP_BASE_URL = '/foo/' await startServer({
await startServer() env: {
NUXT_APP_BASE_URL: '/foo/'
}
})
const result = await fetch('/foo/islands') const result = await fetch('/foo/islands')
expect(result.status).toBe(200) expect(result.status).toBe(200)
process.env.NUXT_APP_BASE_URL = undefined
await startServer() await startServer()
}) })
}) })