From 1670deacf91f227502beb9d81d625ba59300df90 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 4 Jan 2022 01:33:51 +0800 Subject: [PATCH] chore: move examples --- .github/workflows/test.yml | 2 +- docs/guide/index.md | 12 +- {test => examples}/lit/index.html | 0 {test => examples}/lit/package.json | 0 {test => examples}/lit/src/my-button.ts | 0 {test => examples}/lit/test/basic.test.ts | 0 {test => examples}/lit/tsconfig.json | 0 {test => examples}/lit/vite.config.ts | 0 .../__mocks__/@vueuse/integrations/useJwt.ts | 0 {test => examples}/mocks/__mocks__/axios.ts | 0 {test => examples}/mocks/package.json | 0 {test => examples}/mocks/src/example.ts | 0 {test => examples}/mocks/src/integration.ts | 0 {test => examples}/mocks/src/moduleA.ts | 0 .../mocks/test/axios-not-mocked.test.ts | 0 {test => examples}/mocks/test/axios.test.ts | 0 .../mocks/test/example-mock.test.ts | 0 {test => examples}/mocks/test/factory.test.ts | 0 .../mocks/test/integration.test.ts | 0 {test => examples}/mocks/test/tinyspy.test.ts | 0 {test => examples}/mocks/tsconfig.json | 0 {test => examples}/mocks/vite.config.ts | 0 {test => examples}/puppeteer/index.html | 0 {test => examples}/puppeteer/package.json | 0 {test => examples}/puppeteer/src/index.ts | 0 .../puppeteer/test/basic.test.ts | 0 {test => examples}/puppeteer/tsconfig.json | 0 {test => examples}/puppeteer/vitest.config.ts | 0 .../react-enzyme/components/Button.tsx | 0 {test => examples}/react-enzyme/package.json | 0 .../react-enzyme/test/Button.test.tsx | 0 {test => examples}/react-enzyme/tsconfig.json | 0 .../react-enzyme/vite.config.ts | 0 .../react-enzyme/vitest.setup.ts | 0 {test => examples}/react-mui/package.json | 0 .../react-mui/test/render.spec.tsx | 0 .../react-mui/test/testUtils.tsx | 0 {test => examples}/react-mui/tsconfig.json | 0 {test => examples}/react-mui/vite.config.ts | 0 .../react-testing-lib-msw/index.html | 0 .../react-testing-lib-msw/package.json | 0 .../react-testing-lib-msw/src/App.test.tsx | 0 .../react-testing-lib-msw/src/App.tsx | 0 .../react-testing-lib-msw/src/main.tsx | 0 .../src/mocks/handlers.ts | 0 .../react-testing-lib-msw/src/mocks/server.ts | 0 .../react-testing-lib-msw/src/setup.ts | 0 .../src/utils/test-utils.tsx | 0 .../react-testing-lib-msw/tsconfig.json | 0 .../react-testing-lib-msw/vite.config.ts | 0 .../react-testing-lib/index.html | 0 .../react-testing-lib/package.json | 0 .../react-testing-lib/src/App.css | 0 .../react-testing-lib/src/App.test.tsx | 0 .../react-testing-lib/src/App.tsx | 0 .../src/components/Input.tsx | 0 .../react-testing-lib/src/components/index.ts | 0 .../src/components/input.test.tsx | 0 .../src/hooks/useCounter.test.ts | 0 .../react-testing-lib/src/hooks/useCounter.ts | 0 .../react-testing-lib/src/index.css | 0 .../react-testing-lib/src/main.tsx | 0 .../src/utils/test-utils.tsx | 0 .../react-testing-lib/tsconfig.json | 0 .../react-testing-lib/vite.config.ts | 0 {test => examples}/react/components/Link.tsx | 0 {test => examples}/react/package.json | 0 .../test/__snapshots__/basic.test.tsx.snap | 0 {test => examples}/react/test/basic.test.tsx | 0 {test => examples}/react/tsconfig.json | 0 {test => examples}/react/vitest.config.ts | 0 .../svelte/components/Hello.svelte | 0 {test => examples}/svelte/package.json | 0 .../test/__snapshots__/basic.test.ts.snap | 0 .../test/__snapshots__/hello.test.ts.snap | 0 {test => examples}/svelte/test/basic.test.ts | 0 {test => examples}/svelte/test/hello.test.ts | 0 {test => examples}/svelte/vitest.config.ts | 0 {test => examples}/vitesse/package.json | 0 .../vitesse/src/auto-import.d.ts | 0 .../vitesse/src/components.d.ts | 0 .../vitesse/src/components/Foo.vue | 0 .../vitesse/src/components/Hello.vue | 0 .../test/__snapshots__/basic.test.ts.snap | 0 {test => examples}/vitesse/test/basic.test.ts | 0 {test => examples}/vitesse/tsconfig.json | 0 {test => examples}/vitesse/vite.config.ts | 0 .../vue/components/AsyncComp.vue | 0 .../vue/components/AsyncWrapper.vue | 0 {test => examples}/vue/components/Hello.vue | 0 {test => examples}/vue/package.json | 0 .../vue/test/__snapshots__/basic.test.ts.snap | 0 {test => examples}/vue/test/async.test.ts | 0 {test => examples}/vue/test/basic.test.ts | 0 {test => examples}/vue/tsconfig.json | 0 {test => examples}/vue/vitest.config.ts | 0 {test => examples}/vue2/package.json | 0 {test => examples}/vue2/pnpm-lock.yaml | 0 {test => examples}/vue2/pnpm-workspace.yaml | 0 .../vue2/src/components/Options.vue | 0 .../vue2/src/components/ScriptSetup.vue | 0 .../test/__snapshots__/basic.test.ts.snap | 0 {test => examples}/vue2/test/basic.test.ts | 0 .../vue2/test/script-setup.test.ts | 0 {test => examples}/vue2/tsconfig.json | 0 {test => examples}/vue2/vitest.config.ts | 0 {test => examples}/vue2/vitest.setup.ts | 0 package.json | 3 +- packages/ui/package.json | 1 - pnpm-lock.yaml | 744 +++++++----------- pnpm-workspace.yaml | 3 +- test/related/tests/related.test.ts | 4 +- tsconfig.json | 1 + 113 files changed, 305 insertions(+), 465 deletions(-) rename {test => examples}/lit/index.html (100%) rename {test => examples}/lit/package.json (100%) rename {test => examples}/lit/src/my-button.ts (100%) rename {test => examples}/lit/test/basic.test.ts (100%) rename {test => examples}/lit/tsconfig.json (100%) rename {test => examples}/lit/vite.config.ts (100%) rename {test => examples}/mocks/__mocks__/@vueuse/integrations/useJwt.ts (100%) rename {test => examples}/mocks/__mocks__/axios.ts (100%) rename {test => examples}/mocks/package.json (100%) rename {test => examples}/mocks/src/example.ts (100%) rename {test => examples}/mocks/src/integration.ts (100%) rename {test => examples}/mocks/src/moduleA.ts (100%) rename {test => examples}/mocks/test/axios-not-mocked.test.ts (100%) rename {test => examples}/mocks/test/axios.test.ts (100%) rename {test => examples}/mocks/test/example-mock.test.ts (100%) rename {test => examples}/mocks/test/factory.test.ts (100%) rename {test => examples}/mocks/test/integration.test.ts (100%) rename {test => examples}/mocks/test/tinyspy.test.ts (100%) rename {test => examples}/mocks/tsconfig.json (100%) rename {test => examples}/mocks/vite.config.ts (100%) rename {test => examples}/puppeteer/index.html (100%) rename {test => examples}/puppeteer/package.json (100%) rename {test => examples}/puppeteer/src/index.ts (100%) rename {test => examples}/puppeteer/test/basic.test.ts (100%) rename {test => examples}/puppeteer/tsconfig.json (100%) rename {test => examples}/puppeteer/vitest.config.ts (100%) rename {test => examples}/react-enzyme/components/Button.tsx (100%) rename {test => examples}/react-enzyme/package.json (100%) rename {test => examples}/react-enzyme/test/Button.test.tsx (100%) rename {test => examples}/react-enzyme/tsconfig.json (100%) rename {test => examples}/react-enzyme/vite.config.ts (100%) rename {test => examples}/react-enzyme/vitest.setup.ts (100%) rename {test => examples}/react-mui/package.json (100%) rename {test => examples}/react-mui/test/render.spec.tsx (100%) rename {test => examples}/react-mui/test/testUtils.tsx (100%) rename {test => examples}/react-mui/tsconfig.json (100%) rename {test => examples}/react-mui/vite.config.ts (100%) rename {test => examples}/react-testing-lib-msw/index.html (100%) rename {test => examples}/react-testing-lib-msw/package.json (100%) rename {test => examples}/react-testing-lib-msw/src/App.test.tsx (100%) rename {test => examples}/react-testing-lib-msw/src/App.tsx (100%) rename {test => examples}/react-testing-lib-msw/src/main.tsx (100%) rename {test => examples}/react-testing-lib-msw/src/mocks/handlers.ts (100%) rename {test => examples}/react-testing-lib-msw/src/mocks/server.ts (100%) rename {test => examples}/react-testing-lib-msw/src/setup.ts (100%) rename {test => examples}/react-testing-lib-msw/src/utils/test-utils.tsx (100%) rename {test => examples}/react-testing-lib-msw/tsconfig.json (100%) rename {test => examples}/react-testing-lib-msw/vite.config.ts (100%) rename {test => examples}/react-testing-lib/index.html (100%) rename {test => examples}/react-testing-lib/package.json (100%) rename {test => examples}/react-testing-lib/src/App.css (100%) rename {test => examples}/react-testing-lib/src/App.test.tsx (100%) rename {test => examples}/react-testing-lib/src/App.tsx (100%) rename {test => examples}/react-testing-lib/src/components/Input.tsx (100%) rename {test => examples}/react-testing-lib/src/components/index.ts (100%) rename {test => examples}/react-testing-lib/src/components/input.test.tsx (100%) rename {test => examples}/react-testing-lib/src/hooks/useCounter.test.ts (100%) rename {test => examples}/react-testing-lib/src/hooks/useCounter.ts (100%) rename {test => examples}/react-testing-lib/src/index.css (100%) rename {test => examples}/react-testing-lib/src/main.tsx (100%) rename {test => examples}/react-testing-lib/src/utils/test-utils.tsx (100%) rename {test => examples}/react-testing-lib/tsconfig.json (100%) rename {test => examples}/react-testing-lib/vite.config.ts (100%) rename {test => examples}/react/components/Link.tsx (100%) rename {test => examples}/react/package.json (100%) rename {test => examples}/react/test/__snapshots__/basic.test.tsx.snap (100%) rename {test => examples}/react/test/basic.test.tsx (100%) rename {test => examples}/react/tsconfig.json (100%) rename {test => examples}/react/vitest.config.ts (100%) rename {test => examples}/svelte/components/Hello.svelte (100%) rename {test => examples}/svelte/package.json (100%) rename {test => examples}/svelte/test/__snapshots__/basic.test.ts.snap (100%) rename {test => examples}/svelte/test/__snapshots__/hello.test.ts.snap (100%) rename {test => examples}/svelte/test/basic.test.ts (100%) rename {test => examples}/svelte/test/hello.test.ts (100%) rename {test => examples}/svelte/vitest.config.ts (100%) rename {test => examples}/vitesse/package.json (100%) rename {test => examples}/vitesse/src/auto-import.d.ts (100%) rename {test => examples}/vitesse/src/components.d.ts (100%) rename {test => examples}/vitesse/src/components/Foo.vue (100%) rename {test => examples}/vitesse/src/components/Hello.vue (100%) rename {test => examples}/vitesse/test/__snapshots__/basic.test.ts.snap (100%) rename {test => examples}/vitesse/test/basic.test.ts (100%) rename {test => examples}/vitesse/tsconfig.json (100%) rename {test => examples}/vitesse/vite.config.ts (100%) rename {test => examples}/vue/components/AsyncComp.vue (100%) rename {test => examples}/vue/components/AsyncWrapper.vue (100%) rename {test => examples}/vue/components/Hello.vue (100%) rename {test => examples}/vue/package.json (100%) rename {test => examples}/vue/test/__snapshots__/basic.test.ts.snap (100%) rename {test => examples}/vue/test/async.test.ts (100%) rename {test => examples}/vue/test/basic.test.ts (100%) rename {test => examples}/vue/tsconfig.json (100%) rename {test => examples}/vue/vitest.config.ts (100%) rename {test => examples}/vue2/package.json (100%) rename {test => examples}/vue2/pnpm-lock.yaml (100%) rename {test => examples}/vue2/pnpm-workspace.yaml (100%) rename {test => examples}/vue2/src/components/Options.vue (100%) rename {test => examples}/vue2/src/components/ScriptSetup.vue (100%) rename {test => examples}/vue2/test/__snapshots__/basic.test.ts.snap (100%) rename {test => examples}/vue2/test/basic.test.ts (100%) rename {test => examples}/vue2/test/script-setup.test.ts (100%) rename {test => examples}/vue2/tsconfig.json (100%) rename {test => examples}/vue2/vitest.config.ts (100%) rename {test => examples}/vue2/vitest.setup.ts (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3cd0039e6..702512429 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,7 +42,7 @@ jobs: run: pnpm run build - name: Test - run: pnpm run test:ci + run: pnpm run test:all - name: Lint run: pnpm run lint --if-present diff --git a/docs/guide/index.md b/docs/guide/index.md index 319f988a2..7f5662734 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -119,12 +119,12 @@ vitest related /src/index.ts /src/hello-world.js ## Examples - [Unit Testing](https://github.com/vitest-dev/vitest/tree/main/test/core) -- [Vue Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/vue) -- [React Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/react) -- [Svelte Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/svelte) -- [Lit Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/lit) -- [Vitesse Component Testing](https://github.com/vitest-dev/vitest/tree/main/test/vitesse) -- [All examples](https://github.com/antfu-sponsors/vitest/blob/bad88e49dce396ac73e1029abec47ccb227959e3/test) +- [Vue Component Testing](https://github.com/vitest-dev/vitest/tree/main/examples/vue) +- [React Component Testing](https://github.com/vitest-dev/vitest/tree/main/examples/react) +- [Svelte Component Testing](https://github.com/vitest-dev/vitest/tree/main/examples/svelte) +- [Lit Component Testing](https://github.com/vitest-dev/vitest/tree/main/examples/lit) +- [Vitesse Component Testing](https://github.com/vitest-dev/vitest/tree/main/examples/vitesse) +- [All examples](https://github.com/vitest-dev/vitest/tree/main/examples) ## Projects using Vitest diff --git a/test/lit/index.html b/examples/lit/index.html similarity index 100% rename from test/lit/index.html rename to examples/lit/index.html diff --git a/test/lit/package.json b/examples/lit/package.json similarity index 100% rename from test/lit/package.json rename to examples/lit/package.json diff --git a/test/lit/src/my-button.ts b/examples/lit/src/my-button.ts similarity index 100% rename from test/lit/src/my-button.ts rename to examples/lit/src/my-button.ts diff --git a/test/lit/test/basic.test.ts b/examples/lit/test/basic.test.ts similarity index 100% rename from test/lit/test/basic.test.ts rename to examples/lit/test/basic.test.ts diff --git a/test/lit/tsconfig.json b/examples/lit/tsconfig.json similarity index 100% rename from test/lit/tsconfig.json rename to examples/lit/tsconfig.json diff --git a/test/lit/vite.config.ts b/examples/lit/vite.config.ts similarity index 100% rename from test/lit/vite.config.ts rename to examples/lit/vite.config.ts diff --git a/test/mocks/__mocks__/@vueuse/integrations/useJwt.ts b/examples/mocks/__mocks__/@vueuse/integrations/useJwt.ts similarity index 100% rename from test/mocks/__mocks__/@vueuse/integrations/useJwt.ts rename to examples/mocks/__mocks__/@vueuse/integrations/useJwt.ts diff --git a/test/mocks/__mocks__/axios.ts b/examples/mocks/__mocks__/axios.ts similarity index 100% rename from test/mocks/__mocks__/axios.ts rename to examples/mocks/__mocks__/axios.ts diff --git a/test/mocks/package.json b/examples/mocks/package.json similarity index 100% rename from test/mocks/package.json rename to examples/mocks/package.json diff --git a/test/mocks/src/example.ts b/examples/mocks/src/example.ts similarity index 100% rename from test/mocks/src/example.ts rename to examples/mocks/src/example.ts diff --git a/test/mocks/src/integration.ts b/examples/mocks/src/integration.ts similarity index 100% rename from test/mocks/src/integration.ts rename to examples/mocks/src/integration.ts diff --git a/test/mocks/src/moduleA.ts b/examples/mocks/src/moduleA.ts similarity index 100% rename from test/mocks/src/moduleA.ts rename to examples/mocks/src/moduleA.ts diff --git a/test/mocks/test/axios-not-mocked.test.ts b/examples/mocks/test/axios-not-mocked.test.ts similarity index 100% rename from test/mocks/test/axios-not-mocked.test.ts rename to examples/mocks/test/axios-not-mocked.test.ts diff --git a/test/mocks/test/axios.test.ts b/examples/mocks/test/axios.test.ts similarity index 100% rename from test/mocks/test/axios.test.ts rename to examples/mocks/test/axios.test.ts diff --git a/test/mocks/test/example-mock.test.ts b/examples/mocks/test/example-mock.test.ts similarity index 100% rename from test/mocks/test/example-mock.test.ts rename to examples/mocks/test/example-mock.test.ts diff --git a/test/mocks/test/factory.test.ts b/examples/mocks/test/factory.test.ts similarity index 100% rename from test/mocks/test/factory.test.ts rename to examples/mocks/test/factory.test.ts diff --git a/test/mocks/test/integration.test.ts b/examples/mocks/test/integration.test.ts similarity index 100% rename from test/mocks/test/integration.test.ts rename to examples/mocks/test/integration.test.ts diff --git a/test/mocks/test/tinyspy.test.ts b/examples/mocks/test/tinyspy.test.ts similarity index 100% rename from test/mocks/test/tinyspy.test.ts rename to examples/mocks/test/tinyspy.test.ts diff --git a/test/mocks/tsconfig.json b/examples/mocks/tsconfig.json similarity index 100% rename from test/mocks/tsconfig.json rename to examples/mocks/tsconfig.json diff --git a/test/mocks/vite.config.ts b/examples/mocks/vite.config.ts similarity index 100% rename from test/mocks/vite.config.ts rename to examples/mocks/vite.config.ts diff --git a/test/puppeteer/index.html b/examples/puppeteer/index.html similarity index 100% rename from test/puppeteer/index.html rename to examples/puppeteer/index.html diff --git a/test/puppeteer/package.json b/examples/puppeteer/package.json similarity index 100% rename from test/puppeteer/package.json rename to examples/puppeteer/package.json diff --git a/test/puppeteer/src/index.ts b/examples/puppeteer/src/index.ts similarity index 100% rename from test/puppeteer/src/index.ts rename to examples/puppeteer/src/index.ts diff --git a/test/puppeteer/test/basic.test.ts b/examples/puppeteer/test/basic.test.ts similarity index 100% rename from test/puppeteer/test/basic.test.ts rename to examples/puppeteer/test/basic.test.ts diff --git a/test/puppeteer/tsconfig.json b/examples/puppeteer/tsconfig.json similarity index 100% rename from test/puppeteer/tsconfig.json rename to examples/puppeteer/tsconfig.json diff --git a/test/puppeteer/vitest.config.ts b/examples/puppeteer/vitest.config.ts similarity index 100% rename from test/puppeteer/vitest.config.ts rename to examples/puppeteer/vitest.config.ts diff --git a/test/react-enzyme/components/Button.tsx b/examples/react-enzyme/components/Button.tsx similarity index 100% rename from test/react-enzyme/components/Button.tsx rename to examples/react-enzyme/components/Button.tsx diff --git a/test/react-enzyme/package.json b/examples/react-enzyme/package.json similarity index 100% rename from test/react-enzyme/package.json rename to examples/react-enzyme/package.json diff --git a/test/react-enzyme/test/Button.test.tsx b/examples/react-enzyme/test/Button.test.tsx similarity index 100% rename from test/react-enzyme/test/Button.test.tsx rename to examples/react-enzyme/test/Button.test.tsx diff --git a/test/react-enzyme/tsconfig.json b/examples/react-enzyme/tsconfig.json similarity index 100% rename from test/react-enzyme/tsconfig.json rename to examples/react-enzyme/tsconfig.json diff --git a/test/react-enzyme/vite.config.ts b/examples/react-enzyme/vite.config.ts similarity index 100% rename from test/react-enzyme/vite.config.ts rename to examples/react-enzyme/vite.config.ts diff --git a/test/react-enzyme/vitest.setup.ts b/examples/react-enzyme/vitest.setup.ts similarity index 100% rename from test/react-enzyme/vitest.setup.ts rename to examples/react-enzyme/vitest.setup.ts diff --git a/test/react-mui/package.json b/examples/react-mui/package.json similarity index 100% rename from test/react-mui/package.json rename to examples/react-mui/package.json diff --git a/test/react-mui/test/render.spec.tsx b/examples/react-mui/test/render.spec.tsx similarity index 100% rename from test/react-mui/test/render.spec.tsx rename to examples/react-mui/test/render.spec.tsx diff --git a/test/react-mui/test/testUtils.tsx b/examples/react-mui/test/testUtils.tsx similarity index 100% rename from test/react-mui/test/testUtils.tsx rename to examples/react-mui/test/testUtils.tsx diff --git a/test/react-mui/tsconfig.json b/examples/react-mui/tsconfig.json similarity index 100% rename from test/react-mui/tsconfig.json rename to examples/react-mui/tsconfig.json diff --git a/test/react-mui/vite.config.ts b/examples/react-mui/vite.config.ts similarity index 100% rename from test/react-mui/vite.config.ts rename to examples/react-mui/vite.config.ts diff --git a/test/react-testing-lib-msw/index.html b/examples/react-testing-lib-msw/index.html similarity index 100% rename from test/react-testing-lib-msw/index.html rename to examples/react-testing-lib-msw/index.html diff --git a/test/react-testing-lib-msw/package.json b/examples/react-testing-lib-msw/package.json similarity index 100% rename from test/react-testing-lib-msw/package.json rename to examples/react-testing-lib-msw/package.json diff --git a/test/react-testing-lib-msw/src/App.test.tsx b/examples/react-testing-lib-msw/src/App.test.tsx similarity index 100% rename from test/react-testing-lib-msw/src/App.test.tsx rename to examples/react-testing-lib-msw/src/App.test.tsx diff --git a/test/react-testing-lib-msw/src/App.tsx b/examples/react-testing-lib-msw/src/App.tsx similarity index 100% rename from test/react-testing-lib-msw/src/App.tsx rename to examples/react-testing-lib-msw/src/App.tsx diff --git a/test/react-testing-lib-msw/src/main.tsx b/examples/react-testing-lib-msw/src/main.tsx similarity index 100% rename from test/react-testing-lib-msw/src/main.tsx rename to examples/react-testing-lib-msw/src/main.tsx diff --git a/test/react-testing-lib-msw/src/mocks/handlers.ts b/examples/react-testing-lib-msw/src/mocks/handlers.ts similarity index 100% rename from test/react-testing-lib-msw/src/mocks/handlers.ts rename to examples/react-testing-lib-msw/src/mocks/handlers.ts diff --git a/test/react-testing-lib-msw/src/mocks/server.ts b/examples/react-testing-lib-msw/src/mocks/server.ts similarity index 100% rename from test/react-testing-lib-msw/src/mocks/server.ts rename to examples/react-testing-lib-msw/src/mocks/server.ts diff --git a/test/react-testing-lib-msw/src/setup.ts b/examples/react-testing-lib-msw/src/setup.ts similarity index 100% rename from test/react-testing-lib-msw/src/setup.ts rename to examples/react-testing-lib-msw/src/setup.ts diff --git a/test/react-testing-lib-msw/src/utils/test-utils.tsx b/examples/react-testing-lib-msw/src/utils/test-utils.tsx similarity index 100% rename from test/react-testing-lib-msw/src/utils/test-utils.tsx rename to examples/react-testing-lib-msw/src/utils/test-utils.tsx diff --git a/test/react-testing-lib-msw/tsconfig.json b/examples/react-testing-lib-msw/tsconfig.json similarity index 100% rename from test/react-testing-lib-msw/tsconfig.json rename to examples/react-testing-lib-msw/tsconfig.json diff --git a/test/react-testing-lib-msw/vite.config.ts b/examples/react-testing-lib-msw/vite.config.ts similarity index 100% rename from test/react-testing-lib-msw/vite.config.ts rename to examples/react-testing-lib-msw/vite.config.ts diff --git a/test/react-testing-lib/index.html b/examples/react-testing-lib/index.html similarity index 100% rename from test/react-testing-lib/index.html rename to examples/react-testing-lib/index.html diff --git a/test/react-testing-lib/package.json b/examples/react-testing-lib/package.json similarity index 100% rename from test/react-testing-lib/package.json rename to examples/react-testing-lib/package.json diff --git a/test/react-testing-lib/src/App.css b/examples/react-testing-lib/src/App.css similarity index 100% rename from test/react-testing-lib/src/App.css rename to examples/react-testing-lib/src/App.css diff --git a/test/react-testing-lib/src/App.test.tsx b/examples/react-testing-lib/src/App.test.tsx similarity index 100% rename from test/react-testing-lib/src/App.test.tsx rename to examples/react-testing-lib/src/App.test.tsx diff --git a/test/react-testing-lib/src/App.tsx b/examples/react-testing-lib/src/App.tsx similarity index 100% rename from test/react-testing-lib/src/App.tsx rename to examples/react-testing-lib/src/App.tsx diff --git a/test/react-testing-lib/src/components/Input.tsx b/examples/react-testing-lib/src/components/Input.tsx similarity index 100% rename from test/react-testing-lib/src/components/Input.tsx rename to examples/react-testing-lib/src/components/Input.tsx diff --git a/test/react-testing-lib/src/components/index.ts b/examples/react-testing-lib/src/components/index.ts similarity index 100% rename from test/react-testing-lib/src/components/index.ts rename to examples/react-testing-lib/src/components/index.ts diff --git a/test/react-testing-lib/src/components/input.test.tsx b/examples/react-testing-lib/src/components/input.test.tsx similarity index 100% rename from test/react-testing-lib/src/components/input.test.tsx rename to examples/react-testing-lib/src/components/input.test.tsx diff --git a/test/react-testing-lib/src/hooks/useCounter.test.ts b/examples/react-testing-lib/src/hooks/useCounter.test.ts similarity index 100% rename from test/react-testing-lib/src/hooks/useCounter.test.ts rename to examples/react-testing-lib/src/hooks/useCounter.test.ts diff --git a/test/react-testing-lib/src/hooks/useCounter.ts b/examples/react-testing-lib/src/hooks/useCounter.ts similarity index 100% rename from test/react-testing-lib/src/hooks/useCounter.ts rename to examples/react-testing-lib/src/hooks/useCounter.ts diff --git a/test/react-testing-lib/src/index.css b/examples/react-testing-lib/src/index.css similarity index 100% rename from test/react-testing-lib/src/index.css rename to examples/react-testing-lib/src/index.css diff --git a/test/react-testing-lib/src/main.tsx b/examples/react-testing-lib/src/main.tsx similarity index 100% rename from test/react-testing-lib/src/main.tsx rename to examples/react-testing-lib/src/main.tsx diff --git a/test/react-testing-lib/src/utils/test-utils.tsx b/examples/react-testing-lib/src/utils/test-utils.tsx similarity index 100% rename from test/react-testing-lib/src/utils/test-utils.tsx rename to examples/react-testing-lib/src/utils/test-utils.tsx diff --git a/test/react-testing-lib/tsconfig.json b/examples/react-testing-lib/tsconfig.json similarity index 100% rename from test/react-testing-lib/tsconfig.json rename to examples/react-testing-lib/tsconfig.json diff --git a/test/react-testing-lib/vite.config.ts b/examples/react-testing-lib/vite.config.ts similarity index 100% rename from test/react-testing-lib/vite.config.ts rename to examples/react-testing-lib/vite.config.ts diff --git a/test/react/components/Link.tsx b/examples/react/components/Link.tsx similarity index 100% rename from test/react/components/Link.tsx rename to examples/react/components/Link.tsx diff --git a/test/react/package.json b/examples/react/package.json similarity index 100% rename from test/react/package.json rename to examples/react/package.json diff --git a/test/react/test/__snapshots__/basic.test.tsx.snap b/examples/react/test/__snapshots__/basic.test.tsx.snap similarity index 100% rename from test/react/test/__snapshots__/basic.test.tsx.snap rename to examples/react/test/__snapshots__/basic.test.tsx.snap diff --git a/test/react/test/basic.test.tsx b/examples/react/test/basic.test.tsx similarity index 100% rename from test/react/test/basic.test.tsx rename to examples/react/test/basic.test.tsx diff --git a/test/react/tsconfig.json b/examples/react/tsconfig.json similarity index 100% rename from test/react/tsconfig.json rename to examples/react/tsconfig.json diff --git a/test/react/vitest.config.ts b/examples/react/vitest.config.ts similarity index 100% rename from test/react/vitest.config.ts rename to examples/react/vitest.config.ts diff --git a/test/svelte/components/Hello.svelte b/examples/svelte/components/Hello.svelte similarity index 100% rename from test/svelte/components/Hello.svelte rename to examples/svelte/components/Hello.svelte diff --git a/test/svelte/package.json b/examples/svelte/package.json similarity index 100% rename from test/svelte/package.json rename to examples/svelte/package.json diff --git a/test/svelte/test/__snapshots__/basic.test.ts.snap b/examples/svelte/test/__snapshots__/basic.test.ts.snap similarity index 100% rename from test/svelte/test/__snapshots__/basic.test.ts.snap rename to examples/svelte/test/__snapshots__/basic.test.ts.snap diff --git a/test/svelte/test/__snapshots__/hello.test.ts.snap b/examples/svelte/test/__snapshots__/hello.test.ts.snap similarity index 100% rename from test/svelte/test/__snapshots__/hello.test.ts.snap rename to examples/svelte/test/__snapshots__/hello.test.ts.snap diff --git a/test/svelte/test/basic.test.ts b/examples/svelte/test/basic.test.ts similarity index 100% rename from test/svelte/test/basic.test.ts rename to examples/svelte/test/basic.test.ts diff --git a/test/svelte/test/hello.test.ts b/examples/svelte/test/hello.test.ts similarity index 100% rename from test/svelte/test/hello.test.ts rename to examples/svelte/test/hello.test.ts diff --git a/test/svelte/vitest.config.ts b/examples/svelte/vitest.config.ts similarity index 100% rename from test/svelte/vitest.config.ts rename to examples/svelte/vitest.config.ts diff --git a/test/vitesse/package.json b/examples/vitesse/package.json similarity index 100% rename from test/vitesse/package.json rename to examples/vitesse/package.json diff --git a/test/vitesse/src/auto-import.d.ts b/examples/vitesse/src/auto-import.d.ts similarity index 100% rename from test/vitesse/src/auto-import.d.ts rename to examples/vitesse/src/auto-import.d.ts diff --git a/test/vitesse/src/components.d.ts b/examples/vitesse/src/components.d.ts similarity index 100% rename from test/vitesse/src/components.d.ts rename to examples/vitesse/src/components.d.ts diff --git a/test/vitesse/src/components/Foo.vue b/examples/vitesse/src/components/Foo.vue similarity index 100% rename from test/vitesse/src/components/Foo.vue rename to examples/vitesse/src/components/Foo.vue diff --git a/test/vitesse/src/components/Hello.vue b/examples/vitesse/src/components/Hello.vue similarity index 100% rename from test/vitesse/src/components/Hello.vue rename to examples/vitesse/src/components/Hello.vue diff --git a/test/vitesse/test/__snapshots__/basic.test.ts.snap b/examples/vitesse/test/__snapshots__/basic.test.ts.snap similarity index 100% rename from test/vitesse/test/__snapshots__/basic.test.ts.snap rename to examples/vitesse/test/__snapshots__/basic.test.ts.snap diff --git a/test/vitesse/test/basic.test.ts b/examples/vitesse/test/basic.test.ts similarity index 100% rename from test/vitesse/test/basic.test.ts rename to examples/vitesse/test/basic.test.ts diff --git a/test/vitesse/tsconfig.json b/examples/vitesse/tsconfig.json similarity index 100% rename from test/vitesse/tsconfig.json rename to examples/vitesse/tsconfig.json diff --git a/test/vitesse/vite.config.ts b/examples/vitesse/vite.config.ts similarity index 100% rename from test/vitesse/vite.config.ts rename to examples/vitesse/vite.config.ts diff --git a/test/vue/components/AsyncComp.vue b/examples/vue/components/AsyncComp.vue similarity index 100% rename from test/vue/components/AsyncComp.vue rename to examples/vue/components/AsyncComp.vue diff --git a/test/vue/components/AsyncWrapper.vue b/examples/vue/components/AsyncWrapper.vue similarity index 100% rename from test/vue/components/AsyncWrapper.vue rename to examples/vue/components/AsyncWrapper.vue diff --git a/test/vue/components/Hello.vue b/examples/vue/components/Hello.vue similarity index 100% rename from test/vue/components/Hello.vue rename to examples/vue/components/Hello.vue diff --git a/test/vue/package.json b/examples/vue/package.json similarity index 100% rename from test/vue/package.json rename to examples/vue/package.json diff --git a/test/vue/test/__snapshots__/basic.test.ts.snap b/examples/vue/test/__snapshots__/basic.test.ts.snap similarity index 100% rename from test/vue/test/__snapshots__/basic.test.ts.snap rename to examples/vue/test/__snapshots__/basic.test.ts.snap diff --git a/test/vue/test/async.test.ts b/examples/vue/test/async.test.ts similarity index 100% rename from test/vue/test/async.test.ts rename to examples/vue/test/async.test.ts diff --git a/test/vue/test/basic.test.ts b/examples/vue/test/basic.test.ts similarity index 100% rename from test/vue/test/basic.test.ts rename to examples/vue/test/basic.test.ts diff --git a/test/vue/tsconfig.json b/examples/vue/tsconfig.json similarity index 100% rename from test/vue/tsconfig.json rename to examples/vue/tsconfig.json diff --git a/test/vue/vitest.config.ts b/examples/vue/vitest.config.ts similarity index 100% rename from test/vue/vitest.config.ts rename to examples/vue/vitest.config.ts diff --git a/test/vue2/package.json b/examples/vue2/package.json similarity index 100% rename from test/vue2/package.json rename to examples/vue2/package.json diff --git a/test/vue2/pnpm-lock.yaml b/examples/vue2/pnpm-lock.yaml similarity index 100% rename from test/vue2/pnpm-lock.yaml rename to examples/vue2/pnpm-lock.yaml diff --git a/test/vue2/pnpm-workspace.yaml b/examples/vue2/pnpm-workspace.yaml similarity index 100% rename from test/vue2/pnpm-workspace.yaml rename to examples/vue2/pnpm-workspace.yaml diff --git a/test/vue2/src/components/Options.vue b/examples/vue2/src/components/Options.vue similarity index 100% rename from test/vue2/src/components/Options.vue rename to examples/vue2/src/components/Options.vue diff --git a/test/vue2/src/components/ScriptSetup.vue b/examples/vue2/src/components/ScriptSetup.vue similarity index 100% rename from test/vue2/src/components/ScriptSetup.vue rename to examples/vue2/src/components/ScriptSetup.vue diff --git a/test/vue2/test/__snapshots__/basic.test.ts.snap b/examples/vue2/test/__snapshots__/basic.test.ts.snap similarity index 100% rename from test/vue2/test/__snapshots__/basic.test.ts.snap rename to examples/vue2/test/__snapshots__/basic.test.ts.snap diff --git a/test/vue2/test/basic.test.ts b/examples/vue2/test/basic.test.ts similarity index 100% rename from test/vue2/test/basic.test.ts rename to examples/vue2/test/basic.test.ts diff --git a/test/vue2/test/script-setup.test.ts b/examples/vue2/test/script-setup.test.ts similarity index 100% rename from test/vue2/test/script-setup.test.ts rename to examples/vue2/test/script-setup.test.ts diff --git a/test/vue2/tsconfig.json b/examples/vue2/tsconfig.json similarity index 100% rename from test/vue2/tsconfig.json rename to examples/vue2/tsconfig.json diff --git a/test/vue2/vitest.config.ts b/examples/vue2/vitest.config.ts similarity index 100% rename from test/vue2/vitest.config.ts rename to examples/vue2/vitest.config.ts diff --git a/test/vue2/vitest.setup.ts b/examples/vue2/vitest.setup.ts similarity index 100% rename from test/vue2/vitest.setup.ts rename to examples/vue2/vitest.setup.ts diff --git a/package.json b/package.json index a3e58da86..b78d178be 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,12 @@ "docs": "npm -C docs run dev", "docs:build": "npm -C docs run build", "docs:serve": "npm -C docs run serve", - "postinstall": "cd test/vue2 && npx pnpm i", + "postinstall": "cd examples/vue2", "lint": "eslint --ext .js,.vue,.ts .", "lint:fix": "eslint --ext .js,.vue,.ts . --fix", "release": "bumpp package.json packages/*/package.json --commit --push --tag && pnpm -r publish --access public", "test": "vitest -r test/core --api", "test:all": "cross-env CI=true pnpm -r --stream --filter !@vitest/monorepo run test --", - "test:ci": "cross-env CI=true pnpm -r --stream --filter !@vitest/monorepo --filter !@vitest/test-fails run test --", "typecheck": "tsc --noEmit", "ui:build": "vite build packages/ui", "ui:dev": "vite packages/ui" diff --git a/packages/ui/package.json b/packages/ui/package.json index b3c85ca8a..b7fe50322 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -45,7 +45,6 @@ "unplugin-auto-import": "^0.5.5", "unplugin-vue-components": "^0.17.11", "vite-plugin-pages": "^0.19.8", - "vitest": "workspace:*", "vue": "^3.2.25", "vue-router": "^4.0.12" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c61a425c3..d13540d80 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -95,6 +95,229 @@ importers: unplugin-vue-components: 0.17.11_95e0d1fabfe6a3bc972c7b440477cc9b vitepress: 0.20.10 + examples/lit: + specifiers: + happy-dom: '*' + lit: ^2.0.2 + vite: ^2.7.10 + vitest: workspace:* + dependencies: + lit: 2.0.2 + devDependencies: + happy-dom: 2.25.1 + vite: 2.7.10 + vitest: link:../../packages/vitest + + examples/mocks: + specifiers: + '@vueuse/integrations': ^7.4.1 + axios: ^0.24.0 + tinyspy: ^0.2.6 + vite: ^2.7.10 + vitest: workspace:* + dependencies: + '@vueuse/integrations': 7.4.1_vue@3.2.26 + axios: 0.24.0 + tinyspy: 0.2.6 + devDependencies: + vite: 2.7.10 + vitest: link:../../packages/vitest + + examples/puppeteer: + specifiers: + puppeteer: ^13.0.0 + vite: ^2.7.10 + vitest: workspace:* + devDependencies: + puppeteer: 13.0.0 + vite: 2.7.10 + vitest: link:../../packages/vitest + + examples/react: + specifiers: + '@types/react': ^17.0.38 + '@types/react-test-renderer': ^17.0.1 + '@vitejs/plugin-react': 1.1.3 + jsdom: '*' + react: ^17.0.2 + react-test-renderer: 17.0.2 + vitest: workspace:* + dependencies: + react: 17.0.2 + devDependencies: + '@types/react': 17.0.38 + '@types/react-test-renderer': 17.0.1 + '@vitejs/plugin-react': 1.1.3 + jsdom: 19.0.0 + react-test-renderer: 17.0.2_react@17.0.2 + vitest: link:../../packages/vitest + + examples/react-enzyme: + specifiers: + '@types/react': ^17.0.38 + '@types/react-dom': ^17.0.11 + '@vitejs/plugin-react': 1.1.3 + enzyme: 3.11.0 + enzyme-adapter-react-16: 1.15.6 + react: ^17.0.2 + react-dom: ^17.0.2 + vite: 2.7.9 + vitest: workspace:* + dependencies: + react: 17.0.2 + react-dom: 17.0.2_react@17.0.2 + devDependencies: + '@types/react': 17.0.38 + '@types/react-dom': 17.0.11 + '@vitejs/plugin-react': 1.1.3 + enzyme: 3.11.0 + enzyme-adapter-react-16: 1.15.6_fae758709a8810ba97b4c03852dde4d0 + vite: 2.7.9 + vitest: link:../../packages/vitest + + examples/react-mui: + specifiers: + '@emotion/react': ^11.7.1 + '@emotion/styled': ^11.6.0 + '@mui/lab': '*' + '@mui/material': ^5.2.6 + '@testing-library/jest-dom': ^5.16.1 + '@testing-library/react': ^12.1.2 + '@testing-library/user-event': ^13.5.0 + date-fns: ^2.28.0 + history: ^5.2.0 + jsdom: ^19.0.0 + notistack: ^2.0.3 + react: ^17.0.2 + react-dom: ^17.0.2 + react-router-dom: ^6.2.1 + recharts: ^2.1.8 + swr: ^1.1.2 + vite: ^2.7.10 + vitest: workspace:* + dependencies: + '@emotion/react': 11.7.1_react@17.0.2 + '@emotion/styled': 11.6.0_79c1490562c3c65ef55eb132a37e39b4 + '@mui/lab': 5.0.0-alpha.63_b96ad97adb2da2a6d12b66b1cc9976c7 + '@mui/material': 5.2.6_c84e354a724f4213aa6539fdea9d08aa + history: 5.2.0 + notistack: 2.0.3_cb60ccf4b9f2d6fff1502882b432d8c4 + react: 17.0.2 + react-dom: 17.0.2_react@17.0.2 + react-router-dom: 6.2.1_react-dom@17.0.2+react@17.0.2 + recharts: 2.1.8_react-dom@17.0.2+react@17.0.2 + swr: 1.1.2_react@17.0.2 + devDependencies: + '@testing-library/jest-dom': 5.16.1 + '@testing-library/react': 12.1.2_react-dom@17.0.2+react@17.0.2 + '@testing-library/user-event': 13.5.0 + date-fns: 2.28.0 + jsdom: 19.0.0 + vite: 2.7.10 + vitest: link:../../packages/vitest + + examples/react-testing-lib: + specifiers: + '@testing-library/jest-dom': ^5.16.1 + '@testing-library/react': ^12.1.2 + '@testing-library/react-hooks': ^7.0.2 + '@testing-library/user-event': ^13.5.0 + '@types/react': ^17.0.38 + '@types/react-dom': ^17.0.11 + '@vitejs/plugin-react': ^1.1.3 + happy-dom: '*' + react: ^17.0.2 + react-dom: ^17.0.2 + vite: ^2.7.10 + vitest: workspace:* + dependencies: + react: 17.0.2 + react-dom: 17.0.2_react@17.0.2 + devDependencies: + '@testing-library/jest-dom': 5.16.1 + '@testing-library/react': 12.1.2_react-dom@17.0.2+react@17.0.2 + '@testing-library/react-hooks': 7.0.2_react-dom@17.0.2+react@17.0.2 + '@testing-library/user-event': 13.5.0 + '@types/react': 17.0.38 + '@types/react-dom': 17.0.11 + '@vitejs/plugin-react': 1.1.3 + happy-dom: 2.25.1 + vite: 2.7.10 + vitest: link:../../packages/vitest + + examples/react-testing-lib-msw: + specifiers: + '@testing-library/react': ^12.1.2 + '@testing-library/user-event': ^13.5.0 + '@types/react': ^17.0.38 + '@types/react-dom': ^17.0.11 + '@vitejs/plugin-react': ^1.1.3 + cross-fetch: ^3.1.4 + msw: ^0.36.3 + react: ^17.0.2 + react-dom: ^17.0.2 + vite: ^2.7.10 + vitest: workspace:* + dependencies: + react: 17.0.2 + react-dom: 17.0.2_react@17.0.2 + devDependencies: + '@testing-library/react': 12.1.2_react-dom@17.0.2+react@17.0.2 + '@testing-library/user-event': 13.5.0 + '@types/react': 17.0.38 + '@types/react-dom': 17.0.11 + '@vitejs/plugin-react': 1.1.3 + cross-fetch: 3.1.4 + msw: 0.36.3 + vite: 2.7.10 + vitest: link:../../packages/vitest + + examples/svelte: + specifiers: + '@sveltejs/vite-plugin-svelte': ^1.0.0-next.32 + '@testing-library/svelte': ^3.0.3 + svelte: ^3.44.3 + vitest: workspace:* + devDependencies: + '@sveltejs/vite-plugin-svelte': 1.0.0-next.32_svelte@3.44.3+vite@2.7.10 + '@testing-library/svelte': 3.0.3_svelte@3.44.3 + svelte: 3.44.3 + vitest: link:../../packages/vitest + + examples/vitesse: + specifiers: + '@vitejs/plugin-vue': ^2.0.1 + '@vue/test-utils': ^2.0.0-rc.18 + happy-dom: '*' + unplugin-auto-import: ^0.5.5 + unplugin-vue-components: ^0.17.11 + vitest: workspace:* + vue: ^3.2.24 + dependencies: + vue: 3.2.26 + devDependencies: + '@vitejs/plugin-vue': 2.0.1_vite@2.7.10+vue@3.2.26 + '@vue/test-utils': 2.0.0-rc.18_vue@3.2.26 + happy-dom: 2.25.1 + unplugin-auto-import: 0.5.5_rollup@2.62.0+vite@2.7.10 + unplugin-vue-components: 0.17.11_95e0d1fabfe6a3bc972c7b440477cc9b + vitest: link:../../packages/vitest + + examples/vue: + specifiers: + '@vitejs/plugin-vue': ^2.0.1 + '@vue/test-utils': ^2.0.0-rc.18 + happy-dom: '*' + vitest: workspace:* + vue: ^3.2.25 + dependencies: + vue: 3.2.26 + devDependencies: + '@vitejs/plugin-vue': 2.0.1_vite@2.7.10+vue@3.2.26 + '@vue/test-utils': 2.0.0-rc.18_vue@3.2.26 + happy-dom: 2.25.1 + vitest: link:../../packages/vitest + packages/ui: specifiers: '@types/codemirror': ^5.60.5 @@ -114,7 +337,6 @@ importers: unplugin-auto-import: ^0.5.5 unplugin-vue-components: ^0.17.11 vite-plugin-pages: ^0.19.8 - vitest: workspace:* vue: ^3.2.25 vue-router: ^4.0.12 dependencies: @@ -136,7 +358,6 @@ importers: unplugin-auto-import: 0.5.5_59c90b04d73d3c8f46cd2a5a932f8e09 unplugin-vue-components: 0.17.11_95e0d1fabfe6a3bc972c7b440477cc9b vite-plugin-pages: 0.19.8_vite@2.7.10 - vitest: link:../vitest vue: 3.2.26 vue-router: 4.0.12_vue@3.2.26 @@ -227,294 +448,71 @@ importers: prompts: 2.4.2 rollup: 2.62.0 source-map-js: 1.0.1 - strip-ansi: 7.0.1 - typescript: 4.5.4 - ws: 8.4.0 - - packages/ws-client: - specifiers: - birpc: ^0.0.2 - flatted: ^3.2.4 - rollup: ^2.62.0 - ws: ^8.4.0 - dependencies: - birpc: 0.0.2 - flatted: 3.2.4 - ws: 8.4.0 - devDependencies: - rollup: 2.62.0 - - test/cjs: - specifiers: - '@types/fs-extra': ^9.0.13 - '@types/prettier': ^2.4.2 - fs-extra: ^10.0.0 - givens: 1.3.9 - history: ^5.2.0 - prettier: ^2.5.1 - vitest: workspace:* - devDependencies: - '@types/fs-extra': 9.0.13 - '@types/prettier': 2.4.2 - fs-extra: 10.0.0 - givens: 1.3.9 - history: 5.2.0 - prettier: 2.5.1 - vitest: link:../../packages/vitest - - test/core: - specifiers: - vitest: workspace:* - devDependencies: - vitest: link:../../packages/vitest - - test/coverage-test: - specifiers: - vitest: workspace:* - devDependencies: - vitest: link:../../packages/vitest - - test/fails: - specifiers: - execa: ^6.0.0 - vitest: workspace:* - devDependencies: - execa: 6.0.0 - vitest: link:../../packages/vitest - - test/lit: - specifiers: - happy-dom: '*' - lit: ^2.0.2 - vite: ^2.7.10 - vitest: workspace:* - dependencies: - lit: 2.0.2 - devDependencies: - happy-dom: 2.24.5 - vite: 2.7.10 - vitest: link:../../packages/vitest - - test/mocks: - specifiers: - '@vueuse/integrations': ^7.4.1 - axios: ^0.24.0 - tinyspy: ^0.2.6 - vite: ^2.7.10 - vitest: workspace:* - dependencies: - '@vueuse/integrations': 7.4.1_vue@3.2.26 - axios: 0.24.0 - tinyspy: 0.2.6 - devDependencies: - vite: 2.7.10 - vitest: link:../../packages/vitest - - test/puppeteer: - specifiers: - puppeteer: ^13.0.0 - vite: ^2.7.10 - vitest: workspace:* - devDependencies: - puppeteer: 13.0.0 - vite: 2.7.10 - vitest: link:../../packages/vitest - - test/react: - specifiers: - '@types/react': ^17.0.38 - '@types/react-test-renderer': ^17.0.1 - '@vitejs/plugin-react': 1.1.3 - jsdom: '*' - react: ^17.0.2 - react-test-renderer: 17.0.2 - vitest: workspace:* - dependencies: - react: 17.0.2 - devDependencies: - '@types/react': 17.0.38 - '@types/react-test-renderer': 17.0.1 - '@vitejs/plugin-react': 1.1.3 - jsdom: 19.0.0 - react-test-renderer: 17.0.2_react@17.0.2 - vitest: link:../../packages/vitest - - test/react-enzyme: - specifiers: - '@types/react': ^17.0.38 - '@types/react-dom': ^17.0.11 - '@vitejs/plugin-react': 1.1.3 - enzyme: 3.11.0 - enzyme-adapter-react-16: 1.15.6 - react: ^17.0.2 - react-dom: ^17.0.2 - vite: 2.7.9 - vitest: workspace:* - dependencies: - react: 17.0.2 - react-dom: 17.0.2_react@17.0.2 - devDependencies: - '@types/react': 17.0.38 - '@types/react-dom': 17.0.11 - '@vitejs/plugin-react': 1.1.3 - enzyme: 3.11.0 - enzyme-adapter-react-16: 1.15.6_fae758709a8810ba97b4c03852dde4d0 - vite: 2.7.9 - vitest: link:../../packages/vitest - - test/react-mui: - specifiers: - '@emotion/react': ^11.7.1 - '@emotion/styled': ^11.6.0 - '@mui/lab': '*' - '@mui/material': ^5.2.6 - '@testing-library/jest-dom': ^5.16.1 - '@testing-library/react': ^12.1.2 - '@testing-library/user-event': ^13.5.0 - date-fns: ^2.28.0 - history: ^5.2.0 - jsdom: ^19.0.0 - notistack: ^2.0.3 - react: ^17.0.2 - react-dom: ^17.0.2 - react-router-dom: ^6.2.1 - recharts: ^2.1.8 - swr: ^1.1.2 - vite: ^2.7.10 - vitest: workspace:* - dependencies: - '@emotion/react': 11.7.1_react@17.0.2 - '@emotion/styled': 11.6.0_79c1490562c3c65ef55eb132a37e39b4 - '@mui/lab': 5.0.0-alpha.62_b96ad97adb2da2a6d12b66b1cc9976c7 - '@mui/material': 5.2.6_c84e354a724f4213aa6539fdea9d08aa - history: 5.2.0 - notistack: 2.0.3_cb60ccf4b9f2d6fff1502882b432d8c4 - react: 17.0.2 - react-dom: 17.0.2_react@17.0.2 - react-router-dom: 6.2.1_react-dom@17.0.2+react@17.0.2 - recharts: 2.1.8_react-dom@17.0.2+react@17.0.2 - swr: 1.1.2_react@17.0.2 - devDependencies: - '@testing-library/jest-dom': 5.16.1 - '@testing-library/react': 12.1.2_react-dom@17.0.2+react@17.0.2 - '@testing-library/user-event': 13.5.0 - date-fns: 2.28.0 - jsdom: 19.0.0 - vite: 2.7.10 - vitest: link:../../packages/vitest + strip-ansi: 7.0.1 + typescript: 4.5.4 + ws: 8.4.0 - test/react-testing-lib: + packages/ws-client: specifiers: - '@testing-library/jest-dom': ^5.16.1 - '@testing-library/react': ^12.1.2 - '@testing-library/react-hooks': ^7.0.2 - '@testing-library/user-event': ^13.5.0 - '@types/react': ^17.0.38 - '@types/react-dom': ^17.0.11 - '@vitejs/plugin-react': ^1.1.3 - happy-dom: '*' - react: ^17.0.2 - react-dom: ^17.0.2 - vite: ^2.7.10 - vitest: workspace:* + birpc: ^0.0.2 + flatted: ^3.2.4 + rollup: ^2.62.0 + ws: ^8.4.0 dependencies: - react: 17.0.2 - react-dom: 17.0.2_react@17.0.2 + birpc: 0.0.2 + flatted: 3.2.4 + ws: 8.4.0 devDependencies: - '@testing-library/jest-dom': 5.16.1 - '@testing-library/react': 12.1.2_react-dom@17.0.2+react@17.0.2 - '@testing-library/react-hooks': 7.0.2_react-dom@17.0.2+react@17.0.2 - '@testing-library/user-event': 13.5.0 - '@types/react': 17.0.38 - '@types/react-dom': 17.0.11 - '@vitejs/plugin-react': 1.1.3 - happy-dom: 2.25.1 - vite: 2.7.10 - vitest: link:../../packages/vitest + rollup: 2.62.0 - test/react-testing-lib-msw: + test/cjs: specifiers: - '@testing-library/react': ^12.1.2 - '@testing-library/user-event': ^13.5.0 - '@types/react': ^17.0.38 - '@types/react-dom': ^17.0.11 - '@vitejs/plugin-react': ^1.1.3 - cross-fetch: ^3.1.4 - msw: ^0.36.3 - react: ^17.0.2 - react-dom: ^17.0.2 - vite: ^2.7.10 + '@types/fs-extra': ^9.0.13 + '@types/prettier': ^2.4.2 + fs-extra: ^10.0.0 + givens: 1.3.9 + history: ^5.2.0 + prettier: ^2.5.1 vitest: workspace:* - dependencies: - react: 17.0.2 - react-dom: 17.0.2_react@17.0.2 devDependencies: - '@testing-library/react': 12.1.2_react-dom@17.0.2+react@17.0.2 - '@testing-library/user-event': 13.5.0 - '@types/react': 17.0.38 - '@types/react-dom': 17.0.11 - '@vitejs/plugin-react': 1.1.3 - cross-fetch: 3.1.4 - msw: 0.36.3 - vite: 2.7.10 + '@types/fs-extra': 9.0.13 + '@types/prettier': 2.4.2 + fs-extra: 10.0.0 + givens: 1.3.9 + history: 5.2.0 + prettier: 2.5.1 vitest: link:../../packages/vitest - test/related: + test/core: specifiers: vitest: workspace:* devDependencies: vitest: link:../../packages/vitest - test/single-thread: + test/coverage-test: specifiers: vitest: workspace:* devDependencies: vitest: link:../../packages/vitest - test/svelte: + test/fails: specifiers: - '@sveltejs/vite-plugin-svelte': ^1.0.0-next.32 - '@testing-library/svelte': ^3.0.3 - svelte: ^3.44.3 + execa: ^6.0.0 vitest: workspace:* devDependencies: - '@sveltejs/vite-plugin-svelte': 1.0.0-next.32_svelte@3.44.3+vite@2.7.10 - '@testing-library/svelte': 3.0.3_svelte@3.44.3 - svelte: 3.44.3 + execa: 6.0.0 vitest: link:../../packages/vitest - test/vitesse: + test/related: specifiers: - '@vitejs/plugin-vue': ^2.0.1 - '@vue/test-utils': ^2.0.0-rc.18 - happy-dom: '*' - unplugin-auto-import: ^0.5.5 - unplugin-vue-components: ^0.17.11 vitest: workspace:* - vue: ^3.2.24 - dependencies: - vue: 3.2.24 devDependencies: - '@vitejs/plugin-vue': 2.0.1_vite@2.7.10+vue@3.2.24 - '@vue/test-utils': 2.0.0-rc.18_vue@3.2.24 - happy-dom: 2.24.5 - unplugin-auto-import: 0.5.5_rollup@2.62.0+vite@2.7.10 - unplugin-vue-components: 0.17.11_b44eba499650d3d92c28880fcfd71eaf vitest: link:../../packages/vitest - test/vue: + test/single-thread: specifiers: - '@vitejs/plugin-vue': ^2.0.1 - '@vue/test-utils': ^2.0.0-rc.18 - happy-dom: '*' vitest: workspace:* - vue: ^3.2.25 - dependencies: - vue: 3.2.26 devDependencies: - '@vitejs/plugin-vue': 2.0.1_vite@2.7.10+vue@3.2.26 - '@vue/test-utils': 2.0.0-rc.18_vue@3.2.26 - happy-dom: 2.24.5 vitest: link:../../packages/vitest packages: @@ -931,12 +929,6 @@ packages: chalk: 2.4.2 js-tokens: 4.0.0 - /@babel/parser/7.16.4: - resolution: {integrity: sha512-6V0qdPUaiVHH3RtZeLIsc+6pDhbYzHR8ogA8w+f+Wc77DuXto19g2QUwveINoS34Uw+W8/hQDGJCx+i4n7xcng==} - engines: {node: '>=6.0.0'} - hasBin: true - dev: false - /@babel/parser/7.16.6: resolution: {integrity: sha512-Gr86ujcNuPDnNOY8mi383Hvi8IYrJVJYuf3XcuBM/Dgd+bINn/7tHqsj+tKkoreMbmGsFLsltI/JJd8fOFWGDQ==} engines: {node: '>=6.0.0'} @@ -1315,7 +1307,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.3 '@types/istanbul-reports': 3.0.0 - '@types/node': 16.11.12 + '@types/node': 17.0.5 '@types/yargs': 15.0.14 chalk: 4.1.2 dev: true @@ -1387,8 +1379,30 @@ packages: react-is: 17.0.2 dev: false - /@mui/lab/5.0.0-alpha.62_b96ad97adb2da2a6d12b66b1cc9976c7: - resolution: {integrity: sha512-oUxGhoaTvNFiXjV6xe3pGu+wvQsDC9R8Q6Os8xL4TUwihdaU/pIBRuUiANtJOZJPgJ1JyUpTwZZDTvOiCQFwZA==} + /@mui/base/5.0.0-alpha.63_react-dom@17.0.2+react@17.0.2: + resolution: {integrity: sha512-/jURXlBAYqZaWw92XfJgc6aiHnDcNVuRxBskub57HXWCMK3OiVVdfUEWJEdCjOacCKiw3+Etc5alI9Omaqrg2g==} + engines: {node: '>=12.0.0'} + peerDependencies: + '@types/react': ^16.8.6 || ^17.0.0 + react: ^17.0.2 + react-dom: ^17.0.2 + peerDependenciesMeta: + '@types/react': + optional: true + dependencies: + '@babel/runtime': 7.16.3 + '@emotion/is-prop-valid': 1.1.1 + '@mui/utils': 5.2.3_react@17.0.2 + '@popperjs/core': 2.11.0 + clsx: 1.1.1 + prop-types: 15.7.2 + react: 17.0.2 + react-dom: 17.0.2_react@17.0.2 + react-is: 17.0.2 + dev: false + + /@mui/lab/5.0.0-alpha.63_b96ad97adb2da2a6d12b66b1cc9976c7: + resolution: {integrity: sha512-BFexWjiiXZ2aWfSq+4j1cua7XmCt7BIDC27MgFWoKY6O0Fe3zeUz/6WH0M5+4VKT+yn3DC3vzWGAWKmNDa3TUQ==} engines: {node: '>=12.0.0'} peerDependencies: '@mui/material': ^5.0.0 @@ -1416,7 +1430,7 @@ packages: '@date-io/dayjs': 2.11.0 '@date-io/luxon': 2.11.1 '@date-io/moment': 2.11.0 - '@mui/base': 5.0.0-alpha.62_react-dom@17.0.2+react@17.0.2 + '@mui/base': 5.0.0-alpha.63_react-dom@17.0.2+react@17.0.2 '@mui/material': 5.2.6_c84e354a724f4213aa6539fdea9d08aa '@mui/system': 5.2.6_922a85da57e3646a57465b7970b0de85 '@mui/utils': 5.2.3_react@17.0.2 @@ -1651,14 +1665,6 @@ packages: rollup: 2.62.0 dev: true - /@rollup/pluginutils/4.1.1: - resolution: {integrity: sha512-clDjivHqWGXi7u+0d2r2sBi4Ie6VLEAzWMIkvJLnDmxoOhBYOTfzGbOQBA32THHm11/LiJbd01tJUpJsbshSWQ==} - engines: {node: '>= 8.0.0'} - dependencies: - estree-walker: 2.0.2 - picomatch: 2.3.0 - dev: true - /@rollup/pluginutils/4.1.2: resolution: {integrity: sha512-ROn4qvkxP9SyPeHaf7uQC/GPFY6L/OWy9+bd9AwcjOAWQwxRscoEyAUD8qCY5o5iL4jqQwoLk2kaTKJPb/HwzQ==} engines: {node: '>= 8.0.0'} @@ -1678,7 +1684,7 @@ packages: diff-match-patch: optional: true dependencies: - '@rollup/pluginutils': 4.1.1 + '@rollup/pluginutils': 4.1.2 debug: 4.3.3 kleur: 4.1.4 magic-string: 0.25.7 @@ -1953,10 +1959,6 @@ packages: resolution: {integrity: sha512-eMhwJXc931Ihh4tkU+Y7GiLzT/y/DBNpNtr4yU9O2w3SYBsr9NaOPhQlLKRmoWtI54uNwuo0IOUFQjVOTZYRvw==} dev: true - /@types/node/17.0.4: - resolution: {integrity: sha512-6xwbrW4JJiJLgF+zNypN5wr2ykM9/jHcL7rQ8fZe2vuftggjzZeRSM4OwRc6Xk8qWjwJ99qVHo/JgOGmomWRog==} - dev: true - /@types/node/17.0.5: resolution: {integrity: sha512-w3mrvNXLeDYV1GKTZorGJQivK6XLCoGwpnyJFbJVK/aTBQUxOCaa/GlFAAN3OTDFcb7h5tiFG+YXCO2By+riZw==} dev: true @@ -2039,7 +2041,7 @@ packages: /@types/set-cookie-parser/2.4.2: resolution: {integrity: sha512-fBZgytwhYAUkj/jC/FAV4RQ5EerRup1YQsXQCh8rZfiHkc4UahC192oH0smGwsXol3cL3A5oETuAHeQHmhXM4w==} dependencies: - '@types/node': 17.0.4 + '@types/node': 17.0.5 dev: true /@types/tern/0.23.4: @@ -2061,7 +2063,7 @@ packages: /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 17.0.4 + '@types/node': 17.0.5 dev: true /@types/tough-cookie/4.0.1: @@ -2098,7 +2100,7 @@ packages: resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==} requiresBuild: true dependencies: - '@types/node': 16.11.12 + '@types/node': 17.0.5 dev: true optional: true @@ -2312,17 +2314,6 @@ packages: - supports-color dev: true - /@vitejs/plugin-vue/2.0.1_vite@2.7.10+vue@3.2.24: - resolution: {integrity: sha512-wtdMnGVvys9K8tg+DxowU1ytTrdVveXr3LzdhaKakysgGXyrsfaeds2cDywtvujEASjWOwWL/OgWM+qoeM8Plg==} - engines: {node: '>=12.0.0'} - peerDependencies: - vite: ^2.5.10 - vue: ^3.2.25 - dependencies: - vite: 2.7.10 - vue: 3.2.24 - dev: true - /@vitejs/plugin-vue/2.0.1_vite@2.7.10+vue@3.2.26: resolution: {integrity: sha512-wtdMnGVvys9K8tg+DxowU1ytTrdVveXr3LzdhaKakysgGXyrsfaeds2cDywtvujEASjWOwWL/OgWM+qoeM8Plg==} engines: {node: '>=12.0.0'} @@ -2345,15 +2336,6 @@ packages: vue: 3.2.26 dev: true - /@vue/compiler-core/3.2.24: - resolution: {integrity: sha512-A0SxB2HAggKzP57LDin5gfgWOTwFyGCtQ5MTMNBADnfQYALWnYuC8kMI0DhRSplGTWRvn9Z2DAnG8f35BnojuA==} - dependencies: - '@babel/parser': 7.16.6 - '@vue/shared': 3.2.24 - estree-walker: 2.0.2 - source-map: 0.6.1 - dev: false - /@vue/compiler-core/3.2.26: resolution: {integrity: sha512-N5XNBobZbaASdzY9Lga2D9Lul5vdCIOXvUMd6ThcN8zgqQhPKfCV+wfAJNNJKQkSHudnYRO2gEB+lp0iN3g2Tw==} dependencies: @@ -2362,34 +2344,12 @@ packages: estree-walker: 2.0.2 source-map: 0.6.1 - /@vue/compiler-dom/3.2.24: - resolution: {integrity: sha512-KQEm8r0JFsrNNIfbD28pcwMvHpcJcwjVR1XWFcD0yyQ8eREd7IXhT7J6j7iNCSE/TIo78NOvkwbyX+lnIm836w==} - dependencies: - '@vue/compiler-core': 3.2.24 - '@vue/shared': 3.2.24 - dev: false - /@vue/compiler-dom/3.2.26: resolution: {integrity: sha512-smBfaOW6mQDxcT3p9TKT6mE22vjxjJL50GFVJiI0chXYGU/xzC05QRGrW3HHVuJrmLTLx5zBhsZ2dIATERbarg==} dependencies: '@vue/compiler-core': 3.2.26 '@vue/shared': 3.2.26 - /@vue/compiler-sfc/3.2.24: - resolution: {integrity: sha512-YGPcIvVJp2qTPkuT6kT43Eo1xjstyY4bmuiSV31my4bQMBFVR26ANmifUSt759Blok71gK0WzfIZHbcOKYOeKA==} - dependencies: - '@babel/parser': 7.16.4 - '@vue/compiler-core': 3.2.24 - '@vue/compiler-dom': 3.2.24 - '@vue/compiler-ssr': 3.2.24 - '@vue/ref-transform': 3.2.24 - '@vue/shared': 3.2.24 - estree-walker: 2.0.2 - magic-string: 0.25.7 - postcss: 8.4.4 - source-map: 0.6.1 - dev: false - /@vue/compiler-sfc/3.2.26: resolution: {integrity: sha512-ePpnfktV90UcLdsDQUh2JdiTuhV0Skv2iYXxfNMOK/F3Q+2BO0AulcVcfoksOpTJGmhhfosWfMyEaEf0UaWpIw==} dependencies: @@ -2401,16 +2361,9 @@ packages: '@vue/shared': 3.2.26 estree-walker: 2.0.2 magic-string: 0.25.7 - postcss: 8.4.4 + postcss: 8.4.5 source-map: 0.6.1 - /@vue/compiler-ssr/3.2.24: - resolution: {integrity: sha512-E1HHShNsGVWXxs68LDOUuI+Bzak9W/Ier/366aKDBFuwvfwgruwq6abhMfj6pSDZpwZ/PXnfliyl/m7qBSq6gw==} - dependencies: - '@vue/compiler-dom': 3.2.24 - '@vue/shared': 3.2.24 - dev: false - /@vue/compiler-ssr/3.2.26: resolution: {integrity: sha512-2mywLX0ODc4Zn8qBoA2PDCsLEZfpUGZcyoFRLSOjyGGK6wDy2/5kyDOWtf0S0UvtoyVq95OTSGIALjZ4k2q/ag==} dependencies: @@ -2430,48 +2383,17 @@ packages: estree-walker: 2.0.2 magic-string: 0.25.7 - /@vue/reactivity/3.2.24: - resolution: {integrity: sha512-5eVsO9wfQ5erCMSRBjpqLkkI+LglJS7E0oLZJs2gsChpvOjH2Uwt3Hk1nVv0ywStnWg71Ykn3SyQwtnl7PknOQ==} - dependencies: - '@vue/shared': 3.2.24 - dev: false - /@vue/reactivity/3.2.26: resolution: {integrity: sha512-h38bxCZLW6oFJVDlCcAiUKFnXI8xP8d+eO0pcDxx+7dQfSPje2AO6M9S9QO6MrxQB7fGP0DH0dYQ8ksf6hrXKQ==} dependencies: '@vue/shared': 3.2.26 - /@vue/ref-transform/3.2.24: - resolution: {integrity: sha512-j6oNbsGLvea2rF8GQB9w6q7UFL1So7J+t6ducaMeWPSyjYZ+slWpwPVK6mmyghg5oGqC41R+HC5BV036Y0KhXQ==} - dependencies: - '@babel/parser': 7.16.6 - '@vue/compiler-core': 3.2.24 - '@vue/shared': 3.2.24 - estree-walker: 2.0.2 - magic-string: 0.25.7 - dev: false - - /@vue/runtime-core/3.2.24: - resolution: {integrity: sha512-ReI06vGgYuW0G8FlOcAOzMklVDJSxKuRhYzT8j+a8BTfs1945kxo1Th28BPvasyYx8J+LMeZ0HqpPH9yGXvWvg==} - dependencies: - '@vue/reactivity': 3.2.24 - '@vue/shared': 3.2.24 - dev: false - /@vue/runtime-core/3.2.26: resolution: {integrity: sha512-BcYi7qZ9Nn+CJDJrHQ6Zsmxei2hDW0L6AB4vPvUQGBm2fZyC0GXd/4nVbyA2ubmuhctD5RbYY8L+5GUJszv9mQ==} dependencies: '@vue/reactivity': 3.2.26 '@vue/shared': 3.2.26 - /@vue/runtime-dom/3.2.24: - resolution: {integrity: sha512-piqsabtIEUKkMGSJlOyKUonZEDtdwOpR6teQ8EKbH8PX9sxfAt9snLnFJldUhhyYrLIyDtnjwajfJ7/XtpD4JA==} - dependencies: - '@vue/runtime-core': 3.2.24 - '@vue/shared': 3.2.24 - csstype: 2.6.19 - dev: false - /@vue/runtime-dom/3.2.26: resolution: {integrity: sha512-dY56UIiZI+gjc4e8JQBwAifljyexfVCkIAu/WX8snh8vSOt/gMSEGwPRcl2UpYpBYeyExV8WCbgvwWRNt9cHhQ==} dependencies: @@ -2479,16 +2401,6 @@ packages: '@vue/shared': 3.2.26 csstype: 2.6.19 - /@vue/server-renderer/3.2.24_vue@3.2.24: - resolution: {integrity: sha512-DqiCRDxTbv67Hw5ImiqnLIQbPGtIwWLLfEcVHoEnu1f21EMTB6LfoS69EQddd8VyfN5kfX3Fmz27/hrFPpRaMQ==} - peerDependencies: - vue: 3.2.24 - dependencies: - '@vue/compiler-ssr': 3.2.24 - '@vue/shared': 3.2.24 - vue: 3.2.24 - dev: false - /@vue/server-renderer/3.2.26_vue@3.2.26: resolution: {integrity: sha512-Jp5SggDUvvUYSBIvYEhy76t4nr1vapY/FIFloWmQzn7UxqaHrrBpbxrqPcTrSgGrcaglj0VBp22BKJNre4aA1w==} peerDependencies: @@ -2498,21 +2410,9 @@ packages: '@vue/shared': 3.2.26 vue: 3.2.26 - /@vue/shared/3.2.24: - resolution: {integrity: sha512-BUgRiZCkCrqDps5aQ9av05xcge3rn092ztKIh17tHkeEFgP4zfXMQWBA2zfdoCdCEdBL26xtOv+FZYiOp9RUDA==} - dev: false - /@vue/shared/3.2.26: resolution: {integrity: sha512-vPV6Cq+NIWbH5pZu+V+2QHE9y1qfuTq49uNWw4f7FDEeZaDU2H2cx5jcUZOAKW7qTrUS4k6qZPbMy1x4N96nbA==} - /@vue/test-utils/2.0.0-rc.18_vue@3.2.24: - resolution: {integrity: sha512-aifolXjVdsogjaLmDoZ0FU8vN+R67aWmg9OuVeED4w5Ij5GFQLrlhM19uhWe/r5xXUL4fXMk3pX5wW6FJP1NcQ==} - peerDependencies: - vue: ^3.0.1 - dependencies: - vue: 3.2.24 - dev: true - /@vue/test-utils/2.0.0-rc.18_vue@3.2.26: resolution: {integrity: sha512-aifolXjVdsogjaLmDoZ0FU8vN+R67aWmg9OuVeED4w5Ij5GFQLrlhM19uhWe/r5xXUL4fXMk3pX5wW6FJP1NcQ==} peerDependencies: @@ -3055,7 +2955,7 @@ packages: css-select: 4.2.1 css-what: 5.1.0 domelementtype: 2.2.0 - domhandler: 4.2.2 + domhandler: 4.3.0 domutils: 2.8.0 dev: true @@ -3065,7 +2965,7 @@ packages: dependencies: cheerio-select: 1.5.0 dom-serializer: 1.3.2 - domhandler: 4.2.2 + domhandler: 4.3.0 htmlparser2: 6.1.0 parse5: 6.0.1 parse5-htmlparser2-tree-adapter: 6.0.1 @@ -3681,7 +3581,7 @@ packages: resolution: {integrity: sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==} dependencies: domelementtype: 2.2.0 - domhandler: 4.2.2 + domhandler: 4.3.0 entities: 2.2.0 dev: true @@ -3715,7 +3615,7 @@ packages: dependencies: dom-serializer: 1.3.2 domelementtype: 2.2.0 - domhandler: 4.2.2 + domhandler: 4.3.0 dev: true /drauu/0.2.1: @@ -5044,17 +4944,6 @@ packages: duplexer: 0.1.2 dev: true - /happy-dom/2.24.5: - resolution: {integrity: sha512-FJw/ZbWWKmn/t67VnoelQ27NhaMwfUUXsBqYFp74LdKZJ3DleSZlA2iAS+DDxYpkQtdOV5MjuBk0t60W9g/new==} - dependencies: - he: 1.2.0 - node-fetch: 2.6.6 - sync-request: 6.1.0 - webidl-conversions: 7.0.0 - whatwg-encoding: 1.0.5 - whatwg-mimetype: 2.3.0 - dev: true - /happy-dom/2.25.1: resolution: {integrity: sha512-HGNjJ0rROjpRvGUaZ9exj9hbR2rTeKJyhswmr+YhRr/jQuYmXdokq0oHVUkqo2AkJRnF/8FEWDENdrLorib8lA==} dependencies: @@ -5143,7 +5032,7 @@ packages: resolution: {integrity: sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==} dependencies: domelementtype: 2.2.0 - domhandler: 4.2.2 + domhandler: 4.3.0 domutils: 2.8.0 entities: 2.2.0 dev: true @@ -6501,14 +6390,6 @@ packages: resolution: {integrity: sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==} dev: false - /postcss/8.4.4: - resolution: {integrity: sha512-joU6fBsN6EIer28Lj6GDFoC/5yOZzLCfn0zHAn/MYXI7aPt4m4hK5KC5ovEZXy+lnCjmYIbQWngvju2ddyEr8Q==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.1.30 - picocolors: 1.0.0 - source-map-js: 1.0.1 - /postcss/8.4.5: resolution: {integrity: sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==} engines: {node: ^10 || ^12 || >=14} @@ -7047,7 +6928,7 @@ packages: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} hasBin: true dependencies: - glob: 7.1.6 + glob: 7.2.0 dev: true /rollup-plugin-dts/4.1.0_rollup@2.62.0+typescript@4.5.4: @@ -7850,37 +7731,6 @@ packages: - webpack dev: true - /unplugin-vue-components/0.17.11_b44eba499650d3d92c28880fcfd71eaf: - resolution: {integrity: sha512-u5MQ0TbikszRelCt6EA/HskGtGkGLDxi7tQ4/4tcEPWkH3yXSZRJCOeLF5MSdxN1SiGjaJ0I9zeHjoZFC3FvRw==} - engines: {node: '>=14'} - peerDependencies: - '@babel/parser': ^7.15.8 - '@babel/traverse': ^7.15.4 - vue: 2 || 3 - peerDependenciesMeta: - '@babel/parser': - optional: true - '@babel/traverse': - optional: true - dependencies: - '@antfu/utils': 0.3.0 - '@rollup/pluginutils': 4.1.2 - chokidar: 3.5.2 - debug: 4.3.3 - fast-glob: 3.2.7 - local-pkg: 0.4.0 - magic-string: 0.25.7 - minimatch: 3.0.4 - resolve: 1.20.0 - unplugin: 0.2.21_rollup@2.62.0+vite@2.7.10 - vue: 3.2.24 - transitivePeerDependencies: - - rollup - - supports-color - - vite - - webpack - dev: true - /unplugin/0.2.21_rollup@2.62.0+vite@2.7.10: resolution: {integrity: sha512-IJ15/L5XbhnV7J09Zjk0FT5HEkBjkXucWAXQWRsmEtUxmmxwh23yavrmDbCF6ZPxWiVB28+wnKIHePTRRpQPbQ==} peerDependencies: @@ -8087,16 +7937,6 @@ packages: vue: 3.2.26 dev: true - /vue/3.2.24: - resolution: {integrity: sha512-PvCklXNfcUMyeP/a9nME27C32IipwUDoS45rDyKn5+RQrWyjL+0JAJtf98HL6y9bfqQRTlYjSowWEB1nXxvG5Q==} - dependencies: - '@vue/compiler-dom': 3.2.24 - '@vue/compiler-sfc': 3.2.24 - '@vue/runtime-dom': 3.2.24 - '@vue/server-renderer': 3.2.24_vue@3.2.24 - '@vue/shared': 3.2.24 - dev: false - /vue/3.2.26: resolution: {integrity: sha512-KD4lULmskL5cCsEkfhERVRIOEDrfEL9CwAsLYpzptOGjaGFNWo3BQ9g8MAb7RaIO71rmVOziZ/uEN/rHwcUIhg==} dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 91391797d..22dd28ed7 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,6 @@ packages: - docs - packages/* + - examples/* - test/* - - '!test/vue2' + - '!examples/vue2' diff --git a/test/related/tests/related.test.ts b/test/related/tests/related.test.ts index c571be4fa..c6f9304b7 100644 --- a/test/related/tests/related.test.ts +++ b/test/related/tests/related.test.ts @@ -2,9 +2,9 @@ import { access } from 'fs' import { sep } from 'pathe' import { A } from '../src/sourceA' -test('A equeals A', () => { +test('A equals A', () => { expect(A).toBe('A') expect(typeof sep).toBe('string') - // doesnt throw + // doesn't throw expect(typeof access).toBe('function') }) diff --git a/tsconfig.json b/tsconfig.json index ab0410cbe..ce69a8a42 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,6 +27,7 @@ "**/dist/**", "./packages/ui/client/**", "./test/**/*.*", + "./examples/**/*.*", "./bench/**" ] } -- 2.51.2