Skip to content

Commit

Permalink
docs: fix comments api/beforeEach (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
BluesYoung-web committed May 10, 2022
1 parent e6ee27f commit 3cdcdf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/index.md
Expand Up @@ -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()
}
Expand Down

0 comments on commit 3cdcdf6

Please sign in to comment.