Skip to content

Commit

Permalink
Import "describe" in sample code (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
reithose committed Jul 25, 2023
1 parent 8693449 commit b7ce195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/index.md
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 b7ce195

Please sign in to comment.