@@ -137,6 +137,25 @@ const testSetups = [
137
137
file : 'dist/.well-known/sbom'
138
138
}
139
139
]
140
+ } ,
141
+ {
142
+ dir : 'improvement-issue-1284-yarn' ,
143
+ packageManager : 'yarn' ,
144
+ purpose : 'functional: verify enhanced package.json finder with yarn pkg manager' ,
145
+ results : [ // paths relative to `dir`
146
+ {
147
+ format : 'xml' ,
148
+ file : 'dist/.bom/bom.xml'
149
+ } ,
150
+ {
151
+ format : 'json' ,
152
+ file : 'dist/.bom/bom.json'
153
+ } ,
154
+ {
155
+ format : 'json' ,
156
+ file : 'dist/.well-known/sbom'
157
+ }
158
+ ]
140
159
}
141
160
]
142
161
@@ -150,10 +169,10 @@ try {
150
169
}
151
170
152
171
describe ( 'integration' , ( ) => {
153
- testSetups . forEach ( ( { purpose, dir, results } ) => {
172
+ testSetups . forEach ( ( { purpose, dir, results, packageManager } ) => {
154
173
describe ( purpose , ( ) => {
155
174
const built = spawnSync (
156
- 'npm' , [ 'run' , 'build' ] , {
175
+ packageManager ?? 'npm' , [ 'run' , 'build' ] , {
157
176
cwd : path . resolve ( module . path , dir ) ,
158
177
stdio : [ 'ignore' , 'pipe' , 'pipe' ] ,
159
178
encoding : 'utf8' ,
0 commit comments