Skip to content

Commit 78d0af9

Browse files
committed
chore: 2.2 -> 3.0
1 parent bf08861 commit 78d0af9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/advanced/api/test-case.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The ID looks like this:
6161
```
6262

6363
::: tip
64-
You can generate file hash with `generateFileHash` function from `vitest/node` which is available since Vitest 2.2:
64+
You can generate file hash with `generateFileHash` function from `vitest/node` which is available since Vitest 3:
6565

6666
```ts
6767
import { generateFileHash } from 'vitest/node'

docs/advanced/api/test-project.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: TestProject
33
---
44

5-
# TestProject <Version>2.2.0</Version> {#testproject}
5+
# TestProject <Version>3.0.0</Version> {#testproject}
66

7-
- **Alias**: `WorkspaceProject` before 2.2.0
7+
- **Alias**: `WorkspaceProject` before 3.0.0
88

99
::: warning
1010
This guide describes the advanced Node.js API. If you just want to create a workspace, follow the ["Workspace"](/guide/workspace) guide.

docs/advanced/api/test-suite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The ID looks like this:
6262
```
6363

6464
::: tip
65-
You can generate file hash with `generateFileHash` function from `vitest/node` which is available since Vitest 2.2:
65+
You can generate file hash with `generateFileHash` function from `vitest/node` which is available since Vitest 3:
6666

6767
```ts
6868
import { generateFileHash } from 'vitest/node'

docs/advanced/api/vitest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ This method constructs new [test specifications](/advanced/api/test-specificatio
164164
This method automatically caches all test specifications. When you call [`getModuleSpecifications`](#getmodulespecifications) next time, it will return the same specifications unless [`clearSpecificationsCache`](#clearspecificationscache) was called before that.
165165

166166
::: warning
167-
As of Vitest 2.2.0, it's possible to have multiple test specifications with the same module ID (file path) if `poolMatchGlob` has several pools or if `typecheck` is enabled. This possibility will be removed in Vitest 3.
167+
As of Vitest 3, it's possible to have multiple test specifications with the same module ID (file path) if `poolMatchGlob` has several pools or if `typecheck` is enabled. This possibility will be removed in Vitest 4.
168168
:::
169169

170170
```ts
@@ -190,7 +190,7 @@ Returns a list of test specifications related to the module ID. The ID should al
190190
This method can return already cached specifications based on the `moduleId` and `pool`. But note that [`project.createSpecification`](/advanced/api/test-project#createspecification) always returns a new instance and it's not cached automatically. However, specifications are automatically cached when [`runTestSpecifications`](#runtestspecifications) is called.
191191

192192
::: warning
193-
As of Vitest 2.2.0, this method uses a cache to check if the file is a test. To make sure that the cache is not empty, call [`globTestSpecifications`](#globtestspecifications) at least once.
193+
As of Vitest 3, this method uses a cache to check if the file is a test. To make sure that the cache is not empty, call [`globTestSpecifications`](#globtestspecifications) at least once.
194194
:::
195195

196196
## clearSpecificationsCache

docs/guide/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ vitest foobar
1919

2020
Will run only the test file that contains `foobar` in their paths. This filter only checks inclusion and doesn't support regexp or glob patterns (unless your terminal processes it before Vitest receives the filter).
2121

22-
Since Vitest 2.2, you can also specify the test by filename and line number:
22+
Since Vitest 3, you can also specify the test by filename and line number:
2323

2424
```bash
2525
$ vitest basic/foo.test.ts:10

0 commit comments

Comments
 (0)