test(slack): harden thread context fixture cleanup

This commit is contained in:
Vincent Koc
2026-04-14 23:11:43 +01:00
parent 7026ddadba
commit 2d26929ff1

View File

@@ -106,7 +106,12 @@ async function prepareThreadContextCase(params: ThreadContextCaseParams) {
describe("prepareSlackMessage thread context allowlists", () => {
afterAll(() => {
if (fixtureRoot) {
fs.rmSync(fixtureRoot, { recursive: true, force: true });
fs.rmSync(fixtureRoot, {
recursive: true,
force: true,
maxRetries: 5,
retryDelay: 50,
});
fixtureRoot = "";
}
});