@systemfsoftware/stryker-js-vitest-runner 7.1.1 → 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 +6 -0
- package/README.md +9 -13
- package/dist/index.mjs +1 -1
- package/dist/main.mjs +57802 -53597
- package/dist/stryker-setup.mjs +1827 -17
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 7.1.1
|
|
4
10
|
|
|
5
11
|
### 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
|
-
import {
|
|
25
|
+
import { StrykerConfig } from '@systemfsoftware/stryker-js/config'
|
|
26
26
|
|
|
27
|
-
export default
|
|
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
|
|
45
|
+
export default StrykerConfig.define({
|
|
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
|
},
|
|
@@ -62,13 +60,11 @@ pnpm add -D @systemfsoftware/stryker-ignorer-in-source-vitest-block
|
|
|
62
60
|
```
|
|
63
61
|
|
|
64
62
|
```ts
|
|
65
|
-
export default
|
|
63
|
+
export default StrykerConfig.define({
|
|
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