@@ -555,6 +555,7 @@ describe('ConfigLoader', () => {
555555
556556 it (
557557 'should throw error if repository is a valid URL but not a git repository' ,
558+ { timeout : 30000 } ,
558559 async ( ) => {
559560 const source : ConfigurationSource = {
560561 type : 'git' ,
@@ -579,11 +580,11 @@ describe('ConfigLoader', () => {
579580 / F a i l e d t o c l o n e r e p o s i t o r y / ,
580581 ) ;
581582 } ,
582- { timeout : 30000 } ,
583583 ) ;
584584
585585 it (
586586 'should throw error if repository is a valid git repo but the branch does not exist' ,
587+ { timeout : 30000 } ,
587588 async ( ) => {
588589 const source : ConfigurationSource = {
589590 type : 'git' ,
@@ -597,44 +598,35 @@ describe('ConfigLoader', () => {
597598 / F a i l e d t o c h e c k o u t b r a n c h / ,
598599 ) ;
599600 } ,
600- { timeout : 30000 } ,
601601 ) ;
602602
603- it (
604- 'should throw error if config path was not found' ,
605- async ( ) => {
606- const source : ConfigurationSource = {
607- type : 'git' ,
608- repository : 'https://github.com/finos/git-proxy.git' ,
609- path : 'path-not-found.json' ,
610- branch : 'main' ,
611- enabled : true ,
612- } ;
603+ it ( 'should throw error if config path was not found' , { timeout : 30000 } , async ( ) => {
604+ const source : ConfigurationSource = {
605+ type : 'git' ,
606+ repository : 'https://github.com/finos/git-proxy.git' ,
607+ path : 'path-not-found.json' ,
608+ branch : 'main' ,
609+ enabled : true ,
610+ } ;
613611
614- await expect ( configLoader . loadFromSource ( source ) ) . rejects . toThrow (
615- / C o n f i g u r a t i o n f i l e n o t f o u n d a t / ,
616- ) ;
617- } ,
618- { timeout : 30000 } ,
619- ) ;
612+ await expect ( configLoader . loadFromSource ( source ) ) . rejects . toThrow (
613+ / C o n f i g u r a t i o n f i l e n o t f o u n d a t / ,
614+ ) ;
615+ } ) ;
620616
621- it (
622- 'should throw error if config file is not valid JSON' ,
623- async ( ) => {
624- const source : ConfigurationSource = {
625- type : 'git' ,
626- repository : 'https://github.com/finos/git-proxy.git' ,
627- path : 'test/fixtures/baz.js' ,
628- branch : 'main' ,
629- enabled : true ,
630- } ;
617+ it ( 'should throw error if config file is not valid JSON' , { timeout : 30000 } , async ( ) => {
618+ const source : ConfigurationSource = {
619+ type : 'git' ,
620+ repository : 'https://github.com/finos/git-proxy.git' ,
621+ path : 'test/fixtures/baz.js' ,
622+ branch : 'main' ,
623+ enabled : true ,
624+ } ;
631625
632- await expect ( configLoader . loadFromSource ( source ) ) . rejects . toThrow (
633- / I n v a l i d c o n f i g u r a t i o n f o r m a t i n g i t / ,
634- ) ;
635- } ,
636- { timeout : 30000 } ,
637- ) ;
626+ await expect ( configLoader . loadFromSource ( source ) ) . rejects . toThrow (
627+ / I n v a l i d c o n f i g u r a t i o n f o r m a t i n g i t / ,
628+ ) ;
629+ } ) ;
638630 } ) ;
639631
640632 describe ( 'deepMerge' , ( ) => {
0 commit comments