@cjournois/stryker-config (0.1.5)

Published 2026-11-16 06:02:08 +00:00 by cjournois

Installation

@cjournois:registry=
npm config set @cjournois:registry=
npm install @cjournois/stryker-config@0.1.5
"@cjournois/stryker-config": "0.1.5"

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.7
@cjournois/biome-config-ts 2.1.1
@cjournois/eslint-config-ts 2.1.2
@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.15.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
Details
npm
2026-11-16 06:02:08 +00:00
1
2026-11-25 05:20:10 +00:00
Corentin JOURNOIS
UNLICENSED
1.6 KiB
Assets (1)
Versions (5) View all
0.1.6 2026-11-17
0.1.5 2026-11-16
0.1.4 2026-11-12
0.1.3 2026-11-12
0.1.2 2026-11-09