@@ -346,7 +346,7 @@ test('resolves projects and their <rootDir> properly', () => {
346346 } ,
347347 } ) ,
348348 'project1.conf.json' : JSON . stringify ( {
349- name : 'project1' ,
349+ id : 'project1' ,
350350 rootDir : './project1' ,
351351 // root dir should be this project's directory
352352 setupFiles : [ '<rootDir>/project1_setup.js' ] ,
@@ -358,7 +358,7 @@ test('resolves projects and their <rootDir> properly', () => {
358358 'project2/__tests__/test.test.js' :
359359 "test('project2', () => expect(globalThis.project2).toBe(true))" ,
360360 'project2/project2.conf.json' : JSON . stringify ( {
361- name : 'project2' ,
361+ id : 'project2' ,
362362 rootDir : '../' , // root dir is set to the top level
363363 setupFiles : [ '<rootDir>/project2/project2_setup.js' ] , // rootDir shold be of the
364364 testEnvironment : 'node' ,
@@ -514,13 +514,13 @@ describe("doesn't bleed module file extensions resolution with multiple workers"
514514
515515 expect ( configs ) . toHaveLength ( 2 ) ;
516516
517- const [ { name : name1 } , { name : name2 } ] = configs ;
517+ const [ { id : id1 } , { id : id2 } ] = configs ;
518518
519- expect ( name1 ) . toEqual ( expect . any ( String ) ) ;
520- expect ( name2 ) . toEqual ( expect . any ( String ) ) ;
521- expect ( name1 ) . toHaveLength ( 32 ) ;
522- expect ( name2 ) . toHaveLength ( 32 ) ;
523- expect ( name1 ) . not . toEqual ( name2 ) ;
519+ expect ( id1 ) . toEqual ( expect . any ( String ) ) ;
520+ expect ( id2 ) . toEqual ( expect . any ( String ) ) ;
521+ expect ( id1 ) . toHaveLength ( 32 ) ;
522+ expect ( id2 ) . toHaveLength ( 32 ) ;
523+ expect ( id1 ) . not . toEqual ( id2 ) ;
524524
525525 const { stderr} = runJest ( DIR , [
526526 '--no-watchman' ,
@@ -557,13 +557,13 @@ describe("doesn't bleed module file extensions resolution with multiple workers"
557557
558558 expect ( configs ) . toHaveLength ( 2 ) ;
559559
560- const [ { name : name1 } , { name : name2 } ] = configs ;
560+ const [ { id : id1 } , { id : id2 } ] = configs ;
561561
562- expect ( name1 ) . toEqual ( expect . any ( String ) ) ;
563- expect ( name2 ) . toEqual ( expect . any ( String ) ) ;
564- expect ( name1 ) . toHaveLength ( 32 ) ;
565- expect ( name2 ) . toHaveLength ( 32 ) ;
566- expect ( name1 ) . not . toEqual ( name2 ) ;
562+ expect ( id1 ) . toEqual ( expect . any ( String ) ) ;
563+ expect ( id2 ) . toEqual ( expect . any ( String ) ) ;
564+ expect ( id1 ) . toHaveLength ( 32 ) ;
565+ expect ( id2 ) . toHaveLength ( 32 ) ;
566+ expect ( id1 ) . not . toEqual ( id2 ) ;
567567
568568 const { stderr} = runJest ( DIR , [ '--no-watchman' , '-w=2' ] ) ;
569569
0 commit comments