Skip to content

Commit

Permalink
ADD SONARQUBE.PROPERTIES
Browse files Browse the repository at this point in the history
  • Loading branch information
ViLiFYKiNG committed Jul 7, 2024
1 parent 1cdf6fa commit 3a02853
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sonar.projectKey=ViLiFYKiNG_OMFO-MOMO
sonar.organization=vilifyking

sonar.projectName=OMFO-MOMO

sonar.sources=src

sonar.tests=src/tests

sonar.exclusions=**/node_modules/**/*, **/dist/**/*, **/build/**/*, **/migration/**/*

sonar.qualitygate.wait=true

sonar.javascript.lcov.reportPaths=./coverage/lcov.info

sonar.scm.exclusions.disabled=true
4 changes: 2 additions & 2 deletions src/tests/users/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe('POST /auth/login', () => {
['set-cookie']: string[];
}
// Assert
let accessToken = null;
let refreshToken = null;
let accessToken: string | null = null;
let refreshToken: string | null = null;
const cookies =
(response.headers as unknown as Headers)['set-cookie'] || [];
cookies.forEach((cookie) => {
Expand Down
4 changes: 2 additions & 2 deletions src/tests/users/register.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ describe('POST /auth/register', () => {

const response = await request(app).post('/auth/register').send(userData);

let accessToken = null;
let refreshToken = null;
let accessToken: string | null = null;
let refreshToken: string | null = null;
interface Headers {
['set-cookie']: string[];
}
Expand Down

0 comments on commit 3a02853

Please sign in to comment.