Skip to content

Commit

Permalink
fix: sigint test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
attilah committed Sep 25, 2020
1 parent d09a1f2 commit 806df65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/amplify-cli/src/__tests__/test-aborting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('test SIGINT with execute', () => {
findProjectRoot: jest.fn(),
},
stateManager: {
getMeta: jest.fn(),
projectConfigExists: jest.fn(),
},
FeatureFlags: {
Expand Down Expand Up @@ -48,6 +49,9 @@ describe('test SIGINT with execute', () => {
emitSuccess: jest.fn(),
init: jest.fn(),
};
mockContext.migrationInfo = {
projectHasMobileHubResources: false,
};
mockContext.amplify = jest.genMockFromModule('../domain/amplify-toolkit');
jest.setMock('../context-manager', {
constructContext: jest.fn().mockReturnValue(mockContext),
Expand Down

0 comments on commit 806df65

Please sign in to comment.