Skip to content

Commit e4c7471

Browse files
committed
test(fix): use Promise.allSettled for test cleanup
Convert afterEach cleanup to use Promise.allSettled to ensure all cleanup functions run even if one fails. This prevents test pollution when cleanup operations fail.
1 parent eaaa2ae commit e4c7471

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/commands/fix/cmd-fix.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('socket fix', async () => {
2929

3030
afterEach(async () => {
3131
// Clean up all temporary directories after each test.
32-
await Promise.all(cleanupFunctions.map(cleanup => cleanup()))
32+
await Promise.allSettled(cleanupFunctions.map(cleanup => cleanup()))
3333
cleanupFunctions = []
3434
})
3535

0 commit comments

Comments
 (0)