Skip to content
Snippets Groups Projects
Commit d187a062 authored by tom.ryser's avatar tom.ryser :carousel_horse:
Browse files

Added default test for each microservice

parent 26f6b29b
No related branches found
No related tags found
No related merge requests found
Showing
with 36 additions and 11 deletions
......@@ -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
// Jest test for the service
test("Jest is running", () => {
expect(1).toBe(1);
});
......@@ -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
// Jest test for the service
test("Jest is running", () => {
expect(1).toBe(1);
});
......@@ -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
// Jest test for the service
test("Jest is running", () => {
expect(1).toBe(1);
});
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);
});
......@@ -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
......@@ -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
// Jest test for the service
test("Jest is running", () => {
expect(1).toBe(1);
});
......@@ -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
// Jest test for the service
test("Jest is running", () => {
expect(1).toBe(1);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment