Skip to content

Commit

Permalink
really fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
szdziedzic committed Oct 17, 2024
1 parent a97f7c9 commit 8536a7a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Role } from '../../../../graphql/generated';
import { AppQuery } from '../../../../graphql/queries/AppQuery';
import { learnMore } from '../../../../log';
import { fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync } from '../../../../project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync';
import { isExpoInstalled } from '../../../../project/projectUtils';
import SessionManager from '../../../../user/SessionManager';
import { findProjectRootAsync } from '../findProjectDirAndVerifyProjectSetupAsync';
import { getProjectIdAsync } from '../getProjectIdAsync';
Expand All @@ -21,6 +22,7 @@ jest.mock('../../../../ora', () => ({
}),
}));
jest.mock('../../../../project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync');
jest.mock('../../../../project/projectUtils');

describe(getProjectIdAsync, () => {
let sessionManager: SessionManager;
Expand Down Expand Up @@ -71,6 +73,7 @@ describe(getProjectIdAsync, () => {
);

jest.mocked(findProjectRootAsync).mockResolvedValue('/app');
jest.mocked(isExpoInstalled).mockReturnValue(true);
});

it('gets the project ID from app config if exists', async () => {
Expand Down

0 comments on commit 8536a7a

Please sign in to comment.