We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1456730 commit 3f0c989Copy full SHA for 3f0c989
packages/compass-e2e-tests/smoke-test.ts
@@ -189,7 +189,11 @@ async function run() {
189
throw new Error(`Testing '${kind}' packages is not yet implemented`);
190
}
191
} finally {
192
- await Promise.all(cleanups.map((cleanup) => cleanup()));
+ // Chain the cleanup functions in reverse order
193
+ await cleanups
194
+ .slice()
195
+ .reverse()
196
+ .reduce((previous, cleanup) => previous.then(cleanup), Promise.resolve());
197
198
199
0 commit comments