Skip to content

Commit

Permalink
docs: fix comments api/beforeEach
Browse files Browse the repository at this point in the history
  • Loading branch information
BluesYoung-web committed May 10, 2022
1 parent a2f17b0 commit 1977d9d
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 1977d9d

Please sign in to comment.