onTestFinished
should run after each repeat not after all the repeats are done
#5869
Labels
onTestFinished
should run after each repeat not after all the repeats are done
#5869
Describe the bug
I am using
onTestFinished
to cleanup resources per test without needing to lift variables to the describe level forafterEach
.Recently, we've started running tests with
repeats
to catch flakes and noticed that the run-order ofonTestFinished
is unexpectedwhereas I would expect
Reproduction
https://replit.com/join/uueakwjekd-jzhao-replit
System Info
System: OS: Linux 6.5 Ubuntu 20.04.2 LTS (Focal Fossa) CPU: (16) x64 AMD EPYC 7B13 Memory: 38.93 GB / 62.78 GB Container: Yes Shell: 5.0.17 - /bin/bash Binaries: Node: 20.12.2 - /nix/store/a2iia53azgg3kjqas6cwmznpghhkkvqk-nodejs-20.12.2-wrapped/bin/node Yarn: 1.22.22 - /nix/store/d03xglbinz66yml6h55q6an183bxqcma-yarn-1.22.22/bin/yarn npm: 10.5.0 - /nix/store/a2iia53azgg3kjqas6cwmznpghhkkvqk-nodejs-20.12.2-wrapped/bin/npm pnpm: 8.15.5 - /nix/store/77wblnm5dnmgnan3695j3mk4r7j75s5j-pnpm-8.15.5/bin/pnpm bun: 1.1.11 - /nix/store/v0ps8nmsgbpdskm751vqg0s80nzkpiif-bun-1.1.11/bin/bun npmPackages: vitest: ^1.6.0 => 1.6.0
The text was updated successfully, but these errors were encountered: