Commit fb6615a
committed
fix: skip node_modules and other ignored directories in test discovery
Repterm's test loader was recursively scanning into node_modules and loading test files from dependencies (like bun-pty), causing fatal errors when describe() was used in contexts where it's not supported. This fix skips common non-test directories (node_modules, .git, dist, .next, .turbo) during recursive test discovery.
Fixes the 'Cannot use describe outside of the test runner' error when running repterm with --record flag.1 parent 2764ddb commit fb6615a
2 files changed
Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
200 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| |||
0 commit comments