diff --git a/jest.config.ts b/jest.config.ts index 8920791d..e565dd92 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -37,4 +37,9 @@ const config: Config = { }, }; +/* CI specific config */ +if (process.env.CI != undefined && process.env.CI != "0" && process.env.CI != "") { + config.reporters = [["github-actions", { silent: false }], "summary"]; +} + export default config; diff --git a/src/app.test.ts b/src/app.test.ts index e0c2a41e..97fd43e0 100644 --- a/src/app.test.ts +++ b/src/app.test.ts @@ -7,7 +7,7 @@ import { StatusCode } from "status-code-enum"; describe("sanity tests for app", () => { test("life is not a lie", () => { - expect(7 * 6).toBe(42); + expect(7 * 6).toBe(41); }); it("should run", async () => {