Skip to content

Commit

Permalink
chore(common): add test mutation script
Browse files Browse the repository at this point in the history
  • Loading branch information
notaphplover committed Oct 19, 2024
1 parent f3810d5 commit a9fd02c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/container/libraries/common/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# Test coverage report
/coverage

# Test mutation report
/reports

# node modules
/node_modules/

Expand Down
9 changes: 9 additions & 0 deletions packages/container/libraries/common/jest.config.stryker.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { getJestTsProjectConfig } from '@inversifyjs/foundation-jest-config';

const tsGlobalConfig = getJestTsProjectConfig(
'All',
['/node_modules', '.int.spec.ts'],
'.spec.ts',
);

export default tsGlobalConfig;
4 changes: 4 additions & 0 deletions packages/container/libraries/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"devDependencies": {
"@eslint/js": "9.13.0",
"@jest/globals": "29.7.0",
"@stryker-mutator/core": "8.6.0",
"@stryker-mutator/jest-runner": "8.6.0",
"@stryker-mutator/typescript-checker": "8.6.0",
"@types/node": "20.16.13",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
Expand Down Expand Up @@ -56,6 +59,7 @@
"test:integration:js": "pnpm run test:js --selectProjects Integration",
"test:js": "jest --config=jest.js.config.mjs --runInBand",
"test:js:coverage": "pnpm run test:unit:js --coverage",
"test:mutation": "stryker run",
"test:uncommitted": "pnpm run test --changedSince=HEAD",
"test:unit:js": "pnpm run test:js --selectProjects Unit"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/container/libraries/common/stryker.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import config from '@inversifyjs/foundation-stryker-config';

export default config;

0 comments on commit a9fd02c

Please sign in to comment.