Skip to content

Commit

Permalink
Start testing lambdas - found can't ignore entire file if other files…
Browse files Browse the repository at this point in the history
… need it - disable mutants on the file instead
  • Loading branch information
JCake committed Feb 18, 2024
1 parent 9c89ae9 commit ac549ce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pizza-function/reports/mutation/mutation.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pizza-function/src/caseys-playwright.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Stryker disable all
import { BrowserContext, LaunchOptions, Page } from "playwright";
import { chromium } from "playwright-extra";
import { tmpdir } from "os";
Expand Down
8 changes: 8 additions & 0 deletions pizza-function/src/lambdas.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test, expect } from "vitest";
import { handler } from "./lambda";

test('runs function', async () => {
const result = await handler({detail:{}}, {} as any, () => {});
//expect(result.statusCode).toBe(200);
//expect(result.body).toBe('{"message":"Did not trigger event"}');
});
3 changes: 1 addition & 2 deletions pizza-function/stryker.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const config = {
coverageAnalysis: "perTest",
buildCommand: "npm run build",
plugins: ["@stryker-mutator/*","./stryker-console-ignorer.mjs"],
ignorers: ["console"],
ignorePatterns: ["*-playwright.ts"]
ignorers: ["console"]
};
export default config;

0 comments on commit ac549ce

Please sign in to comment.