Skip to content

Commit

Permalink
fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveed committed Oct 7, 2024
1 parent b1e65dc commit dde3e55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"moduleNameMapper": {
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/fileMock.js",
"\\.css$": "identity-obj-proxy"
},
"testMatch": ["**/src/**/*.test.ts", "**/src/**/*.test.tsx"],
Expand Down
1 change: 1 addition & 0 deletions mocks/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '';
2 changes: 1 addition & 1 deletion src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function isNavOpen(): boolean {
async function openNav(): Promise<void> {
if (!isNavOpen()) {
await act(async () => {
fireEvent.click(screen.getByTitle('Calima Logo'));
fireEvent.click(screen.getByTitle('Calima Sanar logo'));
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/SignInPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('SignInPage', () => {
});

function expectSigninPageRendered(): void {
expect(screen.getByText('Sign in to Medplum')).toBeInTheDocument();
expect(screen.getByText('Sign in to Calima EHR')).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Next' })).toBeInTheDocument();
}

Expand Down

0 comments on commit dde3e55

Please sign in to comment.