Commit cf03518
committed
test: exclude node_modules from tsnapi package discovery
The API-snapshot suite auto-discovers workspace packages, but depending on
the installed layout (pnpm `shamefullyHoist`) that discovery can walk into
`node_modules` and try to snapshot dependencies like `@babel/runtime`,
crashing on their directory-valued `exports` (`EISDIR`). Skip any discovered
package under `node_modules` so only first-party workspace packages are
snapshotted — fixing the intermittent CI failure.
Built with the help of an agent.1 parent 7605bf6 commit cf03518
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
0 commit comments