@@ -346,7 +346,7 @@ test('resolves projects and their <rootDir> properly', () => {
346
346
} ,
347
347
} ) ,
348
348
'project1.conf.json' : JSON . stringify ( {
349
- name : 'project1' ,
349
+ id : 'project1' ,
350
350
rootDir : './project1' ,
351
351
// root dir should be this project's directory
352
352
setupFiles : [ '<rootDir>/project1_setup.js' ] ,
@@ -358,7 +358,7 @@ test('resolves projects and their <rootDir> properly', () => {
358
358
'project2/__tests__/test.test.js' :
359
359
"test('project2', () => expect(globalThis.project2).toBe(true))" ,
360
360
'project2/project2.conf.json' : JSON . stringify ( {
361
- name : 'project2' ,
361
+ id : 'project2' ,
362
362
rootDir : '../' , // root dir is set to the top level
363
363
setupFiles : [ '<rootDir>/project2/project2_setup.js' ] , // rootDir shold be of the
364
364
testEnvironment : 'node' ,
@@ -514,13 +514,13 @@ describe("doesn't bleed module file extensions resolution with multiple workers"
514
514
515
515
expect ( configs ) . toHaveLength ( 2 ) ;
516
516
517
- const [ { name : name1 } , { name : name2 } ] = configs ;
517
+ const [ { id : id1 } , { id : id2 } ] = configs ;
518
518
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 ) ;
524
524
525
525
const { stderr} = runJest ( DIR , [
526
526
'--no-watchman' ,
@@ -557,13 +557,13 @@ describe("doesn't bleed module file extensions resolution with multiple workers"
557
557
558
558
expect ( configs ) . toHaveLength ( 2 ) ;
559
559
560
- const [ { name : name1 } , { name : name2 } ] = configs ;
560
+ const [ { id : id1 } , { id : id2 } ] = configs ;
561
561
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 ) ;
567
567
568
568
const { stderr} = runJest ( DIR , [ '--no-watchman' , '-w=2' ] ) ;
569
569
0 commit comments