diff --git a/.github/workflows/ecosystem-ci-from-pr.yml b/.github/workflows/ecosystem-ci-from-pr.yml index c9c21da..87de9ad 100644 --- a/.github/workflows/ecosystem-ci-from-pr.yml +++ b/.github/workflows/ecosystem-ci-from-pr.yml @@ -30,6 +30,7 @@ on: options: - "-" - nuxt + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter @@ -96,6 +97,7 @@ jobs: matrix: suite: - nuxt + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter diff --git a/.github/workflows/ecosystem-ci-selected.yml b/.github/workflows/ecosystem-ci-selected.yml index 842c038..41de36e 100644 --- a/.github/workflows/ecosystem-ci-selected.yml +++ b/.github/workflows/ecosystem-ci-selected.yml @@ -35,6 +35,7 @@ on: type: choice options: - nuxt + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml index dd49d8e..61af066 100644 --- a/.github/workflows/ecosystem-ci.yml +++ b/.github/workflows/ecosystem-ci.yml @@ -41,6 +41,7 @@ jobs: matrix: suite: - nuxt + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter diff --git a/tests/nuxt-test-utils.ts b/tests/nuxt-test-utils.ts new file mode 100644 index 0000000..820dbef --- /dev/null +++ b/tests/nuxt-test-utils.ts @@ -0,0 +1,15 @@ +import { runInRepo } from '../utils' +import { RunOptions } from '../types' + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'nuxt/test-utils', + overrides: { + '@vitejs/plugin-vue': true, + }, + build: ['dev:prepare', 'prepack'], + test: ['test:unit', 'test:examples'], + beforeTest: ['pnpm playwright-core install chromium'], + }) +}