Skip to content

Add Jest configuration and tests for application components - #8

Merged
anufdo merged 1 commit into
mainfrom
add-jest-tests
Aug 9, 2026
Merged

Add Jest configuration and tests for application components#8
anufdo merged 1 commit into
mainfrom
add-jest-tests

Conversation

@anufdo

@anufdo anufdo commented Aug 9, 2026

Copy link
Copy Markdown
Member
  • Created jest.config.cjs for Jest setup with jsdom environment and module mappings.
  • Added jest.setup.js to include testing-library/jest-dom and polyfill for import.meta.env.
  • Implemented mock for Supabase client in src/mocks/supabaseClient.js.
  • Developed tests for App component to verify loading state and user authentication.
  • Created tests for NewTicketForm component to check form rendering, validation, and successful submission.
  • Added tests for UserDashboard component to ensure proper rendering of header and child components.

- Created jest.config.cjs for Jest setup with jsdom environment and module mappings.
- Added jest.setup.js to include testing-library/jest-dom and polyfill for import.meta.env.
- Implemented mock for Supabase client in src/__mocks__/supabaseClient.js.
- Developed tests for App component to verify loading state and user authentication.
- Created tests for NewTicketForm component to check form rendering, validation, and successful submission.
- Added tests for UserDashboard component to ensure proper rendering of header and child components.
i;

for (i = 0; i < rows.length; i += 1) {
rows[i].data = loadRowData(rows[i]);
@anufdo
anufdo merged commit fa473c9 into main Aug 9, 2026
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants