This project is a Next.js application designed to generate and manage details for an independent school district website.
First, install dependencies:
npm installThen, run the development server:
npm run devOpen http://localhost:3000 to view the site in your browser.
npm run dev— Start the development servernpm run build— Build the application for productionnpm start— Start the production server
To add and run unit tests for this project:
-
Install a testing framework (e.g., Jest and React Testing Library):
npm install --save-dev jest @testing-library/react @testing-library/jest-dom
-
Add test scripts to your
package.json:"scripts": { "test": "jest" }
-
Create test files with the
.test.jsor.spec.jsextension inside your project (commonly in a__tests__folder or alongside components). -
Run tests with:
npm test
For more details, refer to: