fix jest import mocks
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user