@@ -64,7 +64,7 @@ it('should call writeFile with the expected file location and content without th
6464 await createCollectionContent ( '/foo/' , '/config/dir/pf-docs.config.mjs' , false )
6565
6666 const expectedContent = [
67- { name : 'test' , base : '/config/dir/src/docs' , pattern : '**/*.md' }
67+ { name : 'test' , base : '/config/dir/src/docs' , pattern : '**/*.md' , version : 'v6' }
6868 ]
6969
7070 expect ( writeFile ) . toHaveBeenCalledWith (
@@ -208,11 +208,12 @@ it('should handle content with packageName by finding package in node_modules',
208208 await createCollectionContent ( '/foo/' , '/config/dir/pf-docs.config.mjs' , false )
209209
210210 const expectedContent = [
211- {
211+ {
212212 base : '/config/dir/node_modules/@patternfly/react-core' ,
213- name : 'test' ,
214- packageName : '@patternfly/react-core' ,
215- pattern : '**/*.md'
213+ name : 'test' ,
214+ packageName : '@patternfly/react-core' ,
215+ pattern : '**/*.md' ,
216+ version : 'v6'
216217 }
217218 ]
218219
@@ -242,11 +243,12 @@ it('should handle content with packageName when package is not found locally but
242243 await createCollectionContent ( '/foo/' , '/config/dir/pf-docs.config.mjs' , false )
243244
244245 const expectedContent = [
245- {
246+ {
246247 base : '/config/node_modules/@patternfly/react-core' ,
247- name : 'test' ,
248- packageName : '@patternfly/react-core' ,
249- pattern : '**/*.md'
248+ name : 'test' ,
249+ packageName : '@patternfly/react-core' ,
250+ pattern : '**/*.md' ,
251+ version : 'v6'
250252 }
251253 ]
252254
@@ -274,11 +276,12 @@ it('should handle content with packageName when package is not found anywhere',
274276 await createCollectionContent ( '/foo/' , '/config/dir/pf-docs.config.mjs' , false )
275277
276278 const expectedContent = [
277- {
279+ {
278280 base : null ,
279- name : 'test' ,
280- packageName : '@patternfly/react-core' ,
281- pattern : '**/*.md'
281+ name : 'test' ,
282+ packageName : '@patternfly/react-core' ,
283+ pattern : '**/*.md' ,
284+ version : 'v6'
282285 }
283286 ]
284287
@@ -307,12 +310,13 @@ it('should handle mixed content with both base and packageName entries', async (
307310 await createCollectionContent ( '/foo/' , '/config/dir/pf-docs.config.mjs' , false )
308311
309312 const expectedContent = [
310- { name : 'docs' , base : '/config/dir/src/docs' , pattern : '**/*.md' } ,
311- {
313+ { name : 'docs' , base : '/config/dir/src/docs' , pattern : '**/*.md' , version : 'v6' } ,
314+ {
312315 base : '/config/dir/node_modules/@patternfly/react-core' ,
313- name : 'components' ,
314- packageName : '@patternfly/react-core' ,
315- pattern : '**/*.md'
316+ name : 'components' ,
317+ packageName : '@patternfly/react-core' ,
318+ pattern : '**/*.md' ,
319+ version : 'v6'
316320 }
317321 ]
318322
0 commit comments