diff --git a/docs/api/index.md b/docs/api/index.md index dc15f5bcf7c0..1e580b3eda5a 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1468,10 +1468,10 @@ These functions allow you to hook into the life cycle of tests to avoid repeatin import { beforeEach } from 'vitest' beforeEach(async () => { - // called once before all tests run + // called once before each test run await prepareSomething() - // clean up function, called once after all tests run + // clean up function, called once after each test run return async () => { await resetSomething() }