Skip to content

Commit

Permalink
test: test cli invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 18, 2023
1 parent fe31447 commit 654d825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion test/config/fixtures/retry/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
include: ['*.test.ts'],
retry: 3,
},
})
11 changes: 3 additions & 8 deletions test/config/test/retry.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import path from 'node:path'
import { describe, expect, test } from 'vitest'
import { runVitest } from '../../test-utils'
import { runVitestCli } from '../../test-utils'

const root = path.resolve('./fixtures/retry')
function run(testNamePattern?: string) {
return runVitest({
root,
testNamePattern,
})
function run(testNamePattern: string) {
return runVitestCli('run', 'fixtures/retry/retry.test.ts', '-c', 'fixtures/retry/vitest.config.ts', '-t', testNamePattern)
}

describe('retry', () => {
Expand Down

0 comments on commit 654d825

Please sign in to comment.