Skip to content

Commit

Permalink
chore: 2.2 -> 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Dec 6, 2024
1 parent bf08861 commit 78d0af9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/advanced/api/test-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The ID looks like this:
```

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

```ts
import { generateFileHash } from 'vitest/node'
Expand Down
4 changes: 2 additions & 2 deletions docs/advanced/api/test-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: TestProject
---

# TestProject <Version>2.2.0</Version> {#testproject}
# TestProject <Version>3.0.0</Version> {#testproject}

- **Alias**: `WorkspaceProject` before 2.2.0
- **Alias**: `WorkspaceProject` before 3.0.0

::: warning
This guide describes the advanced Node.js API. If you just want to create a workspace, follow the ["Workspace"](/guide/workspace) guide.
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/api/test-suite.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ The ID looks like this:
```

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

```ts
import { generateFileHash } from 'vitest/node'
Expand Down
4 changes: 2 additions & 2 deletions docs/advanced/api/vitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ This method constructs new [test specifications](/advanced/api/test-specificatio
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.

::: warning
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.
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.
:::

```ts
Expand All @@ -190,7 +190,7 @@ Returns a list of test specifications related to the module ID. The ID should al
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.

::: warning
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.
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.
:::

## clearSpecificationsCache
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ vitest foobar

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).

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

```bash
$ vitest basic/foo.test.ts:10
Expand Down

0 comments on commit 78d0af9

Please sign in to comment.