diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a99d545..d0beb1c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -49,7 +49,8 @@ jobs: -Dsonar.exclusions=**/node_modules/** \ -Dsonar.host.url=https://sonar.each-cs.com \ -Dsonar.token=${{ secrets.SONAR_TOKEN }} \ - -Dsonar.qualitygate.wait=true + -Dsonar.qualitygate.wait=true \ + -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info # ========================================== # DYNAMIC SECURITY ANALYSIS & DEPLOYMENT diff --git a/backend/server.js b/backend/server.js index acc0d6b..e355585 100644 --- a/backend/server.js +++ b/backend/server.js @@ -4,6 +4,11 @@ const path = require('node:path'); const nodemailer = require('nodemailer'); const app = express(); + + +app.disable('x-powered-by'); + + const PORT = process.env.PORT || 3000; app.use(cors()); diff --git a/package.json b/package.json index 28541a1..9d35659 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "jest" + "test": "jest --coverage --coverageReporters=lcovonly" }, "repository": { "type": "git",