From 3cdcdf6539427f4c1a54164dca25522330cc0d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC?= <15171255945@163.com> Date: Tue, 10 May 2022 10:39:19 +0800 Subject: [PATCH] docs: fix comments api/beforeEach (#1282) --- docs/api/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }