Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add @nuxt/test-utils ecosystem test #8

Merged
merged 5 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'],
})
}