From c48fef540ac685dee331df0330814042fc856580 Mon Sep 17 00:00:00 2001 From: Lo <709937065@qq.com> Date: Mon, 4 Sep 2023 03:33:52 -0500 Subject: [PATCH] docs: fix typo (#4066) --- docs/config/index.md | 2 +- packages/vitest/src/types/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/index.md b/docs/config/index.md index 59519de77..dafbf0776 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -1296,7 +1296,7 @@ Will call [`vi.unstubAllGlobals`](/api/vi#vi-unstuballglobals) before each test. - **Type:** `{ web?, ssr? }` - **Version:** Since Vitest 0.34.0 - Determine the transform method for all modules inported inside a test that matches the glob pattern. By default, relies on the environment. For example, tests with JSDOM environment will process all files with `ssr: false` flag and tests with Node environment process all modules with `ssr: true`. + Determine the transform method for all modules imported inside a test that matches the glob pattern. By default, relies on the environment. For example, tests with JSDOM environment will process all files with `ssr: false` flag and tests with Node environment process all modules with `ssr: true`. #### testTransformMode.ssr diff --git a/packages/vitest/src/types/config.ts b/packages/vitest/src/types/config.ts index 9ae80f198..7a40bd320 100644 --- a/packages/vitest/src/types/config.ts +++ b/packages/vitest/src/types/config.ts @@ -530,7 +530,7 @@ export interface InlineConfig { uiBase?: string /** - * Determine the transform method for all modules inported inside a test that matches the glob pattern. + * Determine the transform method for all modules imported inside a test that matches the glob pattern. */ testTransformMode?: TransformModePatterns -- 2.51.2