Skip to content

Commit

Permalink
feat: add @nuxt/test-utils ecosystem test (#8)
Browse files Browse the repository at this point in the history
* feat: add `@nuxt/test-utils` ecosystem test

* ci: Fix typo

* ci: Fix typo

* ci: Fix typo

* ci: Fix typo

---------

Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
  • Loading branch information
danielroe and AriPerkkio authored Dec 3, 2023
1 parent ad758ac commit f63b538
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ on:
options:
- "-"
- nuxt
- nuxt-test-utils
- vite
- vitest-sonar-reporter
- vitest-github-actions-reporter
Expand Down Expand Up @@ -96,6 +97,7 @@ jobs:
matrix:
suite:
- nuxt
- nuxt-test-utils
- vite
- vitest-sonar-reporter
- vitest-github-actions-reporter
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ on:
type: choice
options:
- nuxt
- nuxt-test-utils
- vite
- vitest-sonar-reporter
- vitest-github-actions-reporter
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
matrix:
suite:
- nuxt
- nuxt-test-utils
- vite
- vitest-sonar-reporter
- vitest-github-actions-reporter
Expand Down
15 changes: 15 additions & 0 deletions tests/nuxt-test-utils.ts
Original file line number Diff line number Diff line change
@@ -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'],
})
}

0 comments on commit f63b538

Please sign in to comment.