Skip to content

Commit 30469bd

Browse files
committed
close the stream
1 parent 7f66ae0 commit 30469bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/compass-import-export/src/export/export-json.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ describe('exportJSON', function () {
280280
} catch (err) {
281281
// noop
282282
}
283+
// close the stream so that afterEach hook can clear the tmpdir
284+
// otherwise it will throw an error (for windows)
285+
output.close();
283286
});
284287

285288
it('responds to abortSignal.aborted - with delayed abort', async function () {

0 commit comments

Comments
 (0)