Skip to content

Commit

Permalink
docs(config): fix spelling mistake (#6578)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flambe authored Sep 26, 2024
1 parent d0bf89d commit e673090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,7 @@ Environment variables available on `process.env` and `import.meta.env` during te
The same as calling [`expect.hasAssertions()`](/api/expect#expect-hasassertions) at the start of every test. This makes sure that no test will pass accidentally.
::: tip
This only works with Vitest's `expect`. If you use `assert` ot `.should` assertions, they will not count, and your test will fail due to the lack of expect assertions.
This only works with Vitest's `expect`. If you use `assert` or `.should` assertions, they will not count, and your test will fail due to the lack of expect assertions.
You can change the value of this by calling `vi.setConfig({ expect: { requireAssertions: false } })`. The config will be applied to every subsequent `expect` call until the `vi.resetConfig` is called manually.
:::
Expand Down

0 comments on commit e673090

Please sign in to comment.