Skip to content

Commit e34b60e

Browse files
committed
chore: fix unit test
1 parent 58e0519 commit e34b60e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/streams.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import * as fs from 'fs';
12
import { ArrayInputStream, ConsoleOutputStream, FileInputStream, FileOutputStream, NullOutputStream } from "./streams";
23

34
describe('streams', () => {
5+
beforeAll(() => {
6+
fs.mkdirSync('./output/files', { recursive: true });
7+
});
48
test('should read/write to a file', async () => {
59
const f = new FileOutputStream('./output/files/test.txt');
610
await f.open();

0 commit comments

Comments
 (0)