Skip to content

Commit

Permalink
update configuration and related code to account for new ts implement…
Browse files Browse the repository at this point in the history
…ation in keycloak lib.
  • Loading branch information
devinleighsmith committed Nov 19, 2024
1 parent 3af5c9d commit 95bf5d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/frontend/src/utils/TestCommonWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as bcTokens from '@bcgov/design-tokens/js/variables.js';
import { useKeycloak } from '@react-keycloak/web';
import { MemoryHistory } from 'history';
import Keycloak from 'keycloak-js';
import { KeycloakInstance } from 'keycloak-js';
import React from 'react';
import { ToastContainer } from 'react-toastify';
import { ThemeProvider } from 'styled-components';
Expand Down Expand Up @@ -42,7 +42,7 @@ const TestCommonWrapper: React.FunctionComponent<
},
subject: 'test',
authenticated: true,
} as unknown as Keycloak.KeycloakInstance,
} as unknown as KeycloakInstance,
initialized: true,
});
}
Expand Down
3 changes: 1 addition & 2 deletions source/frontend/src/utils/getKeycloakEventHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { KeycloakInstance } from 'keycloak-js/dist/keycloak';

import { clearJwt, saveJwt } from '@/store/slices/jwt/JwtSlice';
import { setKeycloakReady } from '@/store/slices/keycloakReady/keycloakReadySlice';
import { store } from '@/store/store';

import getKeycloakEventHandler from './getKeycloakEventHandler';
import { KeycloakInstance } from 'keycloak-js';

vi.mock('@/store/slices/jwt/JwtSlice', () => ({
saveJwt: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion source/frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"strict": false,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down

0 comments on commit 95bf5d7

Please sign in to comment.