@@ -45,7 +45,39 @@ This will concatenate all files (including hidden files) in the `./my-project` d
45
45
This tool includes a set of tests to ensure it works as expected. You can run the tests using the following command:
46
46
47
47
```
48
- bun test
48
+ bun test --coverage
49
+ ```
50
+
51
+ Example output:
52
+
53
+ ```
54
+ bun test v1.1.3 (2615dc74)
55
+
56
+ files-to-prompt.test.ts:
57
+ ✓ files-to-prompt.ts > should include single file passed on the command line [7.09ms]
58
+ ✓ files-to-prompt.ts > should include multiple files passed on the command line [2.81ms]
59
+ ✓ files-to-prompt.ts > should include files in directories passed on the command line [1.81ms]
60
+ ✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [2.01ms]
61
+ ✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [1.91ms]
62
+ ✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [1.93ms]
63
+ ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [1.96ms]
64
+ ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [1.99ms]
65
+ ✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [1.88ms]
66
+ ✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [1.72ms]
67
+ ✓ files-to-prompt.ts > should skip binary files [1.93ms]
68
+ ✓ files-to-prompt.ts > should fail with error message if path does not exist [2.35ms]
69
+ ✓ files-to-prompt.ts > should skip FIFOs [13.40ms]
70
+ --------------------|---------|---------|-------------------
71
+ File | % Funcs | % Lines | Uncovered Line #s
72
+ --------------------|---------|---------|-------------------
73
+ All files | 92.00 | 96.69 |
74
+ files-to-prompt.ts | 92.00 | 96.69 | 14,18,50
75
+ --------------------|---------|---------|-------------------
76
+
77
+ 13 pass
78
+ 0 fail
79
+ 39 expect() calls
80
+ Ran 13 tests across 1 files. [86.00ms]
49
81
```
50
82
51
83
## Contributing
0 commit comments