@systemfsoftware/stryker-js-vitest-runner 7.1.1 → 7.2.1
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 +14 -0
- package/README.md +5 -9
- package/dist/index.mjs +1 -1
- package/dist/main.mjs +58097 -53695
- package/dist/stryker-setup.mjs +1827 -17
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js-vitest-runner
|
|
2
2
|
|
|
3
|
+
## 7.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The packages now build on the latest `@systemfsoftware/effect-cell-types` 10.2 cell kinds, with no change to their published behavior.
|
|
8
|
+
|
|
9
|
+
- `@systemfsoftware/stryker-test-contribution` exports its evaluator as `Judge`, `TestContribution`, and `TestContributionEvaluator`, and now depends on `effect` directly.
|
|
10
|
+
|
|
11
|
+
## 7.2.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 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.
|
|
16
|
+
|
|
3
17
|
## 7.1.1
|
|
4
18
|
|
|
5
19
|
### Patch 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
|
|
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
25
|
import { defineConfig } from '@systemfsoftware/stryker-js/config'
|
|
26
26
|
|
|
27
27
|
export default defineConfig({
|
|
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',
|
|
@@ -46,7 +44,7 @@ export default defineConfig({
|
|
|
46
44
|
```ts
|
|
47
45
|
export default defineConfig({
|
|
48
46
|
testRunner: 'vitest',
|
|
49
|
-
plugins: [
|
|
47
|
+
plugins: ['@systemfsoftware/stryker-js-vitest-runner'],
|
|
50
48
|
vitest: {
|
|
51
49
|
configFile: 'vitest.unit.config.ts',
|
|
52
50
|
},
|
|
@@ -64,11 +62,9 @@ pnpm add -D @systemfsoftware/stryker-ignorer-in-source-vitest-block
|
|
|
64
62
|
```ts
|
|
65
63
|
export default defineConfig({
|
|
66
64
|
testRunner: {
|
|
67
|
-
plugin:
|
|
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