@systemfsoftware/stryker-js-vitest-runner 1.0.0 → 2.0.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 +55 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +792 -238
- package/dist/stryker-setup.mjs +1 -1
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js-vitest-runner
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Peer Effect requirement advances to 4.0.0-rc.112. No API changes.
|
|
8
|
+
|
|
9
|
+
## 2.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- Three packages are renamed. `plugin-api` is now `@systemfsoftware/stryker-js`, the
|
|
14
|
+
language every plugin is written against. `mutation-run` is now
|
|
15
|
+
`@systemfsoftware/stryker-js-platform-node`, the Node host that runs a mutation
|
|
16
|
+
test. `mutation-report` is now `@systemfsoftware/stryker-js-html-reporter`.
|
|
17
|
+
Install the new names and change your imports.
|
|
18
|
+
|
|
19
|
+
Options types moved. `StrykerOptions`, `PartialStrykerOptions` and `LogLevel` are
|
|
20
|
+
imported from the `Schema` export; `Mutant`, `MutantStatus`, `Position` and
|
|
21
|
+
`Location` from the `Mutant` export. Point a config's `extends` at the language
|
|
22
|
+
package's `Schema` export.
|
|
23
|
+
|
|
24
|
+
`MutantStatus` accepts one spelling per outcome: `Killed`, `Survived`,
|
|
25
|
+
`NoCoverage`, `Timeout`, `CompileError`, `RuntimeError`, `Ignored` and `Pending`.
|
|
26
|
+
The lowercase and abbreviated forms — `killed`, `timedOut`, `noCoverage` and the
|
|
27
|
+
rest — are gone. A comparison against a removed spelling never matched the value
|
|
28
|
+
the reporter actually produced, so check any status comparison you wrote.
|
|
29
|
+
|
|
30
|
+
Statuses, plugin kinds, exit classes and AST formats are string literal unions
|
|
31
|
+
rather than enums, so read them as their string values. Member access such as
|
|
32
|
+
`ExitClass.VerdictFail` no longer resolves.
|
|
33
|
+
|
|
34
|
+
A plugin no longer receives a logger, and the logger port is gone. Plugins log
|
|
35
|
+
through Effect, and the host decides where that output goes.
|
|
36
|
+
|
|
37
|
+
The bundled base preset is gone. A config inherits from the language package's
|
|
38
|
+
`Schema` export and states the thresholds, reporters and plugins it wants; you no
|
|
39
|
+
longer silently inherit a package manager, a plugin list or a break threshold.
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- Machine-readable mutation progress is a newline-delimited JSON file next to the HTML and JSON reports, not the console.
|
|
44
|
+
|
|
45
|
+
The console prints bounded progress prose: phase names, a count line, at most twenty surviving mutants, and a verdict. Killed mutants now advance that count. Child test runs during mutation no longer print per-test output or GitHub workflow commands.
|
|
46
|
+
|
|
47
|
+
If you parsed the console as JSON lines, read the stream file instead. A hard kill can leave that file without a closing verdict line.
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- A mutation run writes the JSON report the `json` reporter is configured to produce.
|
|
52
|
+
|
|
53
|
+
Vitest no longer reprints its full summary for every mutant.
|
|
54
|
+
|
|
55
|
+
- Updated dependencies:
|
|
56
|
+
- @systemfsoftware/effect-cell-types@5.0.0
|
|
57
|
+
|
|
3
58
|
## 1.0.0
|
|
4
59
|
|
|
5
60
|
### Major Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PluginKind } from "@systemfsoftware/stryker-js-plugin-api/plugin";
|
|
2
1
|
//#region src/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The `vitest` test runner, as the plugin the engine loads.
|
|
@@ -7,7 +6,7 @@ import { PluginKind } from "@systemfsoftware/stryker-js-plugin-api/plugin";
|
|
|
7
6
|
* in, so the requirement is visible in the type and an engine that does not
|
|
8
7
|
* provide it fails to compile.
|
|
9
8
|
*/
|
|
10
|
-
declare const strykerPlugins: import("@systemfsoftware/stryker-js
|
|
9
|
+
declare const strykerPlugins: import("@systemfsoftware/stryker-js/Plugin").PluginContribution<"TestRunner">[];
|
|
11
10
|
/**
|
|
12
11
|
* The `vitest` option section as a JSON Schema document, for Stryker's option
|
|
13
12
|
* validation — derived from the declaration, never read from a file. It is built
|