From 93d01b681af356f947d6f7f0c4382779ae1e5d55 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 30 Nov 2023 12:38:49 +0100 Subject: [PATCH] chore: reorganise examples/fixtures (#257) --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .github/reproduire/needs-reproduction.md | 2 +- .../app-vitest-full}/.gitignore | 0 .../app-vitest-full}/app.config.ts | 0 .../app-vitest-full}/app.vue | 0 .../components/ExportDefaultComponent.vue | 0 .../ExportDefaultReturnsRenderComponent.vue | 0 .../ExportDefaultWithRenderComponent.vue | 0 .../components/ExportDefineComponent.vue | 0 .../components/FetchComponent.vue | 0 .../components/GlobalComponent.global.vue | 0 .../components/IndexedDbComponent.vue | 0 .../components/OptionsComponent.vue | 0 .../components/SomeComponent.vue | 0 .../components/WrapperTests.vue | 0 .../composables/auto-import-mock.ts | 0 .../composables/use-default-export.ts | 0 .../composables/use-single-state.ts | 0 .../app-vitest-full}/modules/custom.ts | 0 .../runtime/composables/auto-import-mock.ts | 0 .../app-vitest-full}/nuxt.config.ts | 0 .../app-vitest-full}/package.json | 0 .../app-vitest-full}/pages/[...slug].vue | 0 .../app-vitest-full}/pages/index.vue | 0 .../app-vitest-full}/plugins/async.ts | 0 .../app-vitest-full}/plugins/auth.ts | 0 .../app-vitest-full}/plugins/indexeddb.ts | 0 .../tests/nuxt/auto-import-mock.spec.ts | 0 .../tests/nuxt/auto-import.spec.ts | 0 .../tests/nuxt/config.spec.ts | 0 .../nuxt/export-define-component.spec.ts | 0 .../app-vitest-full}/tests/nuxt/index.spec.ts | 0 .../tests/nuxt/mock-component-1.spec.ts | 0 .../tests/nuxt/mock-component-2.spec.ts | 0 .../mock-component-expose-setup-state.spec.ts | 0 .../tests/nuxt/mock-indexeddb.spec.ts | 0 .../tests/nuxt/mock-nuxt-composable-1.spec.ts | 0 .../tests/nuxt/mock-nuxt-composable-2.spec.ts | 0 .../tests/nuxt/mock-nuxt-composable-3.spec.ts | 0 .../tests/nuxt/mocks/MockComponent.vue | 0 .../tests/nuxt/utils-render.spec.ts | 0 .../app-vitest-full}/tests/setup/mocks.ts | 0 .../app-vitest-full}/tests/unit/index.spec.ts | 0 .../app-vitest-full}/tsconfig.json | 0 .../app-vitest-full}/vitest.config.ts | 0 .../.stackblitz/config.json | 0 examples/{app => app-vitest}/app.vue | 0 .../components/MyComponent.vue | 0 examples/{app => app-vitest}/nuxt.config.ts | 0 examples/{app => app-vitest}/package.json | 0 .../{app => app-vitest}/server/tsconfig.json | 0 .../{app => app-vitest}/test/app.nuxt.spec.ts | 0 .../{app => app-vitest}/test/browser.e2e.ts | 0 .../{app => app-vitest}/test/dev.e2e.test.ts | 0 .../test/server.e2e.spec.ts | 0 examples/{app => app-vitest}/tsconfig.json | 0 .../types/component-props.ts | 0 examples/{app => app-vitest}/vitest.config.ts | 0 pnpm-lock.yaml | 118 +++++++++--------- pnpm-workspace.yaml | 1 - tsconfig.json | 1 - 61 files changed, 61 insertions(+), 63 deletions(-) rename {test/fixtures/runtime => examples/app-vitest-full}/.gitignore (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/app.config.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/app.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/ExportDefaultComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/ExportDefaultReturnsRenderComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/ExportDefaultWithRenderComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/ExportDefineComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/FetchComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/GlobalComponent.global.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/IndexedDbComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/OptionsComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/SomeComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/components/WrapperTests.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/composables/auto-import-mock.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/composables/use-default-export.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/composables/use-single-state.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/modules/custom.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/modules/runtime/composables/auto-import-mock.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/nuxt.config.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/package.json (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/pages/[...slug].vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/pages/index.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/plugins/async.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/plugins/auth.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/plugins/indexeddb.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/auto-import-mock.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/auto-import.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/config.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/export-define-component.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/index.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-component-1.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-component-2.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-component-expose-setup-state.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-indexeddb.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-nuxt-composable-1.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-nuxt-composable-2.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mock-nuxt-composable-3.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/mocks/MockComponent.vue (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/nuxt/utils-render.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/setup/mocks.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tests/unit/index.spec.ts (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/tsconfig.json (100%) rename {test/fixtures/runtime => examples/app-vitest-full}/vitest.config.ts (100%) rename examples/{app => app-vitest}/.stackblitz/config.json (100%) rename examples/{app => app-vitest}/app.vue (100%) rename examples/{app => app-vitest}/components/MyComponent.vue (100%) rename examples/{app => app-vitest}/nuxt.config.ts (100%) rename examples/{app => app-vitest}/package.json (100%) rename examples/{app => app-vitest}/server/tsconfig.json (100%) rename examples/{app => app-vitest}/test/app.nuxt.spec.ts (100%) rename examples/{app => app-vitest}/test/browser.e2e.ts (100%) rename examples/{app => app-vitest}/test/dev.e2e.test.ts (100%) rename examples/{app => app-vitest}/test/server.e2e.spec.ts (100%) rename examples/{app => app-vitest}/tsconfig.json (100%) rename examples/{app => app-vitest}/types/component-props.ts (100%) rename examples/{app => app-vitest}/vitest.config.ts (100%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 8021767ba..5af197307 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -9,7 +9,7 @@ body: 👉 https://nuxt.com/docs/community/reporting-bugs Please use a template below to create a minimal reproduction - 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app + 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-vitest 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-jest 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/module - type: textarea diff --git a/.github/reproduire/needs-reproduction.md b/.github/reproduire/needs-reproduction.md index 91e6f4474..bbd8997d6 100644 --- a/.github/reproduire/needs-reproduction.md +++ b/.github/reproduire/needs-reproduction.md @@ -17,7 +17,7 @@ If `needs reproduction` labeled issues don't receive any substantial activity (e We have a couple of templates for starting with a minimal reproduction: -👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app +👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-vitest 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-jest 👉 https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/module diff --git a/test/fixtures/runtime/.gitignore b/examples/app-vitest-full/.gitignore similarity index 100% rename from test/fixtures/runtime/.gitignore rename to examples/app-vitest-full/.gitignore diff --git a/test/fixtures/runtime/app.config.ts b/examples/app-vitest-full/app.config.ts similarity index 100% rename from test/fixtures/runtime/app.config.ts rename to examples/app-vitest-full/app.config.ts diff --git a/test/fixtures/runtime/app.vue b/examples/app-vitest-full/app.vue similarity index 100% rename from test/fixtures/runtime/app.vue rename to examples/app-vitest-full/app.vue diff --git a/test/fixtures/runtime/components/ExportDefaultComponent.vue b/examples/app-vitest-full/components/ExportDefaultComponent.vue similarity index 100% rename from test/fixtures/runtime/components/ExportDefaultComponent.vue rename to examples/app-vitest-full/components/ExportDefaultComponent.vue diff --git a/test/fixtures/runtime/components/ExportDefaultReturnsRenderComponent.vue b/examples/app-vitest-full/components/ExportDefaultReturnsRenderComponent.vue similarity index 100% rename from test/fixtures/runtime/components/ExportDefaultReturnsRenderComponent.vue rename to examples/app-vitest-full/components/ExportDefaultReturnsRenderComponent.vue diff --git a/test/fixtures/runtime/components/ExportDefaultWithRenderComponent.vue b/examples/app-vitest-full/components/ExportDefaultWithRenderComponent.vue similarity index 100% rename from test/fixtures/runtime/components/ExportDefaultWithRenderComponent.vue rename to examples/app-vitest-full/components/ExportDefaultWithRenderComponent.vue diff --git a/test/fixtures/runtime/components/ExportDefineComponent.vue b/examples/app-vitest-full/components/ExportDefineComponent.vue similarity index 100% rename from test/fixtures/runtime/components/ExportDefineComponent.vue rename to examples/app-vitest-full/components/ExportDefineComponent.vue diff --git a/test/fixtures/runtime/components/FetchComponent.vue b/examples/app-vitest-full/components/FetchComponent.vue similarity index 100% rename from test/fixtures/runtime/components/FetchComponent.vue rename to examples/app-vitest-full/components/FetchComponent.vue diff --git a/test/fixtures/runtime/components/GlobalComponent.global.vue b/examples/app-vitest-full/components/GlobalComponent.global.vue similarity index 100% rename from test/fixtures/runtime/components/GlobalComponent.global.vue rename to examples/app-vitest-full/components/GlobalComponent.global.vue diff --git a/test/fixtures/runtime/components/IndexedDbComponent.vue b/examples/app-vitest-full/components/IndexedDbComponent.vue similarity index 100% rename from test/fixtures/runtime/components/IndexedDbComponent.vue rename to examples/app-vitest-full/components/IndexedDbComponent.vue diff --git a/test/fixtures/runtime/components/OptionsComponent.vue b/examples/app-vitest-full/components/OptionsComponent.vue similarity index 100% rename from test/fixtures/runtime/components/OptionsComponent.vue rename to examples/app-vitest-full/components/OptionsComponent.vue diff --git a/test/fixtures/runtime/components/SomeComponent.vue b/examples/app-vitest-full/components/SomeComponent.vue similarity index 100% rename from test/fixtures/runtime/components/SomeComponent.vue rename to examples/app-vitest-full/components/SomeComponent.vue diff --git a/test/fixtures/runtime/components/WrapperTests.vue b/examples/app-vitest-full/components/WrapperTests.vue similarity index 100% rename from test/fixtures/runtime/components/WrapperTests.vue rename to examples/app-vitest-full/components/WrapperTests.vue diff --git a/test/fixtures/runtime/composables/auto-import-mock.ts b/examples/app-vitest-full/composables/auto-import-mock.ts similarity index 100% rename from test/fixtures/runtime/composables/auto-import-mock.ts rename to examples/app-vitest-full/composables/auto-import-mock.ts diff --git a/test/fixtures/runtime/composables/use-default-export.ts b/examples/app-vitest-full/composables/use-default-export.ts similarity index 100% rename from test/fixtures/runtime/composables/use-default-export.ts rename to examples/app-vitest-full/composables/use-default-export.ts diff --git a/test/fixtures/runtime/composables/use-single-state.ts b/examples/app-vitest-full/composables/use-single-state.ts similarity index 100% rename from test/fixtures/runtime/composables/use-single-state.ts rename to examples/app-vitest-full/composables/use-single-state.ts diff --git a/test/fixtures/runtime/modules/custom.ts b/examples/app-vitest-full/modules/custom.ts similarity index 100% rename from test/fixtures/runtime/modules/custom.ts rename to examples/app-vitest-full/modules/custom.ts diff --git a/test/fixtures/runtime/modules/runtime/composables/auto-import-mock.ts b/examples/app-vitest-full/modules/runtime/composables/auto-import-mock.ts similarity index 100% rename from test/fixtures/runtime/modules/runtime/composables/auto-import-mock.ts rename to examples/app-vitest-full/modules/runtime/composables/auto-import-mock.ts diff --git a/test/fixtures/runtime/nuxt.config.ts b/examples/app-vitest-full/nuxt.config.ts similarity index 100% rename from test/fixtures/runtime/nuxt.config.ts rename to examples/app-vitest-full/nuxt.config.ts diff --git a/test/fixtures/runtime/package.json b/examples/app-vitest-full/package.json similarity index 100% rename from test/fixtures/runtime/package.json rename to examples/app-vitest-full/package.json diff --git a/test/fixtures/runtime/pages/[...slug].vue b/examples/app-vitest-full/pages/[...slug].vue similarity index 100% rename from test/fixtures/runtime/pages/[...slug].vue rename to examples/app-vitest-full/pages/[...slug].vue diff --git a/test/fixtures/runtime/pages/index.vue b/examples/app-vitest-full/pages/index.vue similarity index 100% rename from test/fixtures/runtime/pages/index.vue rename to examples/app-vitest-full/pages/index.vue diff --git a/test/fixtures/runtime/plugins/async.ts b/examples/app-vitest-full/plugins/async.ts similarity index 100% rename from test/fixtures/runtime/plugins/async.ts rename to examples/app-vitest-full/plugins/async.ts diff --git a/test/fixtures/runtime/plugins/auth.ts b/examples/app-vitest-full/plugins/auth.ts similarity index 100% rename from test/fixtures/runtime/plugins/auth.ts rename to examples/app-vitest-full/plugins/auth.ts diff --git a/test/fixtures/runtime/plugins/indexeddb.ts b/examples/app-vitest-full/plugins/indexeddb.ts similarity index 100% rename from test/fixtures/runtime/plugins/indexeddb.ts rename to examples/app-vitest-full/plugins/indexeddb.ts diff --git a/test/fixtures/runtime/tests/nuxt/auto-import-mock.spec.ts b/examples/app-vitest-full/tests/nuxt/auto-import-mock.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/auto-import-mock.spec.ts rename to examples/app-vitest-full/tests/nuxt/auto-import-mock.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/auto-import.spec.ts b/examples/app-vitest-full/tests/nuxt/auto-import.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/auto-import.spec.ts rename to examples/app-vitest-full/tests/nuxt/auto-import.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/config.spec.ts b/examples/app-vitest-full/tests/nuxt/config.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/config.spec.ts rename to examples/app-vitest-full/tests/nuxt/config.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/export-define-component.spec.ts b/examples/app-vitest-full/tests/nuxt/export-define-component.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/export-define-component.spec.ts rename to examples/app-vitest-full/tests/nuxt/export-define-component.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/index.spec.ts b/examples/app-vitest-full/tests/nuxt/index.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/index.spec.ts rename to examples/app-vitest-full/tests/nuxt/index.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-component-1.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-component-1.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-component-1.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-component-1.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-component-2.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-component-2.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-component-2.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-component-2.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-component-expose-setup-state.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-component-expose-setup-state.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-component-expose-setup-state.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-component-expose-setup-state.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-indexeddb.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-indexeddb.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-indexeddb.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-indexeddb.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-nuxt-composable-1.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-nuxt-composable-1.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-nuxt-composable-1.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-nuxt-composable-1.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-nuxt-composable-2.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-nuxt-composable-2.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-nuxt-composable-2.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-nuxt-composable-2.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mock-nuxt-composable-3.spec.ts b/examples/app-vitest-full/tests/nuxt/mock-nuxt-composable-3.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mock-nuxt-composable-3.spec.ts rename to examples/app-vitest-full/tests/nuxt/mock-nuxt-composable-3.spec.ts diff --git a/test/fixtures/runtime/tests/nuxt/mocks/MockComponent.vue b/examples/app-vitest-full/tests/nuxt/mocks/MockComponent.vue similarity index 100% rename from test/fixtures/runtime/tests/nuxt/mocks/MockComponent.vue rename to examples/app-vitest-full/tests/nuxt/mocks/MockComponent.vue diff --git a/test/fixtures/runtime/tests/nuxt/utils-render.spec.ts b/examples/app-vitest-full/tests/nuxt/utils-render.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/nuxt/utils-render.spec.ts rename to examples/app-vitest-full/tests/nuxt/utils-render.spec.ts diff --git a/test/fixtures/runtime/tests/setup/mocks.ts b/examples/app-vitest-full/tests/setup/mocks.ts similarity index 100% rename from test/fixtures/runtime/tests/setup/mocks.ts rename to examples/app-vitest-full/tests/setup/mocks.ts diff --git a/test/fixtures/runtime/tests/unit/index.spec.ts b/examples/app-vitest-full/tests/unit/index.spec.ts similarity index 100% rename from test/fixtures/runtime/tests/unit/index.spec.ts rename to examples/app-vitest-full/tests/unit/index.spec.ts diff --git a/test/fixtures/runtime/tsconfig.json b/examples/app-vitest-full/tsconfig.json similarity index 100% rename from test/fixtures/runtime/tsconfig.json rename to examples/app-vitest-full/tsconfig.json diff --git a/test/fixtures/runtime/vitest.config.ts b/examples/app-vitest-full/vitest.config.ts similarity index 100% rename from test/fixtures/runtime/vitest.config.ts rename to examples/app-vitest-full/vitest.config.ts diff --git a/examples/app/.stackblitz/config.json b/examples/app-vitest/.stackblitz/config.json similarity index 100% rename from examples/app/.stackblitz/config.json rename to examples/app-vitest/.stackblitz/config.json diff --git a/examples/app/app.vue b/examples/app-vitest/app.vue similarity index 100% rename from examples/app/app.vue rename to examples/app-vitest/app.vue diff --git a/examples/app/components/MyComponent.vue b/examples/app-vitest/components/MyComponent.vue similarity index 100% rename from examples/app/components/MyComponent.vue rename to examples/app-vitest/components/MyComponent.vue diff --git a/examples/app/nuxt.config.ts b/examples/app-vitest/nuxt.config.ts similarity index 100% rename from examples/app/nuxt.config.ts rename to examples/app-vitest/nuxt.config.ts diff --git a/examples/app/package.json b/examples/app-vitest/package.json similarity index 100% rename from examples/app/package.json rename to examples/app-vitest/package.json diff --git a/examples/app/server/tsconfig.json b/examples/app-vitest/server/tsconfig.json similarity index 100% rename from examples/app/server/tsconfig.json rename to examples/app-vitest/server/tsconfig.json diff --git a/examples/app/test/app.nuxt.spec.ts b/examples/app-vitest/test/app.nuxt.spec.ts similarity index 100% rename from examples/app/test/app.nuxt.spec.ts rename to examples/app-vitest/test/app.nuxt.spec.ts diff --git a/examples/app/test/browser.e2e.ts b/examples/app-vitest/test/browser.e2e.ts similarity index 100% rename from examples/app/test/browser.e2e.ts rename to examples/app-vitest/test/browser.e2e.ts diff --git a/examples/app/test/dev.e2e.test.ts b/examples/app-vitest/test/dev.e2e.test.ts similarity index 100% rename from examples/app/test/dev.e2e.test.ts rename to examples/app-vitest/test/dev.e2e.test.ts diff --git a/examples/app/test/server.e2e.spec.ts b/examples/app-vitest/test/server.e2e.spec.ts similarity index 100% rename from examples/app/test/server.e2e.spec.ts rename to examples/app-vitest/test/server.e2e.spec.ts diff --git a/examples/app/tsconfig.json b/examples/app-vitest/tsconfig.json similarity index 100% rename from examples/app/tsconfig.json rename to examples/app-vitest/tsconfig.json diff --git a/examples/app/types/component-props.ts b/examples/app-vitest/types/component-props.ts similarity index 100% rename from examples/app/types/component-props.ts rename to examples/app-vitest/types/component-props.ts diff --git a/examples/app/vitest.config.ts b/examples/app-vitest/vitest.config.ts similarity index 100% rename from examples/app/vitest.config.ts rename to examples/app-vitest/vitest.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index de0bf41bf..00075b990 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -163,28 +163,6 @@ importers: specifier: 1.8.22 version: 1.8.22(typescript@5.2.2) - examples/app: - dependencies: - nuxt: - specifier: ^3.8.2 - version: 3.8.2(eslint@8.54.0)(rollup@4.6.0)(typescript@5.2.2)(vite@5.0.3)(vue-tsc@1.8.22) - vue: - specifier: ^3.3.8 - version: 3.3.9(typescript@5.2.2) - vue-router: - specifier: ^4.2.5 - version: 4.2.5(vue@3.3.9) - devDependencies: - '@nuxt/test-utils': - specifier: workspace:* - version: link:../.. - happy-dom: - specifier: ^12.10.3 - version: 12.10.3 - typescript: - specifier: ^5.2.2 - version: 5.2.2 - examples/app-jest: dependencies: nuxt: @@ -219,39 +197,11 @@ importers: specifier: ^5.2.2 version: 5.2.2 - examples/module: + examples/app-vitest: dependencies: - '@nuxt/kit': - specifier: ^3.8.2 - version: 3.8.2(rollup@4.6.0) - vue: - specifier: ^3.3.8 - version: 3.3.9(typescript@5.2.2) - vue-router: - specifier: ^4.2.5 - version: 4.2.5(vue@3.3.9) - devDependencies: - '@nuxt/module-builder': - specifier: ^0.5.2 - version: 0.5.4(@nuxt/kit@3.8.2)(nuxi@3.10.0)(typescript@5.2.2) - '@nuxt/schema': - specifier: ^3.8.2 - version: 3.8.2(rollup@4.6.0) - '@nuxt/test-utils': - specifier: workspace:* - version: link:../.. - changelogen: - specifier: ^0.5.5 - version: 0.5.5 nuxt: specifier: ^3.8.2 version: 3.8.2(eslint@8.54.0)(rollup@4.6.0)(typescript@5.2.2)(vite@5.0.3)(vue-tsc@1.8.22) - vitest: - specifier: 0.33.0 - version: 0.33.0(happy-dom@12.10.3)(jsdom@22.1.0) - - examples/module/playground: - dependencies: vue: specifier: ^3.3.8 version: 3.3.9(typescript@5.2.2) @@ -259,17 +209,17 @@ importers: specifier: ^4.2.5 version: 4.2.5(vue@3.3.9) devDependencies: - nuxt: - specifier: ^3.8.2 - version: 3.8.2(eslint@8.54.0)(rollup@4.6.0)(typescript@5.2.2)(vite@5.0.3)(vue-tsc@1.8.22) - - stubs/vitest-environment-nuxt: - dependencies: '@nuxt/test-utils': specifier: workspace:* version: link:../.. + happy-dom: + specifier: ^12.10.3 + version: 12.10.3 + typescript: + specifier: ^5.2.2 + version: 5.2.2 - test/fixtures/runtime: + examples/app-vitest-full: dependencies: idb-keyval: specifier: ^6.2.1 @@ -280,7 +230,7 @@ importers: version: 1.0.2(idb-keyval@6.2.1)(nuxt@3.8.2)(rollup@4.6.0)(vite@5.0.3) '@nuxt/test-utils': specifier: workspace:* - version: link:../../.. + version: link:../.. '@testing-library/vue': specifier: 8.0.1 version: 8.0.1(@vue/compiler-sfc@3.3.9)(vue@3.3.9) @@ -306,6 +256,56 @@ importers: specifier: 1.8.19 version: 1.8.19(typescript@5.2.2) + examples/module: + dependencies: + '@nuxt/kit': + specifier: ^3.8.2 + version: 3.8.2(rollup@4.6.0) + vue: + specifier: ^3.3.8 + version: 3.3.9(typescript@5.2.2) + vue-router: + specifier: ^4.2.5 + version: 4.2.5(vue@3.3.9) + devDependencies: + '@nuxt/module-builder': + specifier: ^0.5.2 + version: 0.5.4(@nuxt/kit@3.8.2)(nuxi@3.10.0)(typescript@5.2.2) + '@nuxt/schema': + specifier: ^3.8.2 + version: 3.8.2(rollup@4.6.0) + '@nuxt/test-utils': + specifier: workspace:* + version: link:../.. + changelogen: + specifier: ^0.5.5 + version: 0.5.5 + nuxt: + specifier: ^3.8.2 + version: 3.8.2(eslint@8.54.0)(rollup@4.6.0)(typescript@5.2.2)(vite@5.0.3)(vue-tsc@1.8.22) + vitest: + specifier: 0.33.0 + version: 0.33.0(happy-dom@12.10.3)(jsdom@22.1.0) + + examples/module/playground: + dependencies: + vue: + specifier: ^3.3.8 + version: 3.3.9(typescript@5.2.2) + vue-router: + specifier: ^4.2.5 + version: 4.2.5(vue@3.3.9) + devDependencies: + nuxt: + specifier: ^3.8.2 + version: 3.8.2(eslint@8.54.0)(rollup@4.6.0)(typescript@5.2.2)(vite@5.0.3)(vue-tsc@1.8.22) + + stubs/vitest-environment-nuxt: + dependencies: + '@nuxt/test-utils': + specifier: workspace:* + version: link:../.. + packages: /@aashutoshrathi/word-wrap@1.2.6: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index da137a789..45cca637f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,4 +2,3 @@ packages: - "examples/*" - "examples/module/playground" - "stubs/*" - - "test/fixtures/*" diff --git a/tsconfig.json b/tsconfig.json index 65c71a701..3c1dc1344 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,5 @@ "exclude": [ "**/dist/**", "examples/*", - "test/fixtures/*" ] }