Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 5f28350

Browse files
chore: Bump jest-mock from 28.1.3 to 29.0.3 in /modules/runners/lambdas/runners (#2412)
* chore: Bump jest-mock in /modules/runners/lambdas/runners Bumps [jest-mock](https://github.com/facebook/jest/tree/HEAD/packages/jest-mock) from 28.1.3 to 29.0.3. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.0.3/packages/jest-mock) --- updated-dependencies: - dependency-name: jest-mock dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: fix breaking changes * chore: fix breaking changes Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niek Palm <[email protected]>
1 parent bae7cbd commit 5f28350

File tree

5 files changed

+26
-24
lines changed

5 files changed

+26
-24
lines changed

Diff for: modules/runners/lambdas/runners/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint": "^7.32.0",
2727
"eslint-plugin-prettier": "4.2.1",
2828
"jest": "27.5.1",
29-
"jest-mock": "^28.1.3",
29+
"jest-mock": "^29.0.3",
3030
"jest-mock-extended": "^2.0.7",
3131
"moment-timezone": "^0.5.37",
3232
"nock": "^13.2.9",

Diff for: modules/runners/lambdas/runners/src/pool/pool.test.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jest.mock('./../aws/runners');
2626
jest.mock('./../gh-auth/gh-auth');
2727

2828
const mocktokit = Octokit as jest.MockedClass<typeof Octokit>;
29-
const mockedAppAuth = mocked(ghAuth.createGithubAppAuth, true);
30-
const mockedInstallationAuth = mocked(ghAuth.createGithubInstallationAuth, true);
31-
const mockCreateClient = mocked(ghAuth.createOctoClient, true);
29+
const mockedAppAuth = mocked(ghAuth.createGithubAppAuth, {
30+
shallow: false,
31+
});
32+
const mockedInstallationAuth = mocked(ghAuth.createGithubInstallationAuth, { shallow: false });
33+
const mockCreateClient = mocked(ghAuth.createOctoClient, { shallow: false });
3234
const mockListRunners = mocked(listEC2Runners);
3335

3436
const cleanEnv = process.env;

Diff for: modules/runners/lambdas/runners/src/scale-runners/scale-down.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jest.mock('./../gh-auth/gh-auth');
3232
jest.mock('./cache');
3333

3434
const mocktokit = Octokit as jest.MockedClass<typeof Octokit>;
35-
const mockedAppAuth = mocked(ghAuth.createGithubAppAuth, true);
36-
const mockedInstallationAuth = mocked(ghAuth.createGithubInstallationAuth, true);
37-
const mockCreateClient = mocked(ghAuth.createOctoClient, true);
35+
const mockedAppAuth = mocked(ghAuth.createGithubAppAuth, { shallow: false });
36+
const mockedInstallationAuth = mocked(ghAuth.createGithubInstallationAuth, { shallow: false });
37+
const mockCreateClient = mocked(ghAuth.createOctoClient, { shallow: false });
3838
const mockListRunners = mocked(listEC2Runners);
3939

4040
export interface TestData {

Diff for: modules/runners/lambdas/runners/src/scale-runners/scale-up.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jest.mock('./../aws/runners');
2828
jest.mock('./../gh-auth/gh-auth');
2929

3030
const mocktokit = Octokit as jest.MockedClass<typeof Octokit>;
31-
const mockedAppAuth = mocked(ghAuth.createGithubAppAuth, true);
32-
const mockedInstallationAuth = mocked(ghAuth.createGithubInstallationAuth, true);
33-
const mockCreateClient = mocked(ghAuth.createOctoClient, true);
31+
const mockedAppAuth = mocked(ghAuth.createGithubAppAuth, { shallow: false });
32+
const mockedInstallationAuth = mocked(ghAuth.createGithubInstallationAuth, { shallow: false });
33+
const mockCreateClient = mocked(ghAuth.createOctoClient, { shallow: false });
3434

3535
const TEST_DATA: scaleUpModule.ActionRequestMessage = {
3636
id: 1,

Diff for: modules/runners/lambdas/runners/yarn.lock

+14-14
Original file line numberDiff line numberDiff line change
@@ -1197,10 +1197,10 @@
11971197
terminal-link "^2.0.0"
11981198
v8-to-istanbul "^8.1.0"
11991199

1200-
"@jest/schemas@^28.1.3":
1201-
version "28.1.3"
1202-
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-28.1.3.tgz#ad8b86a66f11f33619e3d7e1dcddd7f2d40ff905"
1203-
integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==
1200+
"@jest/schemas@^29.0.0":
1201+
version "29.0.0"
1202+
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a"
1203+
integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==
12041204
dependencies:
12051205
"@sinclair/typebox" "^0.24.1"
12061206

@@ -1265,12 +1265,12 @@
12651265
"@types/yargs" "^16.0.0"
12661266
chalk "^4.0.0"
12671267

1268-
"@jest/types@^28.1.3":
1269-
version "28.1.3"
1270-
resolved "https://registry.yarnpkg.com/@jest/types/-/types-28.1.3.tgz#b05de80996ff12512bc5ceb1d208285a7d11748b"
1271-
integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==
1268+
"@jest/types@^29.0.3":
1269+
version "29.0.3"
1270+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.0.3.tgz#0be78fdddb1a35aeb2041074e55b860561c8ef63"
1271+
integrity sha512-coBJmOQvurXjN1Hh5PzF7cmsod0zLIOXpP8KD161mqNlroMhLcwpODiEzi7ZsRl5Z/AIuxpeNm8DCl43F4kz8A==
12721272
dependencies:
1273-
"@jest/schemas" "^28.1.3"
1273+
"@jest/schemas" "^29.0.0"
12741274
"@types/istanbul-lib-coverage" "^2.0.0"
12751275
"@types/istanbul-reports" "^3.0.0"
12761276
"@types/node" "*"
@@ -3561,12 +3561,12 @@ jest-mock@^27.5.1:
35613561
"@jest/types" "^27.5.1"
35623562
"@types/node" "*"
35633563

3564-
jest-mock@^28.1.3:
3565-
version "28.1.3"
3566-
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-28.1.3.tgz#d4e9b1fc838bea595c77ab73672ebf513ab249da"
3567-
integrity sha512-o3J2jr6dMMWYVH4Lh/NKmDXdosrsJgi4AviS8oXLujcjpCMBb1FMsblDnOXKZKfSiHLxYub1eS0IHuRXsio9eA==
3564+
jest-mock@^29.0.3:
3565+
version "29.0.3"
3566+
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.0.3.tgz#4f0093f6a9cb2ffdb9c44a07a3912f0c098c8de9"
3567+
integrity sha512-ort9pYowltbcrCVR43wdlqfAiFJXBx8l4uJDsD8U72LgBcetvEp+Qxj1W9ZYgMRoeAo+ov5cnAGF2B6+Oth+ww==
35683568
dependencies:
3569-
"@jest/types" "^28.1.3"
3569+
"@jest/types" "^29.0.3"
35703570
"@types/node" "*"
35713571

35723572
jest-pnp-resolver@^1.2.2:

0 commit comments

Comments
 (0)