@systemfsoftware/stryker-js-html-reporter 0.1.1 → 0.1.2
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 +9 -0
- package/dist/index.mjs +3 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js-html-reporter
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Refreshed builds on the platform-services dependency graph; the packages no longer reach for host builtins directly. No CLI flags or option names change.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @systemfsoftware/stryker-js@0.2.0
|
|
11
|
+
|
|
3
12
|
## 0.1.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,6 @@ import * as Effect from "effect/Effect";
|
|
|
4
4
|
import * as FileSystem from "effect/FileSystem";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
import * as Path from "effect/Path";
|
|
7
|
-
import { pathToFileURL } from "url";
|
|
8
|
-
import { createRequire } from "module";
|
|
9
7
|
import { Cell, Wire, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
10
8
|
import { writeOutputFile } from "@systemfsoftware/stryker-js/output-file";
|
|
11
9
|
import * as Cause from "effect/Cause";
|
|
@@ -73,7 +71,7 @@ const makeHtmlReporter = (params) => {
|
|
|
73
71
|
const path = params.path;
|
|
74
72
|
let heldReport;
|
|
75
73
|
const htmlReportDescription = pipe(Cell.read(() => Effect.gen(function* () {
|
|
76
|
-
const scriptPath =
|
|
74
|
+
const scriptPath = yield* path.fromFileUrl(new URL(import.meta.resolve("mutation-testing-elements/dist/mutation-test-elements.js")));
|
|
77
75
|
const scriptContent = yield* fs.readFileString(scriptPath);
|
|
78
76
|
return {
|
|
79
77
|
report: heldReport,
|
|
@@ -90,7 +88,8 @@ const makeHtmlReporter = (params) => {
|
|
|
90
88
|
const fileName = options.htmlReporter.fileName;
|
|
91
89
|
yield* Effect.logDebug(`Using file "${fileName}"`);
|
|
92
90
|
yield* writeOutputFile(fs, path, fileName, html);
|
|
93
|
-
yield*
|
|
91
|
+
const fileUrl = yield* path.toFileUrl(path.resolve(fileName));
|
|
92
|
+
yield* Effect.logInfo(`Your report can be found at: ${fileUrl.href}`);
|
|
94
93
|
})));
|
|
95
94
|
return {
|
|
96
95
|
onDryRunCompleted: (_event) => Effect.void,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js-html-reporter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"mutation-testing-elements": "3.7.3",
|
|
18
18
|
"mutation-testing-metrics": "3.7.3",
|
|
19
19
|
"mutation-testing-report-schema": "3.7.3",
|
|
20
|
-
"@systemfsoftware/
|
|
21
|
-
"@systemfsoftware/
|
|
20
|
+
"@systemfsoftware/stryker-js": "^0.2.0",
|
|
21
|
+
"@systemfsoftware/effect-cell-types": "^5.0.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"tsdown": "^0.22.14",
|
|
31
31
|
"typescript": "^7",
|
|
32
32
|
"vitest": "^4",
|
|
33
|
+
"@systemfsoftware/all": "^1.1.0",
|
|
33
34
|
"@systemfsoftware/effect-gherkin-spec": "^4.0.0",
|
|
34
|
-
"@systemfsoftware/all": "^1.0.2",
|
|
35
35
|
"@systemfsoftware/tsconfig": "^1.3.3",
|
|
36
36
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
37
37
|
},
|