Skip to content

Commit

Permalink
Provide default tenant for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchezr committed Oct 27, 2023
1 parent 16f98b1 commit f08f87f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/app-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:

- run: npm run coverage -- --maxWorkers=2
working-directory: ${{env.working-directory}}
env:
REACT_APP_TENANT: MOTI

- name: Codecov
uses: codecov/[email protected]
Expand Down
3 changes: 1 addition & 2 deletions source/frontend/src/AppRouter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { lookupCodesSlice } from './store/slices/lookupCodes';
import { networkSlice } from './store/slices/network/networkSlice';
import { tenantsSlice } from './store/slices/tenants';
import { defaultTenant } from './tenants/config/defaultTenant';
import { cleanup, mockKeycloak, render, RenderOptions, screen } from './utils/test-utils';
import { mockKeycloak, render, RenderOptions, screen } from './utils/test-utils';

const history = createMemoryHistory();
const storeState = {
Expand Down Expand Up @@ -86,7 +86,6 @@ describe('PSP routing', () => {
};

afterEach(() => {
cleanup();
jest.clearAllMocks();
});

Expand Down

0 comments on commit f08f87f

Please sign in to comment.