Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
fenghan34 committed Feb 22, 2024
1 parent f2df6b7 commit bb60342
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/core/test/cli-test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,13 @@ test('public parseCLI works correctly', () => {
expect(() => {
parseCLI('node --test --coverage --browser --typecheck')
}).toThrowError(`Expected "vitest" as the first argument, received "node"`)

expect(parseCLI('vitest --project=space_1 --project=space_2')).toEqual({
filter: [],
options: {
'project': ['space_1', 'space_2'],
'--': [],
'color': true,
},
})
})

0 comments on commit bb60342

Please sign in to comment.