Skip to content

Commit

Permalink
docs: update test-suite.md (#7144)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Dec 28, 2024
1 parent 75b52e3 commit a941d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/api/test-suite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a941d35

Please sign in to comment.