From e3b799b2c18db09be1aa13a43120ce1acc9198d6 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Thu, 11 Jan 2024 19:26:36 +0800 Subject: [PATCH] chore(deps): update package.json adobe dependencies fixed a failing test. --- package.json | 16 ++++++++-------- test/hooks/pre-pack-event-reg.test.js | 3 ++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index ebce656..f2f96c6 100644 --- a/package.json +++ b/package.json @@ -8,14 +8,14 @@ ], "license": "Apache-2.0", "dependencies": { - "@adobe/aio-lib-console": "^4.0.0", - "@adobe/aio-lib-core-config": "^4.0.0", - "@adobe/aio-lib-core-logging": "^2.0.0", - "@adobe/aio-lib-core-networking": "^4.1.0", - "@adobe/aio-lib-env": "^2.0.0", - "@adobe/aio-cli-lib-app-config": "^3.0.0", - "@adobe/aio-lib-events": "^3.2.0", - "@adobe/aio-lib-ims": "^6.0.1", + "@adobe/aio-lib-console": "^5", + "@adobe/aio-lib-core-config": "^5", + "@adobe/aio-lib-core-logging": "^3", + "@adobe/aio-lib-core-networking": "^5", + "@adobe/aio-lib-env": "^3", + "@adobe/aio-cli-lib-app-config": "^4", + "@adobe/aio-lib-events": "^4", + "@adobe/aio-lib-ims": "^7", "@oclif/core": "^1.5.2", "inquirer": "^8.2.5", "js-yaml": "^4.1.0" diff --git a/test/hooks/pre-pack-event-reg.test.js b/test/hooks/pre-pack-event-reg.test.js index 89d2c6e..7effd26 100644 --- a/test/hooks/pre-pack-event-reg.test.js +++ b/test/hooks/pre-pack-event-reg.test.js @@ -18,7 +18,8 @@ const { getCliEnv } = require('@adobe/aio-lib-env') const mockFetch = jest.fn() jest.mock('@adobe/aio-lib-core-networking', () => ({ - createFetch: jest.fn(() => mockFetch) + createFetch: jest.fn(() => mockFetch), + HttpExponentialBackoff: jest.fn() })) const hook = require('../../src/hooks/pre-pack-event-reg')