We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6df11e8 commit c475504Copy full SHA for c475504
packages/vitest-plugin/src/runner.ts
@@ -83,6 +83,8 @@ async function runBench(benchmark: Benchmark, currentSuiteName: string) {
83
}
84
85
async function runBenchmarkSuite(suite: Suite, parentSuiteName?: string) {
86
+ await callSuiteHook(suite, suite, "setup");
87
+
88
const currentSuiteName = parentSuiteName
89
? parentSuiteName + "::" + suite.name
90
: suite.name;
@@ -108,6 +110,8 @@ async function runBenchmarkSuite(suite: Suite, parentSuiteName?: string) {
108
110
if (parentSuiteName !== undefined) {
109
111
await callSuiteHook(suite, suite, "afterAll");
112
113
114
+ await callSuiteHook(suite, suite, "teardown");
115
116
117
function patchRootSuiteWithFullFilePath(suite: Suite) {
0 commit comments