From 7fe91919a85221fccecf177823f2fdb59966bc12 Mon Sep 17 00:00:00 2001 From: Mackie Underdown Date: Tue, 7 Nov 2023 09:37:50 -0500 Subject: [PATCH] docs(environment): add missing expect import --- guide/environment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/environment.md b/guide/environment.md index 148f1208..1b84caf9 100644 --- a/guide/environment.md +++ b/guide/environment.md @@ -16,7 +16,7 @@ When setting `environment` option in your config, it will apply to all the test ```ts // @vitest-environment jsdom -import { test } from 'vitest' +import { expect, test } from 'vitest' test('test', () => { expect(typeof window).not.toBe('undefined')