Skip to content

Commit 0b1fd3a

Browse files
committed
refactor: wip
1 parent a4a9f10 commit 0b1fd3a

22 files changed

+1005
-1578
lines changed

packages/utils/mocks/sink.mock.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { Sink } from '../src/lib/sink-source.type';
22

3-
export class MockSink implements Sink<string, string> {
3+
export class MockFileSink implements Sink<string, string> {
4+
setPath: (filePath: string) => void;
5+
getPath: () => string;
46
private writtenItems: string[] = [];
57
private closed = false;
68

@@ -27,4 +29,8 @@ export class MockSink implements Sink<string, string> {
2729
getWrittenItems(): string[] {
2830
return [...this.writtenItems];
2931
}
32+
33+
clearWrittenItems(): void {
34+
this.writtenItems = [];
35+
}
3036
}

packages/utils/src/lib/file-sink-json-trace.ts

Lines changed: 0 additions & 195 deletions
This file was deleted.

packages/utils/src/lib/file-sink-jsonl.int.test.ts

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)