@systemfsoftware/stryker-js-vitest-runner 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @systemfsoftware/stryker-js-vitest-runner
2
2
 
3
+ ## 7.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Mutant runs now execute the tests that cover the mutant and report the verdict those tests earn. With the default `related` option, every mutant run filtered out all test files, so mutants came back as errors (`No test files found`) instead of killed or survived. Mutants covered only by tests inside `describe` blocks — any depth, including `describe.each` — now run exactly those covering tests and are reported Killed when any of them fails; mutants covered only by top-level tests keep their existing selection and verdicts.
8
+
9
+ ## 7.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Exported declarations that previously took `unknown` now take a defaulted type parameter: calls that omit the type argument are unchanged, and calls that were previously rejected for passing an unconstrained value are accepted. No runtime behaviour changes.
14
+
3
15
  ## 7.1.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -19,16 +19,14 @@ pnpm add -D @systemfsoftware/stryker-js-vitest-runner vitest
19
19
 
20
20
  ## Setup in `stryker.config.ts`
21
21
 
22
- Plugins in Stryker 5.0 are resolved as `file:` URLs via `import.meta.resolve()`:
22
+ Plugins in Stryker 5.0 take bare package names resolved from your project — no `import.meta.resolve()` needed:
23
23
 
24
24
  ```ts
25
- import { defineConfig } from '@systemfsoftware/stryker-js/config'
25
+ import { StrykerConfig } from '@systemfsoftware/stryker-js/config'
26
26
 
27
- export default defineConfig({
27
+ export default StrykerConfig.define({
28
28
  testRunner: 'vitest',
29
- plugins: [
30
- import.meta.resolve('@systemfsoftware/stryker-js-vitest-runner'),
31
- ],
29
+ plugins: ['@systemfsoftware/stryker-js-vitest-runner'],
32
30
  mutate: [
33
31
  'src/**/*.ts',
34
32
  '!src/**/*.test.ts',
@@ -44,9 +42,9 @@ export default defineConfig({
44
42
  3. **Vitest Config**: By default, Stryker automatically discovers your `vitest.config.ts` or `vite.config.ts`. If your configuration is located elsewhere, specify it in your config:
45
43
 
46
44
  ```ts
47
- export default defineConfig({
45
+ export default StrykerConfig.define({
48
46
  testRunner: 'vitest',
49
- plugins: [import.meta.resolve('@systemfsoftware/stryker-js-vitest-runner')],
47
+ plugins: ['@systemfsoftware/stryker-js-vitest-runner'],
50
48
  vitest: {
51
49
  configFile: 'vitest.unit.config.ts',
52
50
  },
@@ -62,13 +60,11 @@ pnpm add -D @systemfsoftware/stryker-ignorer-in-source-vitest-block
62
60
  ```
63
61
 
64
62
  ```ts
65
- export default defineConfig({
63
+ export default StrykerConfig.define({
66
64
  testRunner: {
67
- plugin: import.meta.resolve('@systemfsoftware/stryker-js-vitest-runner'),
65
+ plugin: '@systemfsoftware/stryker-js-vitest-runner',
68
66
  },
69
- ignorers: [
70
- import.meta.resolve('@systemfsoftware/stryker-ignorer-in-source-vitest-block'),
71
- ],
67
+ ignorers: ['@systemfsoftware/stryker-ignorer-in-source-vitest-block'],
72
68
  })
73
69
  ```
74
70
 
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/index.ts
1
+ //#region src/mod.ts
2
2
  const strykerPlugins = [{
3
3
  kind: "TestRunner",
4
4
  name: "vitest",