Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions frontend/jest.auth.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
rootDir: '.',
clearMocks: true,
testEnvironment: 'node',
moduleDirectories: ['node_modules', 'src'],
testMatch: ['<rootDir>/src/App/auth.test.tsx', '<rootDir>/src/services/preset.test.tsx'],
transform: {
'\\.[jt]sx?$': 'babel-jest',
},
};
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
"eslint-fix": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix",
"test": "jest",
"test:auth": "cross-env NODE_ENV=test jest --config jest.auth.config.cjs",
"test:update-snapshots": "jest -u",
"generate-api": "npx @rtk-query/codegen-openapi openapi-config.ts",
"pre-commit": "lint-staged"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App/Login/EntraID/LoginByEntraID/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const LoginByEntraID: React.FC<{ className?: string }> = ({ className })

return (
<div className={cn(styles.entraSignIn, className)}>
<Button onClick={signInClick} disabled={isLoading} loading={isLoading} variant="primary">
<Button fullWidth onClick={signInClick} disabled={isLoading} loading={isLoading} variant="primary">
<span className={styles.loginButtonInner}>
<EntraIdIcon />
<span className={styles.loginButtonLabel}>{t('common.login_entra')}</span>
Expand Down
Loading
Loading