Skip to content

Commit

Permalink
feat: add vitest-dev/vscode (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Mar 12, 2024
1 parent 7a1d904 commit 12d1026
Show file tree
Hide file tree
Showing 4 changed files with 24 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 @@ -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`
}
},
})
}

0 comments on commit 12d1026

Please sign in to comment.