How correamarques/react-mid-dev-test works
Project type and purpose
• This is a front-end Single Page Application (SPA) built with React and Vite.
• It implements eight small calculator-style exercises (factorial, prime numbers, palindrome, etc.) to demonstrate mid-level React skills.
• It includes unit tests (React Testing Library/Vitest or Jest) and end-to-end tests (Cypress).
File structure
• Top level:
• index.html + public/ → static assets
• src/ → application source code
• cypress/ → E2E tests and fixtures
• config files: vite.config.ts, tsconfig.json, package.json, Cypress config, ESLint, etc.
• src/ subdivides into:
• components/shared/ → reusable UI pieces (Header, NavigationBar)
• pages/ → one page component per exercise + Home
• utils/ → test-helper utilities
• main.tsx → entry point mounting <App/>
• App.tsx → router/navigation hub
• Build/deploy: Vite dev server serves the bundled SPA; npm run dev starts it.
• Testing:
• Unit tests alongside components/pages (App.test.tsx, Header.test.tsx, etc.)
• Cypress E2E under cypress/e2e/*.cy.ts with fixtures & support files
README
• Describes how to install (npm install) and run the dev server (npm run dev).
• Explains how to launch Cypress in headless or interactive mode.
• Lists each exercise’s user story (calculator, prime checker, etc.).