Remove MSW handlers and update demo credentials for improved standardization
- Deleted `admin.ts`, `auth.ts`, and `users.ts` MSW handler files to streamline demo mode setup. - Updated demo credentials logic in `DemoCredentialsModal` and `DemoModeBanner` for stronger password requirements (≥12 characters). - Refined documentation in `CLAUDE.md` to align with new credential standards and auto-generated MSW workflows.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { OrganizationDistributionChart } from '@/components/charts/OrganizationDistributionChart';
|
||||
import type { OrganizationDistributionData } from '@/components/charts/OrganizationDistributionChart';
|
||||
import type { OrgDistributionData } from '@/components/charts/OrganizationDistributionChart';
|
||||
|
||||
// Mock recharts to avoid rendering issues in tests
|
||||
jest.mock('recharts', () => {
|
||||
@@ -18,7 +18,7 @@ jest.mock('recharts', () => {
|
||||
});
|
||||
|
||||
describe('OrganizationDistributionChart', () => {
|
||||
const mockData: OrganizationDistributionData[] = [
|
||||
const mockData: OrgDistributionData[] = [
|
||||
{ name: 'Engineering', value: 45 },
|
||||
{ name: 'Marketing', value: 28 },
|
||||
{ name: 'Sales', value: 35 },
|
||||
|
||||
Reference in New Issue
Block a user