From 35197562f15ffb5f4fb363bc8889a1fd67e1bad5 Mon Sep 17 00:00:00 2001 From: Thompson <140930314+Godbrand0@users.noreply.github.com> Date: Mon, 22 Jun 2026 23:09:57 -0400 Subject: [PATCH] infra: add test, typecheck, and lint scripts - Add `test` and `test:watch` scripts using Jest - Add `typecheck` script running `tsc --noEmit` - Update `lint` to run ESLint; move Prettier check to `lint:format` - Document all new scripts in README "Available Scripts" section Closes #12 --- README.md | 6 +++++- package.json | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 828856f..b725cfc 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,14 @@ npm run build # Build the application for production npm start # Run the compiled production build locally # Code Quality & Formatting -npm run lint # Check code style with Prettier +npm run lint # Lint source files with ESLint +npm run lint:format # Check code style with Prettier (without auto-fixing) npm run format # Format codebase style automatically using Prettier +npm run typecheck # Run TypeScript compiler check without emitting files # Testing & Audits +npm test # Run unit tests with Jest +npm run test:watch # Run Jest in watch mode npm run test:e2e # Run end-to-end integration tests using Playwright npm run audit:a11y # Build application and perform an accessibility (a11y) audit via axe-playwright diff --git a/package.json b/package.json index 9f2c8e1..43a9066 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,14 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "prettier --check .", + "lint": "eslint .", + "lint:format": "prettier --check .", "audit:a11y": "next build && npx axe-playwright", "format": "prettier --write .", + "test": "jest", + "test:watch": "jest --watch", "test:e2e": "playwright test", + "typecheck": "tsc --noEmit", "prepare": "husky", "analyze": "ANALYZE=true next build" },