Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteXyy authored Jul 26, 2023
2 parents c574d14 + b7ce195 commit 95f21ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ When you use `test` or `bench` in the top level of file, they are collected as p
In some cases, you might run suites multiple times with different environments, and some of the suites might be environment-specific. Instead of wrapping the suite with `if`, you can use `describe.skipIf` to skip the suite whenever the condition is truthy.

```ts
import { assert, test } from 'vitest'
import { describe, test } from 'vitest'
const isDev = process.env.NODE_ENV === 'development'
Expand Down

0 comments on commit 95f21ad

Please sign in to comment.