Skip to content

Commit

Permalink
chore: replace build/test script for vscode (#13)
Browse files Browse the repository at this point in the history
* chore: replace build/test script for vscode

* chore: test fork

* Revert "chore: test fork"

This reverts commit 4caf46e.
  • Loading branch information
hi-ogawa committed Mar 20, 2024
1 parent 12d1026 commit d91df33
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions tests/vitest-vscode.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
import { runInRepo, $ } from '../utils'
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`
}
},
build: 'ecosystem-ci:build',
test: 'ecosystem-ci:test',
})
}

0 comments on commit d91df33

Please sign in to comment.