From b7ce1959bd469b83c3b7035579b7583386503489 Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 25 Jul 2023 12:24:45 +0200 Subject: [PATCH] Import "describe" in sample code (#3801) --- docs/api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/index.md b/docs/api/index.md index e5611ced246e..5b08b91ffeaf 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -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'