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 vitest-dev/vscode #12

Merged
merged 14 commits into from
Mar 12, 2024
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 @@ -32,6 +32,7 @@ on:
- nuxt
- nuxt-test-utils
- vite
- vitest-vscode
- vitest-sonar-reporter
- vitest-github-actions-reporter
- vitest-browser-simple
Expand Down Expand Up @@ -100,6 +101,7 @@ jobs:
- nuxt
- nuxt-test-utils
- vite
- vitest-vscode
- vitest-sonar-reporter
- vitest-github-actions-reporter
- vitest-browser-simple
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 @@ -37,6 +37,7 @@ on:
- nuxt
- nuxt-test-utils
- vite
- vitest-vscode
- vitest-sonar-reporter
- vitest-github-actions-reporter
- vitest-browser-simple
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 @@ -43,6 +43,7 @@ jobs:
- nuxt
- nuxt-test-utils
- vite
- vitest-vscode
- vitest-sonar-reporter
- vitest-github-actions-reporter
- vitest-browser-simple
Expand Down
20 changes: 20 additions & 0 deletions tests/vitest-vscode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { runInRepo, $ } from '../utils'
import { RunOptions } from '../types'
import process from 'node:process'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'vitest-dev/vscode',
build: 'compile',
test: async () => {
if (process.env.CI === 'true' && process.platform === 'linux') {
await $`xvfb-run --auto-servernum --server-args=-screen\\ 0\\ 1024x768x24 pnpm test`
await $`xvfb-run --auto-servernum --server-args=-screen\\ 0\\ 1024x768x24 pnpm test-e2e --retry 2`
} else {
await $`pnpm test`
await $`pnpm test-e2e`
}
},
})
}
Loading