fix jest import mocks

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-03-02 08:58:21 -06:00
parent 0586d4c1c5
commit 84502b6b8e
2 changed files with 4 additions and 4 deletions
@@ -73,15 +73,15 @@ jest.mock('@backstage/cli-common', () => ({
}),
}));
jest.mock('../../lib/run', () => {
jest.mock('../../../../lib/run', () => {
return {
run: jest.fn(),
};
});
const mockFetchPackageInfo = jest.fn();
jest.mock('../../lib/versioning/packages', () => {
const actual = jest.requireActual('../../lib/versioning/packages');
jest.mock('../../../../lib/versioning/packages', () => {
const actual = jest.requireActual('../../../../lib/versioning/packages');
return {
...actual,
fetchPackageInfo: (name: string) => mockFetchPackageInfo(name),
@@ -45,7 +45,7 @@ jest.mock('@backstage/cli-common', () => ({
}),
}));
jest.mock('../../lib/run', () => {
jest.mock('../../../../lib/run', () => {
return {
run: jest.fn(),
};