File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
lambdas/functions/control-plane/src/pool Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ jest.mock('./../aws/runners', () => ({
30
30
jest . mock ( './../github/auth' ) ;
31
31
jest . mock ( '../scale-runners/scale-up' , ( ) => ( {
32
32
...jest . fn ( ) ,
33
- getGitHubEnterpriseApiUrl : jest . fn ( ) ,
33
+ getGitHubEnterpriseApiUrl : jest . fn ( ) as jest . Mock ,
34
34
} ) ) ;
35
35
const mocktokit = Octokit as jest . MockedClass < typeof Octokit > ;
36
36
const mockedAppAuth = mocked ( ghAuth . createGithubAppAuth , {
@@ -174,9 +174,6 @@ describe('Test simple pool.', () => {
174
174
ghesApiUrl : '' ,
175
175
ghesBaseUrl : '' ,
176
176
} ) ;
177
-
178
- // Reset mocks before each test
179
- jest . clearAllMocks ( ) ;
180
177
} ) ;
181
178
it ( 'Top up pool with pool size 2 registered.' , async ( ) => {
182
179
await expect ( await adjust ( { poolSize : 3 } ) ) . resolves ;
You can’t perform that action at this time.
0 commit comments