@@ -24,33 +24,6 @@ import { mocked } from 'jest-mock';
2424import { locallyCached , redisCached } from './cache' ;
2525import nock from 'nock' ;
2626
27- const mockEC2 = {
28- describeInstances : jest . fn ( ) ,
29- runInstances : jest . fn ( ) ,
30- terminateInstances : jest . fn ( ) . mockResolvedValue ( { } ) ,
31- } ;
32- const mockSSM = {
33- deleteParameter : jest . fn ( ) . mockResolvedValue ( { } ) ,
34- describeParameters : jest . fn ( ) . mockResolvedValue ( { } ) ,
35- putParameter : jest . fn ( ) . mockResolvedValue ( { } ) ,
36- } ;
37-
38- jest . mock ( '@aws-sdk/client-ec2' , ( ) => ( {
39- EC2 : jest . fn ( ) . mockImplementation ( ( ) => ( {
40- describeInstances : mockEC2 . describeInstances ,
41- runInstances : mockEC2 . runInstances ,
42- terminateInstances : mockEC2 . terminateInstances ,
43- } ) ) ,
44- } ) ) ;
45-
46- jest . mock ( '@aws-sdk/client-ssm' , ( ) => ( {
47- SSM : jest . fn ( ) . mockImplementation ( ( ) => ( {
48- deleteParameter : mockSSM . deleteParameter ,
49- describeParameters : mockSSM . describeParameters ,
50- putParameter : mockSSM . putParameter ,
51- } ) ) ,
52- } ) ) ;
53-
5427jest . mock ( './gh-auth' ) ;
5528jest . mock ( './cache' , ( ) => ( {
5629 /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
0 commit comments