We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93c4532 commit feb5566Copy full SHA for feb5566
files-to-prompt.ts
@@ -11,6 +11,7 @@ interface ProcessingConfig {
11
gitignoreRules: string[];
12
}
13
14
+// These two functions allow redirecting the output via mock functions, they get implicitly tested
15
export function output(...args: any[]) {
16
console.log(...args);
17
@@ -48,6 +49,10 @@ async function processFile(filePath: string): Promise<void> {
48
49
output('---');
50
51
} catch (err) {
52
+ // This should not happen unless e.g. files get deleted while this tool runs
53
+ // I ran into this case as the test framework was cleaning up files before this tool was done
54
+ // Remove `Bun.sleep()` from the test script and you will end up here
55
+ // TODO: write test case (not trivial)
56
error(`Error processing file ${filePath}: ${err}`);
57
58
0 commit comments