@@ -22,7 +22,7 @@ describe.sequential('sample', (it) => {
2222
2323 it . sequential ( 'should find all projects' , ( ) => {
2424 const projects = Project . findAll ( projectDetector )
25- expect ( projects ) . toHaveLength ( 2 )
25+ expect ( projects . length ) . toBeGreaterThanOrEqual ( 2 )
2626
2727 for ( const project of projects ) {
2828 const parsed = project . getParsedBuildProfileContent ( )
@@ -40,12 +40,12 @@ describe.sequential('sample', (it) => {
4040
4141 it . sequential ( 'should find all modules' , ( ) => {
4242 const project1Modules = Module . findAll ( project1 )
43- expect ( project1Modules ) . toHaveLength ( 1 )
43+ expect ( project1Modules . length ) . toBeGreaterThanOrEqual ( 1 )
4444 project1Module1 = project1Modules [ 0 ]
4545 expect ( project1Module1 . getProject ( ) === project1 ) . toBe ( true )
4646 expect ( JSON . parse ( project1Module1 . getBuildProfileContent ( ) ) ) . toEqual ( project1Module1 . getParsedBuildProfileContent ( ) )
4747 const project2Modules = Module . findAll ( project2 )
48- expect ( project2Modules ) . toHaveLength ( 1 )
48+ expect ( project2Modules . length ) . toBeGreaterThanOrEqual ( 1 )
4949 project2Module1 = project2Modules [ 0 ]
5050 expect ( project2Module1 . getProject ( ) === project2 ) . toBe ( true )
5151 expect ( JSON . parse ( project2Module1 . getBuildProfileContent ( ) ) ) . toEqual ( project2Module1 . getParsedBuildProfileContent ( ) )
@@ -58,7 +58,7 @@ describe.sequential('sample', (it) => {
5858
5959 it . sequential ( 'should find all products' , ( ) => {
6060 const project1Products = Product . findAll ( project1Module1 )
61- expect ( project1Products . length ) . toBeGreaterThanOrEqual ( 1 )
61+ expect ( project1Products . length ) . toBeGreaterThanOrEqual ( 2 )
6262 project1Product1 = project1Products [ 0 ]
6363 project1Product2 = project1Products [ 1 ]
6464 resourceDirectory1 = project1Product1 . getResourceDirectories ( ) [ 0 ]
0 commit comments