From a941d35808f7a3b0c1aec740202b94af899fa3dc Mon Sep 17 00:00:00 2001 From: Vladimir Date: Sat, 28 Dec 2024 18:25:52 +0100 Subject: [PATCH] docs: update test-suite.md (#7144) --- docs/advanced/api/test-suite.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/api/test-suite.md b/docs/advanced/api/test-suite.md index 0a7ddb4d13e4..85673c435766 100644 --- a/docs/advanced/api/test-suite.md +++ b/docs/advanced/api/test-suite.md @@ -25,7 +25,7 @@ class Reporter { onFinished(files: RunnerTestFile[]) { for (const file of files) { - const testModule = this.vitest.getReportedEntity(file) as TestModule + const testModule = this.vitest.state.getReportedEntity(file) as TestModule for (const suite of testModule.children.allSuites()) { console.log(suite) // TestSuite }