diff --git a/docs/config/index.md b/docs/config/index.md index 93558c8e909d..fa2d2b3d2fc0 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -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. :::