@cjournois/stryker-config (0.1.3)
Installation
@cjournois:registry=npm config set @cjournois:registry=npm install @cjournois/stryker-config@0.1.3"@cjournois/stryker-config": "0.1.3"About this package
@cjournois/stryker-config
The shared StrykerJS setup for bun units: the per-test @hughescr/stryker-bun-runner, so each mutant
runs only the tests that reach it, with the reporters, timeouts and thresholds every repo uses.
Proprietary — Copyright (c) 2026 cjournois. All rights reserved. SPDX: UNLICENSED. See LICENSE for terms.
Install
bun add -d @cjournois/stryker-config \
@stryker-mutator/core @hughescr/stryker-bun-runner
Usage
// stryker.config.mjs
import { defineConfig } from '@cjournois/stryker-config';
export default defineConfig({ mutate: ['src/**/*.ts', '!src/main.ts'], concurrency: 2 });
Top-level values and arrays (mutate, reporters) replace the preset's; nested options (bun,
thresholds) merge key by key.
The preset runs the per-test bun runner with concurrency: 4, 20 s of slack on each mutant's timeout
(timeoutMS), a 180 s limit on the initial test run (bun.timeout), thresholds 90/75/60
(high/low/break), and mutate: ['src/**/*.ts', '!src/index.ts']. An option given as undefined keeps
the preset's value. That default assumes
src/index.ts only re-exports; a unit whose index.ts holds logic sets its own mutate.
Source
Repository: git.journois.com/cjournois/library
Dependencies
Development dependencies
| ID | Version |
|---|---|
| @biomejs/biome | 2.6.6 |
| @cjournois/biome-config-ts | 2.1.1 |
| @cjournois/eslint-config-ts | 2.1.1 |
| @eslint/js | 10.0.1 |
| @hughescr/stryker-bun-runner | 1.6.0 |
| @stryker-mutator/api | 10.1.1 |
| @stryker-mutator/core | 10.1.1 |
| @types/bun | 1.4.4 |
| eslint | 10.14.0 |
| tsdown | 0.23.7 |
| typescript | 6.0.3 |
| typescript-eslint | 8.72.2 |
Peer dependencies
| ID | Version |
|---|---|
| @hughescr/stryker-bun-runner | ^1.6.0 |
| @stryker-mutator/core | ^10.0.0 |