From 268eca38705afd5dbd9ee99b95d365ea52d65835 Mon Sep 17 00:00:00 2001 From: Timothy-Gonzalez <105177619+Timothy-Gonzalez@users.noreply.github.com> Date: Sat, 4 Nov 2023 22:52:12 -0500 Subject: [PATCH] test --- jest.config.ts | 5 +++++ src/app.test.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 () => {