From 1977d9d36751231a224ab782d108d8fb328bda7b 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:30:38 +0800 Subject: [PATCH] docs: fix comments api/beforeEach --- 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 43d3987e9daf..e69e1bddd6dc 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() }