From a19557c71bf6fe290c0d9e59b07b703784a1c39c Mon Sep 17 00:00:00 2001 From: Hikmah Oladele Date: Thu, 30 Jul 2026 12:01:18 +0000 Subject: [PATCH] chore(backend): clarify nodemon test ignore configuration (#1081) --- backend/README.md | 2 ++ backend/nodemon.json | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/README.md b/backend/README.md index ff6eda52..4c1fc40c 100644 --- a/backend/README.md +++ b/backend/README.md @@ -6,6 +6,8 @@ This is the Node.js / Express backend for FlowFi. It provides the REST API for t - `npm install`: Installs dependencies. - `npm run dev`: Starts the development server using nodemon. + + > **Note:** nodemon watches only the `src/` directory for changes. Tests live in the `tests/` directory (outside the watch scope), so they never trigger server reloads. If tests were ever colocated inside `src/` in the future, add ignore patterns (e.g. `src/**/*.test.ts`) to nodemon.json to prevent unwanted restarts. - `npm run build`: Compiles TypeScript to JavaScript. - `npm start`: Runs the compiled server. - `npm run db:push`: Pushes Prisma schema changes to the database. diff --git a/backend/nodemon.json b/backend/nodemon.json index 7f5f8073..50dd6313 100644 --- a/backend/nodemon.json +++ b/backend/nodemon.json @@ -1,6 +1,5 @@ { "watch": ["src"], "ext": "ts,json", - "ignore": ["src/**/*.spec.ts", "src/**/*.test.ts"], "exec": "npx tsx src/index.ts" }