Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-Gonzalez committed Nov 5, 2023
1 parent a9d49e3 commit 268eca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check failure on line 10 in src/app.test.ts

View workflow job for this annotation

GitHub Actions / test

sanity tests for app › life is not a lie

expect(received).toBe(expected) // Object.is equality Expected: 41 Received: 42 at Object.<anonymous> (app.test.ts:10:23)
});

it("should run", async () => {
Expand Down

0 comments on commit 268eca3

Please sign in to comment.