@@ -48,7 +48,7 @@ describe('get-ca-config', () => {
4848 try {
4949 await getCodeArtifactConfig ( config , context ) ;
5050 } catch ( errors ) {
51- const [ error , ...otherErrors ] = errors ;
51+ const [ error , ...otherErrors ] = errors as any [ ] ;
5252 expect ( error ?. code ) . toEqual < keyof ErrorDefinitions > ( 'ENOAUTHTOKEN' ) ;
5353 expect ( error ?. name ) . toEqual ( 'SemanticReleaseError' ) ;
5454 expect ( otherErrors ) . toHaveLength ( 0 ) ;
@@ -62,7 +62,7 @@ describe('get-ca-config', () => {
6262 try {
6363 await getCodeArtifactConfig ( config , context ) ;
6464 } catch ( errors ) {
65- const [ error , ...otherErrors ] = errors ;
65+ const [ error , ...otherErrors ] = errors as any [ ] ;
6666 expect ( error ?. code ) . toEqual < keyof ErrorDefinitions > ( 'ENOREPOENDPOINT' ) ;
6767 expect ( error ?. name ) . toEqual ( 'SemanticReleaseError' ) ;
6868 expect ( otherErrors ) . toHaveLength ( 0 ) ;
@@ -80,7 +80,7 @@ describe('get-ca-config', () => {
8080 try {
8181 await getCodeArtifactConfig ( config , context ) ;
8282 } catch ( errors ) {
83- const [ error , ...otherErrors ] = errors ;
83+ const [ error , ...otherErrors ] = errors as any [ ] ;
8484 expect ( error ?. code ) . toEqual < keyof ErrorDefinitions > ( 'EAWSSDK' ) ;
8585 expect ( error ?. name ) . toEqual ( 'SemanticReleaseError' ) ;
8686 expect ( error ?. details ) . toMatch ( 'TestAWSError' ) ;
@@ -97,7 +97,7 @@ describe('get-ca-config', () => {
9797 try {
9898 await getCodeArtifactConfig ( config , context ) ;
9999 } catch ( errors ) {
100- const [ error , ...otherErrors ] = errors ;
100+ const [ error , ...otherErrors ] = errors as any [ ] ;
101101 expect ( error ?. code ) . toEqual < keyof ErrorDefinitions > ( 'EAWSSDK' ) ;
102102 expect ( error ?. name ) . toEqual ( 'SemanticReleaseError' ) ;
103103 expect ( error ?. details ) . toMatch ( 'UnknownException' ) ;
0 commit comments