Commit 6c84c32
fix(test) resolve cyclonedx binary once instead of using npx per call (#18)
* fix(test) resolve cyclonedx binary once instead of using npx per call
Concurrent npx invocations race on the shared npx cache, causing
ENOTEMPTY on directory renames. Instead, resolve the cyclonedx-npm
binary once (via require.resolve or a one-time npm install into a
temp prefix) and invoke it directly with node for all subsequent
calls.
* fix(test) align test:coverage glob with test glob
test:coverage was missing ./test/**/*.test.js, so verification and
parser-specific tests were excluded from coverage runs.
* fix(test) decode fixtures before tests, add parsers to CI coverage
Add pretest/pretest:coverage hooks to run fixture decoding so that
test/parsers/*.test.js can find decoded fixtures in CI. Align test
and test:coverage globs to include test/parsers/*.test.js. Add
test:all for running the full suite including verification and
monorepo tests locally.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent ca60ae1 commit 6c84c32
2 files changed
Lines changed: 50 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
101 | 141 | | |
102 | 142 | | |
103 | 143 | | |
104 | 144 | | |
105 | 145 | | |
106 | 146 | | |
107 | 147 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 148 | + | |
| 149 | + | |
116 | 150 | | |
117 | 151 | | |
118 | 152 | | |
119 | 153 | | |
120 | 154 | | |
121 | | - | |
| 155 | + | |
122 | 156 | | |
123 | 157 | | |
124 | 158 | | |
| |||
217 | 251 | | |
218 | 252 | | |
219 | 253 | | |
220 | | - | |
| 254 | + | |
| 255 | + | |
221 | 256 | | |
222 | 257 | | |
223 | 258 | | |
| |||
0 commit comments