Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
byn9826 committed Dec 26, 2024
1 parent 515af3d commit 2c8bf07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin-panel/app/[lang]/users/[authId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ const Page = () => {
id={`role-${role.id}`}
data-testid='roleInput'
onChange={() => handleToggleUserRole(role.name)}
checked={userRoles?.includes(role.name)}
checked={userRoles?.includes(role.name) ?? false}
/>
<Label
htmlFor={`role-${role.id}`}
Expand Down
2 changes: 1 addition & 1 deletion server/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
plugins: [tsconfigPaths()],
plugins: [tsconfigPaths({ root: './' })],
test: {
setupFiles: './src/tests/setup.ts',
coverage: {
Expand Down

0 comments on commit 2c8bf07

Please sign in to comment.