Skip to content

Commit

Permalink
stryker: init
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhjr committed Oct 1, 2024
1 parent 2e49e21 commit 135417a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/devenv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ jobs:
devenv tasks run bun:install
devenv tasks run devenv:pre-commit:install
devenv tasks run devenv:pre-commit:run
- name: Devenv test
- name: Devenv test
run: devenv test
- name: Stryker Mutation Testing
shell: devenv shell bash -- -e {0}
run: |
bun x stryker run
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ deno.lock
node_modules

# pre-commit
.pre-commit-config.yaml
.pre-commit-config.yaml

# Stryker
.stryker-tmp
reports/
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
preset: "ts-jest",
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
"devDependencies": {
"@eslint/js": "^9.11.1",
"@jest/globals": "^29.7.0",
"@stryker-mutator/jest-runner": "^8.6.0",
"@stryker-mutator/typescript-checker": "^8.6.0",
"eslint": "^9.11.1",
"fast-check": "^3.22.0",
"globals": "^15.9.0",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"typescript-eslint": "^8.8.0"
}
}
11 changes: 11 additions & 0 deletions stryker.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @ts-check
// @type {import('@stryker-mutator/api/core').PartialStrykerOptions}
const config = {
packageManager: "npm",
reporters: ["html", "clear-text", "progress"],
checkers: ["typescript"],
testRunner: "jest",
coverageAnalysis: "perTest",
ignorePatterns: [".devenv*", ".direnv"],
};
export default config;

0 comments on commit 135417a

Please sign in to comment.