diff --git a/microservices/auth/sonar-project.properties b/microservices/auth/sonar-project.properties index 67562adc2ec99fb8791aeefeb7d2beb14a6be56b..b26dc3cd96753a2275e6922cbb5131c640159bff 100644 --- a/microservices/auth/sonar-project.properties +++ b/microservices/auth/sonar-project.properties @@ -7,5 +7,5 @@ sonar.language=ts sonar.typescript.tsconfigPath=tsconfig.json sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/**,target/**,prisma/migrations/** -#sonar.test.inclusions=**/*.test.ts +sonar.test.inclusions=**/*.test.ts sonar.typescript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file diff --git a/microservices/auth/test/service.test.ts b/microservices/auth/test/service.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..97610cd1959d4658728e3d55e407e2a466b99d25 --- /dev/null +++ b/microservices/auth/test/service.test.ts @@ -0,0 +1,5 @@ +// Jest test for the service +test("Jest is running", () => { + expect(1).toBe(1); +}); + diff --git a/microservices/correction_qcm/sonar-project.properties b/microservices/correction_qcm/sonar-project.properties index 2a20ac1795b76c1d8dcaeaa79b074f0d2fd70603..f8772e3e358f07dfdedc164b81263b95ab37056e 100644 --- a/microservices/correction_qcm/sonar-project.properties +++ b/microservices/correction_qcm/sonar-project.properties @@ -7,5 +7,5 @@ sonar.language=ts sonar.typescript.tsconfigPath=tsconfig.json sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/**,target/**,prisma/migrations/** -#sonar.test.inclusions=**/*.test.ts +sonar.test.inclusions=**/*.test.ts sonar.typescript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file diff --git a/microservices/correction_qcm/test/service.test.ts b/microservices/correction_qcm/test/service.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..97610cd1959d4658728e3d55e407e2a466b99d25 --- /dev/null +++ b/microservices/correction_qcm/test/service.test.ts @@ -0,0 +1,5 @@ +// Jest test for the service +test("Jest is running", () => { + expect(1).toBe(1); +}); + diff --git a/microservices/creation_qcm/sonar-project.properties b/microservices/creation_qcm/sonar-project.properties index 2e5ce06e8b099615611f7c645ce19a30612cb844..14a57885235abbe1fbd5ac696a777cbbf02c3f04 100644 --- a/microservices/creation_qcm/sonar-project.properties +++ b/microservices/creation_qcm/sonar-project.properties @@ -7,5 +7,5 @@ sonar.language=ts sonar.typescript.tsconfigPath=tsconfig.json sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/**,target/**,prisma/migrations/** -#sonar.test.inclusions=**/*.test.ts +sonar.test.inclusions=**/*.test.ts sonar.typescript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file diff --git a/microservices/creation_qcm/test/service.test.ts b/microservices/creation_qcm/test/service.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..97610cd1959d4658728e3d55e407e2a466b99d25 --- /dev/null +++ b/microservices/creation_qcm/test/service.test.ts @@ -0,0 +1,5 @@ +// Jest test for the service +test("Jest is running", () => { + expect(1).toBe(1); +}); + diff --git a/microservices/helloworld/test/service.test.ts b/microservices/helloworld/test/service.test.ts index 4049a9ca2e080c3e9b77e43d1625515ef90614de..97610cd1959d4658728e3d55e407e2a466b99d25 100644 --- a/microservices/helloworld/test/service.test.ts +++ b/microservices/helloworld/test/service.test.ts @@ -1,6 +1,5 @@ -require("dotenv").config(); -import { sum } from "../src/sum"; - -test("adds 1 + 2 to equal 3", () => { - expect(sum(1, 2)).toBe(3); +// Jest test for the service +test("Jest is running", () => { + expect(1).toBe(1); }); + diff --git a/microservices/navigation_qcm/sonar-project.properties b/microservices/navigation_qcm/sonar-project.properties index 5537cce7cd64719bc11e22653976a980e0f78892..eb3987f234aed3b256ba30e9e5ca36df4fb5dc15 100644 --- a/microservices/navigation_qcm/sonar-project.properties +++ b/microservices/navigation_qcm/sonar-project.properties @@ -7,5 +7,5 @@ sonar.language=ts sonar.typescript.tsconfigPath=tsconfig.json sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/**,target/**,prisma/migrations/** -#sonar.test.inclusions=**/*.test.ts +sonar.test.inclusions=**/*.test.ts sonar.typescript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file diff --git a/microservices/realise_qcm/sonar-project.properties b/microservices/realise_qcm/sonar-project.properties index f1475d95608e5b1c21a21b49ea3f502938a313eb..e055c6ee3ef6ea7a8a17173d4d715e7e8a485378 100644 --- a/microservices/realise_qcm/sonar-project.properties +++ b/microservices/realise_qcm/sonar-project.properties @@ -7,5 +7,5 @@ sonar.language=ts sonar.typescript.tsconfigPath=tsconfig.json sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/**,target/**,prisma/migrations/** -#sonar.test.inclusions=**/*.test.ts +sonar.test.inclusions=**/*.test.ts sonar.typescript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file diff --git a/microservices/realise_qcm/test/service.test.ts b/microservices/realise_qcm/test/service.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..79392c5ce2889a513816a06d0d1ea8aebbe37995 --- /dev/null +++ b/microservices/realise_qcm/test/service.test.ts @@ -0,0 +1,6 @@ + +// Jest test for the service +test("Jest is running", () => { + expect(1).toBe(1); +}); + diff --git a/microservices/search_qcm/sonar-project.properties b/microservices/search_qcm/sonar-project.properties index 2179b891141ec401ca39cd35779f426f61a8a4b8..0f849a24f7dca158cd0875e4fa09e3762ef346c5 100644 --- a/microservices/search_qcm/sonar-project.properties +++ b/microservices/search_qcm/sonar-project.properties @@ -7,5 +7,5 @@ sonar.language=ts sonar.typescript.tsconfigPath=tsconfig.json sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/**,target/**,prisma/migrations/** -#sonar.test.inclusions=**/*.test.ts +sonar.test.inclusions=**/*.test.ts sonar.typescript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file diff --git a/microservices/search_qcm/test/service.test.ts b/microservices/search_qcm/test/service.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..97610cd1959d4658728e3d55e407e2a466b99d25 --- /dev/null +++ b/microservices/search_qcm/test/service.test.ts @@ -0,0 +1,5 @@ +// Jest test for the service +test("Jest is running", () => { + expect(1).toBe(1); +}); +