From 2c41fd6c11cc04362d38d3970b6798abe1bcb83c Mon Sep 17 00:00:00 2001 From: Jessica Sachs Date: Mon, 5 May 2025 13:50:15 -0500 Subject: [PATCH 1/4] test: adding tests for Nuxt Content prose components and useRuntimeConfig --- .../content/components/ComponentWithProse.vue | 11 + .../ComponentWithUseRuntimeConfig.vue | 8 + examples/content/components/SomeComponent.vue | 3 + examples/content/package.json | 13 +- examples/content/tests/browser/index.spec.ts | 26 ++ examples/content/tests/browser/mount.spec.ts | 31 ++ examples/content/tests/mount.spec.ts | 33 ++ examples/content/vitest.config.ts | 17 +- pnpm-lock.yaml | 404 +++++++++++++++++- 9 files changed, 527 insertions(+), 19 deletions(-) create mode 100644 examples/content/components/ComponentWithProse.vue create mode 100644 examples/content/components/ComponentWithUseRuntimeConfig.vue create mode 100644 examples/content/components/SomeComponent.vue create mode 100644 examples/content/tests/browser/index.spec.ts create mode 100644 examples/content/tests/browser/mount.spec.ts create mode 100644 examples/content/tests/mount.spec.ts diff --git a/examples/content/components/ComponentWithProse.vue b/examples/content/components/ComponentWithProse.vue new file mode 100644 index 000000000..4aa7397d2 --- /dev/null +++ b/examples/content/components/ComponentWithProse.vue @@ -0,0 +1,11 @@ + + + diff --git a/examples/content/components/ComponentWithUseRuntimeConfig.vue b/examples/content/components/ComponentWithUseRuntimeConfig.vue new file mode 100644 index 000000000..d746f0e74 --- /dev/null +++ b/examples/content/components/ComponentWithUseRuntimeConfig.vue @@ -0,0 +1,8 @@ + + + diff --git a/examples/content/components/SomeComponent.vue b/examples/content/components/SomeComponent.vue new file mode 100644 index 000000000..18e190625 --- /dev/null +++ b/examples/content/components/SomeComponent.vue @@ -0,0 +1,3 @@ + diff --git a/examples/content/package.json b/examples/content/package.json index 42947bd6f..11def1d41 100644 --- a/examples/content/package.json +++ b/examples/content/package.json @@ -1,4 +1,5 @@ { + "name": "example-app-vitest-content", "private": true, "type": "module", "scripts": { @@ -6,13 +7,17 @@ "dev": "nuxt dev", "dev:prepare": "nuxt prepare", "generate": "nuxt generate", - "test": "vitest run", + "test": "pnpm test:nuxt-environment && pnpm test:browser", + "test:browser": "VITEST_BROWSER_ENABLED=true vitest run", + "test:nuxt-environment": "vitest run", "preview": "nuxt preview" }, "devDependencies": { - "@nuxt/content": "3.5.1", + "@nuxt/content": "^3.5.1", "@nuxt/test-utils": "latest", - "nuxt": "3.17.2", - "vitest": "3.1.2" + "nuxt": "3.17.1", + "vitest": "3.1.2", + "@vitest/browser": "3.1.2", + "vitest-browser-vue": "^0.2.0" } } diff --git a/examples/content/tests/browser/index.spec.ts b/examples/content/tests/browser/index.spec.ts new file mode 100644 index 000000000..286ef71fc --- /dev/null +++ b/examples/content/tests/browser/index.spec.ts @@ -0,0 +1,26 @@ +import { describe, expect, it } from 'vitest' +import { mockNuxtImport, mountSuspended } from '@nuxt/test-utils/runtime' +import { render } from 'vitest-browser-vue' +import App from '~/app.vue' + +// Example usage: queryCollection(pages).path('/').first() +mockNuxtImport('queryCollection', () => (_id: string) => ({ + path: (_path: string) => ({ + first: () => ({ + title: 'My page', + }), + }), +})) + +describe('App', () => { + it.skip('works with mountSuspended', async () => { + const component = await mountSuspended(App) + expect(component.html()).toMatchInlineSnapshot(`"
Index page
title: My page
"`) + }) + + it.skip('works with vitest-browser-vue', async () => { + const { getByText } = await render(App) + expect(getByText('Index page')).toBeInTheDocument() + expect(getByText('title: My page')).toBeInTheDocument() + }) +}) diff --git a/examples/content/tests/browser/mount.spec.ts b/examples/content/tests/browser/mount.spec.ts new file mode 100644 index 000000000..fe2815e8a --- /dev/null +++ b/examples/content/tests/browser/mount.spec.ts @@ -0,0 +1,31 @@ +import { expect, it } from 'vitest' +import { render } from 'vitest-browser-vue' +import { SomeComponent, ProseH3, ProseP, ComponentWithUseRuntimeConfig, ComponentWithProse } from '#components' + +it('should render any component', async () => { + const { getByText } = await render(SomeComponent) + expect(getByText('This is an auto-imported component')).toBeInTheDocument() +}) + +it('should render a ProseP component', async () => { + const { getByText } = await render(ProseP, { slots: { default: 'This is a Prose Paragraph component' } }) + expect(getByText('This is a Prose Paragraph component')).toBeInTheDocument() +}) + +it.skip('should render a ProseH3 component', async () => { + const { getByText } = await render(ProseH3, { slots: { default: 'This is a Prose heading component' } }) + expect(getByText('This is a Prose heading component')).toBeInTheDocument() +}) + +it.skip('should render a ComponentWithUseRuntimeConfig component', async () => { + const { getByText } = await render(ComponentWithUseRuntimeConfig) + expect(getByText('Use Runtime Config')).toBeInTheDocument() +}) + +it.skip('should render a ComponentWithProse component', async () => { + const headingText = 'Text rendered within ProseH3' + const paragraphText = 'Text rendered within p' + const { getByText } = await render(ComponentWithProse, { props: { heading: headingText, content: paragraphText } }) + expect(getByText(headingText)).toBeInTheDocument() + expect(getByText(paragraphText)).toBeInTheDocument() +}) diff --git a/examples/content/tests/mount.spec.ts b/examples/content/tests/mount.spec.ts new file mode 100644 index 000000000..c7bc9d0de --- /dev/null +++ b/examples/content/tests/mount.spec.ts @@ -0,0 +1,33 @@ +import { expect, it } from 'vitest' +import { mountSuspended } from '@nuxt/test-utils/runtime' +import { ComponentWithUseRuntimeConfig, ComponentWithProse, SomeComponent, ProseH3, ProseP } from '#components' + +it('should render any component', async () => { + const component = await mountSuspended(SomeComponent) + expect(component.html()).toContain('This is an auto-imported component') +}) + +it('should render a ProseH3 component', async () => { + const headingText = 'This is a Prose Heading component' + const component = await mountSuspended(ProseH3, { slots: { default: headingText } }) + expect(component.html()).toContain(headingText) +}) + +it('should render a ProseP component', async () => { + const paragraphText = 'This is a Prose Paragraph component' + const component = await mountSuspended(ProseP, { slots: { default: paragraphText } }) + expect(component.html()).toContain(paragraphText) +}) + +it('should render a ComponentWithUseRuntimeConfig component', async () => { + const component = await mountSuspended(ComponentWithUseRuntimeConfig) + expect(component.html()).toContain('Use Runtime Config') +}) + +it('should render a ComponentWithProse component', async () => { + const headingText = 'Text rendered within ProseH3' + const paragraphText = 'Text rendered within p' + const component = await mountSuspended(ComponentWithProse, { props: { heading: headingText, content: paragraphText } }) + expect(component.html()).toContain(headingText) + expect(component.html()).toContain(paragraphText) +}) diff --git a/examples/content/vitest.config.ts b/examples/content/vitest.config.ts index 6410ffd85..25e6d2cfc 100644 --- a/examples/content/vitest.config.ts +++ b/examples/content/vitest.config.ts @@ -1,7 +1,22 @@ import { defineVitestConfig } from '@nuxt/test-utils/config' +const browserConfig = { + browser: { + enabled: true, + provider: 'playwright', + instances: [{ browser: 'chromium' }], + }, + include: ['tests/browser/**/*.spec.ts'], + setupFiles: ['vitest-browser-vue'], +} + +const defaultConfig = { + environment: 'nuxt', + exclude: ['tests/browser/**/*.spec.ts', 'node_modules/**', 'dist/**', '.data/**'], +} + export default defineVitestConfig({ test: { - environment: 'nuxt', + ...(process.env.VITEST_BROWSER_ENABLED === 'true' ? browserConfig : defaultConfig), }, }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0ca9f8fd..6874a36a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -179,7 +179,7 @@ importers: version: 5.8.3 unbuild: specifier: latest - version: 3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + version: 3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) unimport: specifier: 5.0.1 version: 5.0.1 @@ -248,7 +248,7 @@ importers: version: 1.52.0 ts-jest: specifier: 29.3.2 - version: 29.3.2(@babel/core@7.27.1)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.27.1))(esbuild@0.25.3)(jest@29.7.0(@types/node@22.15.3)(ts-node@10.9.2(@types/node@22.15.3)(typescript@5.8.3)))(typescript@5.8.3) + version: 29.3.2(@babel/core@7.27.1)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.27.1))(jest@29.7.0(@types/node@22.15.3)(ts-node@10.9.2(@types/node@22.15.3)(typescript@5.8.3)))(typescript@5.8.3) ts-node: specifier: 10.9.2 version: 10.9.2(@types/node@22.15.3)(typescript@5.8.3) @@ -319,7 +319,7 @@ importers: version: 3.1.2(@types/debug@4.1.12)(@types/node@22.15.3)(@vitest/browser@3.1.2)(happy-dom@17.4.6)(jiti@2.4.2)(jsdom@26.1.0)(terser@5.39.0)(yaml@2.7.1) vitest-browser-vue: specifier: 0.2.0 - version: 0.2.0(@vitest/browser@3.1.2)(vitest@3.1.2)(vue@3.5.13(typescript@5.8.3)) + version: 0.2.0(@vitest/browser@3.1.2(playwright@1.52.0)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vitest@3.1.2))(vitest@3.1.2(@types/debug@4.1.12)(@types/node@22.15.3)(@vitest/browser@3.1.2)(happy-dom@17.4.6)(jiti@2.4.2)(jsdom@26.1.0)(terser@5.39.0)(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)) examples/app-vitest-full: dependencies: @@ -358,17 +358,23 @@ importers: examples/content: devDependencies: '@nuxt/content': - specifier: 3.5.1 + specifier: ^3.5.1 version: 3.5.1(magicast@0.3.5)(typescript@5.8.3) '@nuxt/test-utils': specifier: workspace:* version: link:../.. + '@vitest/browser': + specifier: 3.1.2 + version: 3.1.2(playwright@1.52.0)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vitest@3.1.2) nuxt: - specifier: 3.17.2 - version: 3.17.2(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) + specifier: 3.17.1 + version: 3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) vitest: specifier: 3.1.2 version: 3.1.2(@types/debug@4.1.12)(@types/node@22.15.3)(@vitest/browser@3.1.2)(happy-dom@17.4.6)(jiti@2.4.2)(jsdom@26.1.0)(terser@5.39.0)(yaml@2.7.1) + vitest-browser-vue: + specifier: ^0.2.0 + version: 0.2.0(@vitest/browser@3.1.2(playwright@1.52.0)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vitest@3.1.2))(vitest@3.1.2(@types/debug@4.1.12)(@types/node@22.15.3)(@vitest/browser@3.1.2)(happy-dom@17.4.6)(jiti@2.4.2)(jsdom@26.1.0)(terser@5.39.0)(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)) examples/i18n: devDependencies: @@ -1525,6 +1531,12 @@ packages: engines: {node: '>=18.12.0'} hasBin: true + '@nuxt/vite-builder@3.17.1': + resolution: {integrity: sha512-gtayw5+6Wx94FLUyJ+TAR27iLd7PqXYy1c9Yefam+wVhllYr9bpWLmM1pOQisujdm24OYsAyQ1AiBBp4voM9pw==} + engines: {node: ^18.12.0 || ^20.9.0 || >=22.0.0} + peerDependencies: + vue: ^3.5.13 + '@nuxt/vite-builder@3.17.2': resolution: {integrity: sha512-TfKuh7MPjIhlObLNcoNTRk6/s3L6b6Z7hPuJcnrAeh/a9JGH6fmRsKztW5D5mFEN3H3K6viXche8q2ftQEk7CQ==} engines: {node: ^18.12.0 || ^20.9.0 || >=22.0.0} @@ -1603,6 +1615,12 @@ packages: cpu: [arm64] os: [darwin] + '@oxc-parser/binding-darwin-arm64@0.67.0': + resolution: {integrity: sha512-AWLaNH7emKLCpFzHjcYr0wqE8HRpK/5vDtIAUz0BEZKsYxM/Nd8UpgRg2ZlNlEiPDMgAhpRLBHqjf9Xiv/IMhw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [darwin] + '@oxc-parser/binding-darwin-arm64@0.68.1': resolution: {integrity: sha512-Y5FBQyPCLsldAZYEd+oZcUboXwpcLf42Lakx3EYtiYDbuK9M3IqBXMGxdM07P4PfGQrKYn6/cC8xAqkVHnbWPw==} engines: {node: '>=14.0.0'} @@ -1615,6 +1633,12 @@ packages: cpu: [x64] os: [darwin] + '@oxc-parser/binding-darwin-x64@0.67.0': + resolution: {integrity: sha512-1wYbIWpXZ8V9jUx309LyCyK5cVqbTC3qawZ293qfGSmRTsn0F7OenRK7ERbRx7HuvWw2zgWIbWieUpO487nloQ==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [darwin] + '@oxc-parser/binding-darwin-x64@0.68.1': resolution: {integrity: sha512-nkiXpEKl8UOhNPdOY5hA2PFq9vQc9xVs7NFu2vUD9eH/j5uYfv8GnNaKkd+v6iH93JwEBxuK5gfwxiiCEMZRyg==} engines: {node: '>=14.0.0'} @@ -1627,6 +1651,12 @@ packages: cpu: [arm] os: [linux] + '@oxc-parser/binding-linux-arm-gnueabihf@0.67.0': + resolution: {integrity: sha512-Dry9zRk/LOvPvb/GDNkgtQZ2cJKBIc6alQOwjvpji/OdJFjqawTPJoHB0F7nd6NfRYle0tVXCFYHtGUxv2WNxQ==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + '@oxc-parser/binding-linux-arm-gnueabihf@0.68.1': resolution: {integrity: sha512-38ejU7GP9sOILA82xcF9laJfCiwZWKp96+jeLQMkebZCfQqaGtld/hbJ2yvZ2laLQS3ISRasDemZEJuk/yb6Uw==} engines: {node: '>=14.0.0'} @@ -1639,6 +1669,12 @@ packages: cpu: [arm64] os: [linux] + '@oxc-parser/binding-linux-arm64-gnu@0.67.0': + resolution: {integrity: sha512-Bk+Fqe2J9OvIPs+FK/avTA1YL0tAQD3FgiHe0gq7HLaiuwjw8FAzi2KldyataNmIekfiSH6e+xrt2FugwDXFlw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + '@oxc-parser/binding-linux-arm64-gnu@0.68.1': resolution: {integrity: sha512-qJK9nzelQqMSLdZbWUpQ8rfSAiH5pgB7rR5OC3/DLbmvhnD+vvuet/67cNzYnGW4pcTzsWzcRTSkmH/b6VcDCA==} engines: {node: '>=14.0.0'} @@ -1651,6 +1687,12 @@ packages: cpu: [arm64] os: [linux] + '@oxc-parser/binding-linux-arm64-musl@0.67.0': + resolution: {integrity: sha512-zBMJOkxgcR7Fgmx6hFJQycgWCl9fhS/oW5n1Qix+cbKFe2HfgtOhI+pESEqHc642WX/93BJ1m4OMmZJl35VYgg==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + '@oxc-parser/binding-linux-arm64-musl@0.68.1': resolution: {integrity: sha512-Fd/yP458VG5wit7uku9iEXzl+qfNTuYTVaxfo6EFsBokOf5Xs6Y4LFeKAjtZfb/eCCsc7UY75sAjDyOGnPnNWg==} engines: {node: '>=14.0.0'} @@ -1663,6 +1705,12 @@ packages: cpu: [x64] os: [linux] + '@oxc-parser/binding-linux-x64-gnu@0.67.0': + resolution: {integrity: sha512-/zHUMrL24fGMTEr1iHE63f8NYa2IvxfIeNo24H1ofxhtr0A2KmcgOCcEUIypFjMxD5EY5kpQ2t0Nf42o+d4LOA==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + '@oxc-parser/binding-linux-x64-gnu@0.68.1': resolution: {integrity: sha512-VH7q2GXcFKiecD2eNloB4o8Ho6dUeB92O9bS/GV0+Q/yZdu/l0zWXetaszaCviPHCf8YBQzpOHxzsqgVu0RYqQ==} engines: {node: '>=14.0.0'} @@ -1675,6 +1723,12 @@ packages: cpu: [x64] os: [linux] + '@oxc-parser/binding-linux-x64-musl@0.67.0': + resolution: {integrity: sha512-+JsqPXn2Op35lPEMbTyHonPHzTyvCpfaD522M5nziDt41DAOe3BMMcGgRfJXl6Dv/r8f4iZuHL3YSU8wF+elcQ==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + '@oxc-parser/binding-linux-x64-musl@0.68.1': resolution: {integrity: sha512-35drWZMNp31JL0fjAK10pOfE20xVQXa7/o1NGqSGiZ2Huf4c0OK0TOggw+F7IEwPXpi5qOL6C+apY1zod8299A==} engines: {node: '>=14.0.0'} @@ -1686,6 +1740,11 @@ packages: engines: {node: '>=14.0.0'} cpu: [wasm32] + '@oxc-parser/binding-wasm32-wasi@0.67.0': + resolution: {integrity: sha512-jAugJhwJvCSurHEoicL0Gp9k1XVEnrTpQ3l1YBro/jfJ5uKSpfMBPPpNZBW04gumD08RDk32nqcPbk+BezvTaw==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + '@oxc-parser/binding-wasm32-wasi@0.68.1': resolution: {integrity: sha512-MkTZeTYEqZm18b1TaLSEuo0MxeAv8MNaKSjEz0GgldV3+lNowMbTLusW/QEgYczx/J9/9Y/oYj36Rja7qmfe1Q==} engines: {node: '>=14.0.0'} @@ -1697,6 +1756,12 @@ packages: cpu: [arm64] os: [win32] + '@oxc-parser/binding-win32-arm64-msvc@0.67.0': + resolution: {integrity: sha512-JZparqb773ahTQoC3/e6LazRqOLhlyzNhllK73xvz/wixkYueivHxJrdYtFy4ss2VDns4Dg0MZ/zRhkBJy1enA==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [win32] + '@oxc-parser/binding-win32-arm64-msvc@0.68.1': resolution: {integrity: sha512-27Mrz18+4l7ZzM5FYSCSXDOR+CfZPkxkDz85jADpOTO1lUxH+wkTZiTBAOYuyoyRYbjQOTiZzkYljXtDgNeeLg==} engines: {node: '>=14.0.0'} @@ -1709,6 +1774,12 @@ packages: cpu: [x64] os: [win32] + '@oxc-parser/binding-win32-x64-msvc@0.67.0': + resolution: {integrity: sha512-jP5BkhItHRg0J/JfTp1L8D57VMyFgKrXeqH8h8CS04WL1V/ZbBUSr6FnK8gfy7eeKQZg7K7ZeJRTEEcW6i3nwQ==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [win32] + '@oxc-parser/binding-win32-x64-msvc@0.68.1': resolution: {integrity: sha512-TUsmnbG2ysQ5bUSfWdDliDMXqu7KwAxtIkAtO4mzHKgEu5avVbqk26BhSJsEC9JXqWSo13yTYBmMtC498K3GzQ==} engines: {node: '>=14.0.0'} @@ -1725,6 +1796,9 @@ packages: '@oxc-project/types@0.61.2': resolution: {integrity: sha512-rfuwJwvwn9MRthHNXlSo9Eka/u7gC0MhnWAoX3BhE1+rwPOl22nq0K0Y997Hof0tHCOuD7H3/Z8HTfCVhB4c5Q==} + '@oxc-project/types@0.67.0': + resolution: {integrity: sha512-AI7inoYvnVro7b8S2Z+Fxi295xQvNKLP1CM/xzx5il4R3aiGgnFt9qiXaRo9vIutataX8AjHcaPnOsjdcItU0w==} + '@oxc-project/types@0.68.1': resolution: {integrity: sha512-Q/H52+HXPPxuIHwQnVkEM8GebLnNcokkI4zQQdbxLIZdfxMGhAm9+gEqsMku3t95trN/1titHUmCM9NxbKaE2g==} @@ -5633,6 +5707,19 @@ packages: resolution: {integrity: sha512-tF+BUToseiljrQXEg/zbqDZvr/2RyEGKzj2PzVF0pR9iHTQPEkQ+8Yt91Qo3mU3crttxTP39GJEgN5npeFZ+1w==} hasBin: true + nuxt@3.17.1: + resolution: {integrity: sha512-RFUamVkXw86Kn9l3jeHLNnctsNf5Dp5pQY2bal9uZFiq1Wc9VyMdzou70DbMUjDe1yAoUbD6qz65FOEq+abesQ==} + engines: {node: ^18.12.0 || ^20.9.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@parcel/watcher': ^2.1.0 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + peerDependenciesMeta: + '@parcel/watcher': + optional: true + '@types/node': + optional: true + nuxt@3.17.2: resolution: {integrity: sha512-zPEGeGlHoMCFf+Y9I7iEZKhdfsRq0Zf2qE8wEEcjP9T6omzm776h9KVzoj3+qPL1v0rGzSyCFslFtxk+Ey6neA==} engines: {node: ^18.12.0 || ^20.9.0 || >=22.0.0} @@ -5732,6 +5819,10 @@ packages: resolution: {integrity: sha512-ZJnAP7VLQhqqnfku7+gssTwmbQyfbZ552Vly4O2BMHkvDwfwLlPtAIYjMq57Lcj5HLmopI0oZlk7xTSML/YsZA==} engines: {node: '>=14.0.0'} + oxc-parser@0.67.0: + resolution: {integrity: sha512-07arJoEJQopwEQ3gDu220l9J7i4XIyOWUGhfRalOX6gKEEYZIaqts5zJvFNtwNSjCc2yHMYscAdHNAB8nRazjA==} + engines: {node: '>=14.0.0'} + oxc-parser@0.68.1: resolution: {integrity: sha512-dHwz+xP9r1GTvqyywfws4j7EEP/OaeTpHEjTcvIjViB/R2IdUn52AnoUFNjpw8yRU52XVE76rOA4IEj7I0EjnA==} engines: {node: '>=14.0.0'} @@ -9141,6 +9232,16 @@ snapshots: '@nuxt/devalue@2.0.2': {} + '@nuxt/devtools-kit@1.0.8(magicast@0.3.5)(nuxt@3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))': + dependencies: + '@nuxt/kit': 3.17.2(magicast@0.3.5) + '@nuxt/schema': 3.17.2 + execa: 7.2.0 + nuxt: 3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) + vite: 6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1) + transitivePeerDependencies: + - magicast + '@nuxt/devtools-kit@1.0.8(magicast@0.3.5)(nuxt@3.17.2(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))': dependencies: '@nuxt/kit': 3.17.2(magicast@0.3.5) @@ -9173,6 +9274,51 @@ snapshots: rc9: 2.1.2 semver: 7.7.1 + '@nuxt/devtools@1.0.8(nuxt@3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(rollup@4.40.1)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))': + dependencies: + '@antfu/utils': 0.7.10 + '@nuxt/devtools-kit': 1.0.8(magicast@0.3.5)(nuxt@3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1)) + '@nuxt/devtools-wizard': 1.0.8 + '@nuxt/kit': 3.17.2(magicast@0.3.5) + birpc: 0.2.19 + consola: 3.4.2 + destr: 2.0.5 + error-stack-parser-es: 0.1.5 + execa: 7.2.0 + fast-glob: 3.3.3 + flatted: 3.3.3 + get-port-please: 3.1.2 + hookable: 5.5.3 + image-meta: 0.2.1 + is-installed-globally: 1.0.0 + launch-editor: 2.10.0 + local-pkg: 0.5.1 + magicast: 0.3.5 + nuxt: 3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1) + nypm: 0.3.12 + ohash: 1.1.6 + pacote: 17.0.7 + pathe: 1.1.2 + perfect-debounce: 1.0.0 + pkg-types: 1.3.1 + rc9: 2.1.2 + scule: 1.3.0 + semver: 7.7.1 + simple-git: 3.27.0 + sirv: 2.0.4 + unimport: 3.14.6(rollup@4.40.1) + vite: 6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1) + vite-plugin-inspect: 0.8.9(@nuxt/kit@3.17.2(magicast@0.3.5))(rollup@4.40.1)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1)) + vite-plugin-vue-inspector: 4.0.2(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1)) + which: 3.0.1 + ws: 8.18.2 + transitivePeerDependencies: + - bluebird + - bufferutil + - rollup + - supports-color + - utf-8-validate + '@nuxt/devtools@1.0.8(nuxt@3.17.2(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(rollup@4.40.1)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))': dependencies: '@antfu/utils': 0.7.10 @@ -9290,13 +9436,13 @@ snapshots: defu: 6.1.4 jiti: 2.4.2 magic-regexp: 0.8.0 - mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) mlly: 1.7.4 pathe: 2.0.3 pkg-types: 2.1.0 tsconfck: 3.1.5(typescript@5.8.3) typescript: 5.8.3 - unbuild: 3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + unbuild: 3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) vue-sfc-transformer: 0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)) transitivePeerDependencies: - '@vue/compiler-core' @@ -9330,6 +9476,67 @@ snapshots: transitivePeerDependencies: - magicast + '@nuxt/vite-builder@3.17.1(@types/node@22.15.3)(eslint@9.26.0(jiti@2.4.2))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1)': + dependencies: + '@nuxt/kit': 3.17.2(magicast@0.3.5) + '@rollup/plugin-replace': 6.0.2(rollup@4.40.1) + '@vitejs/plugin-vue': 5.2.3(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)) + '@vitejs/plugin-vue-jsx': 4.1.2(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)) + autoprefixer: 10.4.21(postcss@8.5.3) + consola: 3.4.2 + cssnano: 7.0.6(postcss@8.5.3) + defu: 6.1.4 + esbuild: 0.25.3 + escape-string-regexp: 5.0.0 + exsolve: 1.0.5 + externality: 1.0.2 + get-port-please: 3.1.2 + h3: 1.15.3 + jiti: 2.4.2 + knitwork: 1.2.0 + magic-string: 0.30.17 + mlly: 1.7.4 + mocked-exports: 0.1.1 + ohash: 2.0.11 + pathe: 2.0.3 + perfect-debounce: 1.0.0 + pkg-types: 2.1.0 + postcss: 8.5.3 + rollup-plugin-visualizer: 5.14.0(rollup@4.40.1) + std-env: 3.9.0 + ufo: 1.6.1 + unenv: 2.0.0-rc.15 + unplugin: 2.3.2 + vite: 6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1) + vite-node: 3.1.2(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1) + vite-plugin-checker: 0.9.2(eslint@9.26.0(jiti@2.4.2))(optionator@0.9.4)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3)) + vue: 3.5.13(typescript@5.8.3) + vue-bundle-renderer: 2.1.1 + transitivePeerDependencies: + - '@biomejs/biome' + - '@types/node' + - eslint + - less + - lightningcss + - magicast + - meow + - optionator + - rolldown + - rollup + - sass + - sass-embedded + - stylelint + - stylus + - sugarss + - supports-color + - terser + - tsx + - typescript + - vls + - vti + - vue-tsc + - yaml + '@nuxt/vite-builder@3.17.2(@types/node@22.15.3)(eslint@9.26.0(jiti@2.4.2))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1)': dependencies: '@nuxt/kit': 3.17.2(magicast@0.3.5) @@ -9552,42 +9759,63 @@ snapshots: '@oxc-parser/binding-darwin-arm64@0.61.2': optional: true + '@oxc-parser/binding-darwin-arm64@0.67.0': + optional: true + '@oxc-parser/binding-darwin-arm64@0.68.1': optional: true '@oxc-parser/binding-darwin-x64@0.61.2': optional: true + '@oxc-parser/binding-darwin-x64@0.67.0': + optional: true + '@oxc-parser/binding-darwin-x64@0.68.1': optional: true '@oxc-parser/binding-linux-arm-gnueabihf@0.61.2': optional: true + '@oxc-parser/binding-linux-arm-gnueabihf@0.67.0': + optional: true + '@oxc-parser/binding-linux-arm-gnueabihf@0.68.1': optional: true '@oxc-parser/binding-linux-arm64-gnu@0.61.2': optional: true + '@oxc-parser/binding-linux-arm64-gnu@0.67.0': + optional: true + '@oxc-parser/binding-linux-arm64-gnu@0.68.1': optional: true '@oxc-parser/binding-linux-arm64-musl@0.61.2': optional: true + '@oxc-parser/binding-linux-arm64-musl@0.67.0': + optional: true + '@oxc-parser/binding-linux-arm64-musl@0.68.1': optional: true '@oxc-parser/binding-linux-x64-gnu@0.61.2': optional: true + '@oxc-parser/binding-linux-x64-gnu@0.67.0': + optional: true + '@oxc-parser/binding-linux-x64-gnu@0.68.1': optional: true '@oxc-parser/binding-linux-x64-musl@0.61.2': optional: true + '@oxc-parser/binding-linux-x64-musl@0.67.0': + optional: true + '@oxc-parser/binding-linux-x64-musl@0.68.1': optional: true @@ -9596,6 +9824,11 @@ snapshots: '@napi-rs/wasm-runtime': 0.2.9 optional: true + '@oxc-parser/binding-wasm32-wasi@0.67.0': + dependencies: + '@napi-rs/wasm-runtime': 0.2.9 + optional: true + '@oxc-parser/binding-wasm32-wasi@0.68.1': dependencies: '@napi-rs/wasm-runtime': 0.2.9 @@ -9604,12 +9837,18 @@ snapshots: '@oxc-parser/binding-win32-arm64-msvc@0.61.2': optional: true + '@oxc-parser/binding-win32-arm64-msvc@0.67.0': + optional: true + '@oxc-parser/binding-win32-arm64-msvc@0.68.1': optional: true '@oxc-parser/binding-win32-x64-msvc@0.61.2': optional: true + '@oxc-parser/binding-win32-x64-msvc@0.67.0': + optional: true + '@oxc-parser/binding-win32-x64-msvc@0.68.1': optional: true @@ -9621,6 +9860,8 @@ snapshots: '@oxc-project/types@0.61.2': {} + '@oxc-project/types@0.67.0': {} + '@oxc-project/types@0.68.1': {} '@parcel/watcher-android-arm64@2.5.1': @@ -14003,7 +14244,7 @@ snapshots: mkdirp@3.0.1: {} - mkdist@2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): + mkdist@2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): dependencies: autoprefixer: 10.4.21(postcss@8.5.3) citty: 0.1.6 @@ -14344,6 +14585,127 @@ snapshots: transitivePeerDependencies: - magicast + nuxt@3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1): + dependencies: + '@nuxt/cli': 3.25.0(magicast@0.3.5) + '@nuxt/devalue': 2.0.2 + '@nuxt/devtools': 1.0.8(nuxt@3.17.1(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1))(rollup@4.40.1)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1)) + '@nuxt/kit': 3.17.2(magicast@0.3.5) + '@nuxt/schema': 3.17.2 + '@nuxt/telemetry': 2.6.6(magicast@0.3.5) + '@nuxt/vite-builder': 3.17.1(@types/node@22.15.3)(eslint@9.26.0(jiti@2.4.2))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yaml@2.7.1) + '@unhead/vue': 2.0.8(vue@3.5.13(typescript@5.8.3)) + '@vue/shared': 3.5.13 + c12: 3.0.3(magicast@0.3.5) + chokidar: 4.0.3 + compatx: 0.2.0 + consola: 3.4.2 + cookie-es: 2.0.0 + defu: 6.1.4 + destr: 2.0.5 + devalue: 5.1.1 + errx: 0.1.0 + esbuild: 0.25.3 + escape-string-regexp: 5.0.0 + estree-walker: 3.0.3 + exsolve: 1.0.5 + globby: 14.1.0 + h3: 1.15.3 + hookable: 5.5.3 + ignore: 7.0.4 + impound: 1.0.0 + jiti: 2.4.2 + klona: 2.0.6 + knitwork: 1.2.0 + magic-string: 0.30.17 + mlly: 1.7.4 + mocked-exports: 0.1.1 + nanotar: 0.2.0 + nitropack: 2.11.11(better-sqlite3@11.9.1)(encoding@0.1.13)(idb-keyval@6.2.1) + nypm: 0.6.0 + ofetch: 1.4.1 + ohash: 2.0.11 + on-change: 5.0.1 + oxc-parser: 0.67.0 + pathe: 2.0.3 + perfect-debounce: 1.0.0 + pkg-types: 2.1.0 + radix3: 1.1.2 + scule: 1.3.0 + semver: 7.7.1 + std-env: 3.9.0 + strip-literal: 3.0.0 + tinyglobby: 0.2.13 + ufo: 1.6.1 + ultrahtml: 1.6.0 + uncrypto: 0.1.3 + unctx: 2.4.1 + unimport: 5.0.1 + unplugin: 2.3.2 + unplugin-vue-router: 0.12.0(vue-router@4.5.1(vue@3.5.13(typescript@5.8.3)))(vue@3.5.13(typescript@5.8.3)) + unstorage: 1.16.0(db0@0.3.2(better-sqlite3@11.9.1))(idb-keyval@6.2.1)(ioredis@5.6.1) + untyped: 2.0.0 + vue: 3.5.13(typescript@5.8.3) + vue-bundle-renderer: 2.1.1 + vue-devtools-stub: 0.1.0 + vue-router: 4.5.1(vue@3.5.13(typescript@5.8.3)) + optionalDependencies: + '@parcel/watcher': 2.5.1 + '@types/node': 22.15.3 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@biomejs/biome' + - '@capacitor/preferences' + - '@deno/kv' + - '@electric-sql/pglite' + - '@libsql/client' + - '@netlify/blobs' + - '@planetscale/database' + - '@upstash/redis' + - '@vercel/blob' + - '@vercel/kv' + - aws4fetch + - better-sqlite3 + - bluebird + - bufferutil + - db0 + - drizzle-orm + - encoding + - eslint + - idb-keyval + - ioredis + - less + - lightningcss + - magicast + - meow + - mysql2 + - optionator + - rolldown + - rollup + - sass + - sass-embedded + - sqlite3 + - stylelint + - stylus + - sugarss + - supports-color + - terser + - tsx + - typescript + - uploadthing + - utf-8-validate + - vite + - vls + - vti + - vue-tsc + - xml2js + - yaml + nuxt@3.17.2(@parcel/watcher@2.5.1)(@types/node@22.15.3)(better-sqlite3@11.9.1)(db0@0.3.2(better-sqlite3@11.9.1))(encoding@0.1.13)(eslint@9.26.0(jiti@2.4.2))(idb-keyval@6.2.1)(ioredis@5.6.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.40.1)(terser@5.39.0)(typescript@5.8.3)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vue-tsc@2.2.10(typescript@5.8.3))(yaml@2.7.1): dependencies: '@nuxt/cli': 3.25.0(magicast@0.3.5) @@ -14581,6 +14943,21 @@ snapshots: '@oxc-parser/binding-win32-arm64-msvc': 0.61.2 '@oxc-parser/binding-win32-x64-msvc': 0.61.2 + oxc-parser@0.67.0: + dependencies: + '@oxc-project/types': 0.67.0 + optionalDependencies: + '@oxc-parser/binding-darwin-arm64': 0.67.0 + '@oxc-parser/binding-darwin-x64': 0.67.0 + '@oxc-parser/binding-linux-arm-gnueabihf': 0.67.0 + '@oxc-parser/binding-linux-arm64-gnu': 0.67.0 + '@oxc-parser/binding-linux-arm64-musl': 0.67.0 + '@oxc-parser/binding-linux-x64-gnu': 0.67.0 + '@oxc-parser/binding-linux-x64-musl': 0.67.0 + '@oxc-parser/binding-wasm32-wasi': 0.67.0 + '@oxc-parser/binding-win32-arm64-msvc': 0.67.0 + '@oxc-parser/binding-win32-x64-msvc': 0.67.0 + oxc-parser@0.68.1: dependencies: '@oxc-project/types': 0.68.1 @@ -16018,7 +16395,7 @@ snapshots: dependencies: typescript: 5.8.3 - ts-jest@29.3.2(@babel/core@7.27.1)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.27.1))(esbuild@0.25.3)(jest@29.7.0(@types/node@22.15.3)(ts-node@10.9.2(@types/node@22.15.3)(typescript@5.8.3)))(typescript@5.8.3): + ts-jest@29.3.2(@babel/core@7.27.1)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.27.1))(jest@29.7.0(@types/node@22.15.3)(ts-node@10.9.2(@types/node@22.15.3)(typescript@5.8.3)))(typescript@5.8.3): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 @@ -16037,7 +16414,6 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 babel-jest: 29.7.0(@babel/core@7.27.1) - esbuild: 0.25.3 ts-node@10.9.2(@types/node@22.15.3)(typescript@5.8.3): dependencies: @@ -16110,7 +16486,7 @@ snapshots: ultrahtml@1.6.0: {} - unbuild@3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): + unbuild@3.5.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)): dependencies: '@rollup/plugin-alias': 5.1.1(rollup@4.40.1) '@rollup/plugin-commonjs': 28.0.3(rollup@4.40.1) @@ -16126,7 +16502,7 @@ snapshots: hookable: 5.5.3 jiti: 2.4.2 magic-string: 0.30.17 - mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(@vue/compiler-core@3.5.13)(esbuild@0.25.3)(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) + mkdist: 2.3.0(typescript@5.8.3)(vue-sfc-transformer@0.1.14(vue@3.5.13(typescript@5.8.3)))(vue-tsc@2.2.10(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3)) mlly: 1.7.4 pathe: 2.0.3 pkg-types: 2.1.0 @@ -16522,7 +16898,7 @@ snapshots: terser: 5.39.0 yaml: 2.7.1 - vitest-browser-vue@0.2.0(@vitest/browser@3.1.2)(vitest@3.1.2)(vue@3.5.13(typescript@5.8.3)): + vitest-browser-vue@0.2.0(@vitest/browser@3.1.2(playwright@1.52.0)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vitest@3.1.2))(vitest@3.1.2(@types/debug@4.1.12)(@types/node@22.15.3)(@vitest/browser@3.1.2)(happy-dom@17.4.6)(jiti@2.4.2)(jsdom@26.1.0)(terser@5.39.0)(yaml@2.7.1))(vue@3.5.13(typescript@5.8.3)): dependencies: '@vitest/browser': 3.1.2(playwright@1.52.0)(vite@6.3.5(@types/node@22.15.3)(jiti@2.4.2)(terser@5.39.0)(yaml@2.7.1))(vitest@3.1.2) '@vue/test-utils': 2.4.6 From c94083d55259639b09803f74f3d02a161aaf3495 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 15 May 2025 14:25:09 +0100 Subject: [PATCH 2/4] fix: use nuxt environment --- examples/content/vitest.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/content/vitest.config.ts b/examples/content/vitest.config.ts index 25e6d2cfc..88ec45b06 100644 --- a/examples/content/vitest.config.ts +++ b/examples/content/vitest.config.ts @@ -6,6 +6,7 @@ const browserConfig = { provider: 'playwright', instances: [{ browser: 'chromium' }], }, + environment: 'nuxt', include: ['tests/browser/**/*.spec.ts'], setupFiles: ['vitest-browser-vue'], } @@ -16,7 +17,5 @@ const defaultConfig = { } export default defineVitestConfig({ - test: { - ...(process.env.VITEST_BROWSER_ENABLED === 'true' ? browserConfig : defaultConfig), - }, + test: process.env.VITEST_BROWSER_ENABLED === 'true' ? browserConfig : defaultConfig, }) From b8bbf3eb292b48af7bd9f359be08fd23a7900dca Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 15 May 2025 14:28:14 +0100 Subject: [PATCH 3/4] chore: remove caret constraint --- examples/content/package.json | 2 +- pnpm-lock.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/content/package.json b/examples/content/package.json index d85b8fa24..f921e8e0e 100644 --- a/examples/content/package.json +++ b/examples/content/package.json @@ -13,7 +13,7 @@ "preview": "nuxt preview" }, "devDependencies": { - "@nuxt/content": "^3.5.1", + "@nuxt/content": "3.5.1", "@nuxt/test-utils": "latest", "@vitest/browser": "3.1.3", "nuxt": "3.17.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d3332894f..e637f51f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -383,7 +383,7 @@ importers: examples/content: devDependencies: '@nuxt/content': - specifier: ^3.5.1 + specifier: 3.5.1 version: 3.5.1(magicast@0.3.5)(typescript@5.8.3) '@nuxt/test-utils': specifier: workspace:* From b86b09c58b5a0caef76c1d9205d54c48639dba3e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 15 May 2025 15:37:41 +0100 Subject: [PATCH 4/4] test: unskip tests --- examples/content/tests/browser/index.spec.ts | 12 +++++++---- examples/content/tests/browser/mount.spec.ts | 22 ++++++++++---------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/examples/content/tests/browser/index.spec.ts b/examples/content/tests/browser/index.spec.ts index 286ef71fc..699a67dc9 100644 --- a/examples/content/tests/browser/index.spec.ts +++ b/examples/content/tests/browser/index.spec.ts @@ -13,13 +13,17 @@ mockNuxtImport('queryCollection', () => (_id: string) => ({ })) describe('App', () => { - it.skip('works with mountSuspended', async () => { + it('works with mountSuspended', async () => { const component = await mountSuspended(App) - expect(component.html()).toMatchInlineSnapshot(`"
Index page
title: My page
"`) + expect(component.html()).toMatchInlineSnapshot(` + "
Index page
+
title: My page
" + `) }) - it.skip('works with vitest-browser-vue', async () => { - const { getByText } = await render(App) + // TODO: render does not currently support + it.skip('works with vitest-browser-vue', () => { + const { getByText } = render(App) expect(getByText('Index page')).toBeInTheDocument() expect(getByText('title: My page')).toBeInTheDocument() }) diff --git a/examples/content/tests/browser/mount.spec.ts b/examples/content/tests/browser/mount.spec.ts index fe2815e8a..4fd11b613 100644 --- a/examples/content/tests/browser/mount.spec.ts +++ b/examples/content/tests/browser/mount.spec.ts @@ -2,30 +2,30 @@ import { expect, it } from 'vitest' import { render } from 'vitest-browser-vue' import { SomeComponent, ProseH3, ProseP, ComponentWithUseRuntimeConfig, ComponentWithProse } from '#components' -it('should render any component', async () => { - const { getByText } = await render(SomeComponent) +it('should render any component', () => { + const { getByText } = render(SomeComponent) expect(getByText('This is an auto-imported component')).toBeInTheDocument() }) -it('should render a ProseP component', async () => { - const { getByText } = await render(ProseP, { slots: { default: 'This is a Prose Paragraph component' } }) +it('should render a ProseP component', () => { + const { getByText } = render(ProseP, { slots: { default: 'This is a Prose Paragraph component' } }) expect(getByText('This is a Prose Paragraph component')).toBeInTheDocument() }) -it.skip('should render a ProseH3 component', async () => { - const { getByText } = await render(ProseH3, { slots: { default: 'This is a Prose heading component' } }) +it('should render a ProseH3 component', () => { + const { getByText } = render(ProseH3, { slots: { default: 'This is a Prose heading component' } }) expect(getByText('This is a Prose heading component')).toBeInTheDocument() }) -it.skip('should render a ComponentWithUseRuntimeConfig component', async () => { - const { getByText } = await render(ComponentWithUseRuntimeConfig) +it('should render a ComponentWithUseRuntimeConfig component', () => { + const { getByText } = render(ComponentWithUseRuntimeConfig) expect(getByText('Use Runtime Config')).toBeInTheDocument() }) -it.skip('should render a ComponentWithProse component', async () => { +it('should render a ComponentWithProse component', () => { const headingText = 'Text rendered within ProseH3' - const paragraphText = 'Text rendered within p' - const { getByText } = await render(ComponentWithProse, { props: { heading: headingText, content: paragraphText } }) + const paragraphText = 'Text rendered within paragraph' + const { getByText } = render(ComponentWithProse, { props: { heading: headingText, content: paragraphText } }) expect(getByText(headingText)).toBeInTheDocument() expect(getByText(paragraphText)).toBeInTheDocument() })