This project is a Next.js application designed to generate and manage details for an independent school district website.
First, install dependencies:
npm install
Then, run the development server:
npm run dev
Open 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.js
or.spec.js
extension inside your project (commonly in a__tests__
folder or alongside components). -
Run tests with:
npm test
For more details, refer to: