@systemfsoftware/stryker-js-vitest-runner 5.0.0 → 7.0.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 +64 -0
- package/README.md +59 -16
- package/dist/index.d.mts +0 -8
- package/dist/index.mjs +1 -47
- package/dist/main.mjs +4534 -714
- package/dist/src-js-DRK8boNV.mjs +1009 -0
- package/dist/stryker-setup.mjs +2 -9
- package/package.json +15 -5
package/dist/stryker-setup.mjs
CHANGED
|
@@ -5,7 +5,6 @@ const mutantActivation = inject("mutantActivation");
|
|
|
5
5
|
const mode = inject("mode");
|
|
6
6
|
const ns = globalThis[globalNamespace] ?? (globalThis[globalNamespace] = {});
|
|
7
7
|
ns.hitLimit = inject("hitLimit");
|
|
8
|
-
const isGreaterThanVitest4Point1 = inject("isGreaterThanVitest4Point1");
|
|
9
8
|
if (mode === "mutant") {
|
|
10
9
|
beforeAll(() => {
|
|
11
10
|
ns.hitCount = 0;
|
|
@@ -14,12 +13,9 @@ if (mode === "mutant") {
|
|
|
14
13
|
else beforeAll(() => {
|
|
15
14
|
ns.activeMutant = inject("activeMutant");
|
|
16
15
|
});
|
|
17
|
-
|
|
16
|
+
afterAll((_context, suite) => {
|
|
18
17
|
suite.meta.hitCount = ns.hitCount;
|
|
19
18
|
});
|
|
20
|
-
else afterAll(({ meta }) => {
|
|
21
|
-
meta.hitCount = ns.hitCount;
|
|
22
|
-
});
|
|
23
19
|
} else {
|
|
24
20
|
ns.activeMutant = void 0;
|
|
25
21
|
beforeEach(({ task }) => {
|
|
@@ -28,12 +24,9 @@ if (mode === "mutant") {
|
|
|
28
24
|
afterEach(() => {
|
|
29
25
|
ns.currentTestId = void 0;
|
|
30
26
|
});
|
|
31
|
-
|
|
27
|
+
afterAll((_context, suite) => {
|
|
32
28
|
suite.meta.mutantCoverage = ns.mutantCoverage;
|
|
33
29
|
});
|
|
34
|
-
else afterAll(({ meta }) => {
|
|
35
|
-
meta.mutantCoverage = ns.mutantCoverage;
|
|
36
|
-
});
|
|
37
30
|
}
|
|
38
31
|
function collectTestName({ name, suite }) {
|
|
39
32
|
const nameParts = [name];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js-vitest-runner",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"effect": "4.0.0-rc.112",
|
|
43
|
-
"vitest": ">=
|
|
43
|
+
"vitest": ">=4.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
@@ -49,6 +49,12 @@
|
|
|
49
49
|
"@systemfsoftware/all": "^2",
|
|
50
50
|
"@systemfsoftware/arethetypeswrong-cli": "^4",
|
|
51
51
|
"@systemfsoftware/effect-gherkin-spec": "^4",
|
|
52
|
+
"@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
|
|
53
|
+
"@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
|
|
54
|
+
"@systemfsoftware/stryker-js": "latest",
|
|
55
|
+
"@systemfsoftware/stryker-js-typescript-checker": "latest",
|
|
56
|
+
"@systemfsoftware/stryker-js-vitest-runner": "latest",
|
|
57
|
+
"@systemfsoftware/stryker-test-contribution": "latest",
|
|
52
58
|
"@systemfsoftware/tsconfig": "^1",
|
|
53
59
|
"@types/node": "^24",
|
|
54
60
|
"@vitest/browser-playwright": "^4",
|
|
@@ -59,10 +65,11 @@
|
|
|
59
65
|
"tsdown": "^0.23.0",
|
|
60
66
|
"typescript": "^7",
|
|
61
67
|
"vitest": "^4",
|
|
62
|
-
"@systemfsoftware/stryker-
|
|
63
|
-
"@systemfsoftware/stryker-js-
|
|
64
|
-
"@systemfsoftware/stryker-js-plugin-runtime": "^5.0.
|
|
68
|
+
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
69
|
+
"@systemfsoftware/stryker-js-instrumenter": "^8.0.0",
|
|
70
|
+
"@systemfsoftware/stryker-js-plugin-runtime": "^5.0.1",
|
|
65
71
|
"@systemfsoftware/tsdown-config": "^0.1.0",
|
|
72
|
+
"@systemfsoftware/stryker-js-plugin-interface": "^6.0.1",
|
|
66
73
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
67
74
|
},
|
|
68
75
|
"publishConfig": {
|
|
@@ -72,6 +79,7 @@
|
|
|
72
79
|
"@effect/opentelemetry": "4.0.0-rc.112",
|
|
73
80
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
74
81
|
"@effect/platform-node-shared": "4.0.0-rc.112",
|
|
82
|
+
"@eslint-community/regexpp": "4.12.2",
|
|
75
83
|
"@opentelemetry/api": "1.9.1",
|
|
76
84
|
"@opentelemetry/api-logs": "0.208.0",
|
|
77
85
|
"@opentelemetry/context-async-hooks": "2.2.0",
|
|
@@ -93,6 +101,7 @@
|
|
|
93
101
|
"msgpackr": "2.1.0",
|
|
94
102
|
"msgpackr-extract": "3.0.4",
|
|
95
103
|
"node-gyp-build-optional-packages": "5.2.2",
|
|
104
|
+
"oxc-parser": "0.140.0",
|
|
96
105
|
"ws": "8.21.3"
|
|
97
106
|
},
|
|
98
107
|
"scripts": {
|
|
@@ -101,6 +110,7 @@
|
|
|
101
110
|
"typecheck": "tsc --noEmit --incremental && tsc -p tsconfig.node.json --noEmit",
|
|
102
111
|
"attw": "attw --pack .",
|
|
103
112
|
"test": "vitest run",
|
|
113
|
+
"mutation": "stryker run",
|
|
104
114
|
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
|
|
105
115
|
"api:check": "api-extractor run",
|
|
106
116
|
"api:update": "api-extractor run --local"
|