@systemfsoftware/stryker-plugins 0.9.0 → 0.10.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginKind, declareValuePlugin } from "@stryker-mutator/api/plugin";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
//#region src/effect-schema-ignorer/ast-node.
|
|
3
|
+
//#region src/effect-schema-ignorer/ast-node.kernel.ts
|
|
4
4
|
const Identifier = Schema.Struct({
|
|
5
5
|
type: Schema.Literal("Identifier"),
|
|
6
6
|
name: Schema.String
|
|
@@ -24,7 +24,7 @@ const CallExpression = Schema.suspend(() => Schema.Struct({
|
|
|
24
24
|
}));
|
|
25
25
|
const AstNode = Schema.suspend(() => Schema.Union(Identifier, StringLiteral, ObjectExpression, ArrowFunctionExpression, MemberExpression, CallExpression, UnknownNode));
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region src/effect-schema-ignorer/schema-declaration-ignore.ts
|
|
27
|
+
//#region src/effect-schema-ignorer/schema-declaration-ignore.kernel.ts
|
|
28
28
|
const SYMBOL_DESCRIPTION_IGNORED = "Symbol.for() brand description is identity-only data, not behaviour";
|
|
29
29
|
const TAGGED_TAG_IGNORED = "TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour";
|
|
30
30
|
const TAGGED_FIELDS_IGNORED = "TaggedClass/TaggedError field schema is a declaration, not behaviour";
|
|
@@ -108,4 +108,4 @@ const strykerPlugins = [declareValuePlugin(PluginKind.Ignore, "effect-schema-dec
|
|
|
108
108
|
return decideSchemaDeclarationIgnore(path.node, parent?.node, grandparent?.node, grandparent?.parentPath?.node);
|
|
109
109
|
} })];
|
|
110
110
|
//#endregion
|
|
111
|
-
export { strykerPlugins as t };
|
|
111
|
+
export { SYMBOL_DESCRIPTION_IGNORED as a, decideSchemaDeclarationIgnore as c, OPTIONAL_DEFAULT_IGNORED as i, ANNOTATION_OBJECT_IGNORED as n, TAGGED_FIELDS_IGNORED as o, ANNOTATION_TEXT_IGNORED as r, TAGGED_TAG_IGNORED as s, strykerPlugins as t };
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { PluginKind } from '@stryker-mutator/api/plugin';
|
|
2
2
|
import { ValuePlugin } from '@stryker-mutator/api/plugin';
|
|
3
3
|
|
|
4
|
+
export declare const ANNOTATION_OBJECT_IGNORED: 'annotations object holding only documentation is a declaration, not behaviour';
|
|
5
|
+
|
|
6
|
+
export declare const ANNOTATION_TEXT_IGNORED: 'annotation documentation value is declaration data, not behaviour';
|
|
7
|
+
|
|
8
|
+
export declare const decideSchemaDeclarationIgnore: (node: unknown, parent: unknown, grandparent?: unknown, ancestor?: unknown) => string | undefined;
|
|
9
|
+
|
|
10
|
+
export declare const OPTIONAL_DEFAULT_IGNORED: 'optionalWith default value is config, not behaviour';
|
|
11
|
+
|
|
4
12
|
export declare const strykerPlugins: ValuePlugin<PluginKind.Ignore>[];
|
|
5
13
|
|
|
14
|
+
export declare const SYMBOL_DESCRIPTION_IGNORED: 'Symbol.for() brand description is identity-only data, not behaviour';
|
|
15
|
+
|
|
16
|
+
export declare const TAGGED_FIELDS_IGNORED: 'TaggedClass/TaggedError field schema is a declaration, not behaviour';
|
|
17
|
+
|
|
18
|
+
export declare const TAGGED_TAG_IGNORED: 'TaggedClass/TaggedError _tag is a declaration discriminant, not behaviour';
|
|
19
|
+
|
|
6
20
|
export { }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as strykerPlugins } from "./effect-schema-ignorer-
|
|
2
|
-
export { strykerPlugins };
|
|
1
|
+
import { a as SYMBOL_DESCRIPTION_IGNORED, c as decideSchemaDeclarationIgnore, i as OPTIONAL_DEFAULT_IGNORED, n as ANNOTATION_OBJECT_IGNORED, o as TAGGED_FIELDS_IGNORED, r as ANNOTATION_TEXT_IGNORED, s as TAGGED_TAG_IGNORED, t as strykerPlugins } from "./effect-schema-ignorer-DJv73jAE.mjs";
|
|
2
|
+
export { ANNOTATION_OBJECT_IGNORED, ANNOTATION_TEXT_IGNORED, OPTIONAL_DEFAULT_IGNORED, SYMBOL_DESCRIPTION_IGNORED, TAGGED_FIELDS_IGNORED, TAGGED_TAG_IGNORED, decideSchemaDeclarationIgnore, strykerPlugins };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as strykerPlugins$2 } from "./effect-schema-ignorer-
|
|
1
|
+
import { t as strykerPlugins$2 } from "./effect-schema-ignorer-DJv73jAE.mjs";
|
|
2
2
|
import { PluginKind, declareValuePlugin } from "@stryker-mutator/api/plugin";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
//#region src/in-source-test-ignorer/ast-node.
|
|
4
|
+
//#region src/in-source-test-ignorer/ast-node.kernel.ts
|
|
5
5
|
const Identifier = Schema.Struct({
|
|
6
6
|
type: Schema.Literal("Identifier"),
|
|
7
7
|
name: Schema.String
|
|
@@ -27,7 +27,7 @@ const IfStatement = Schema.Struct({
|
|
|
27
27
|
test: AstLike
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region src/in-source-test-ignorer/in-source-test-ignore.ts
|
|
30
|
+
//#region src/in-source-test-ignorer/in-source-test-ignore.kernel.ts
|
|
31
31
|
const IN_SOURCE_TEST_IGNORED = "inside an `if (import.meta.vitest)` block — test code, not production behaviour";
|
|
32
32
|
const isImportMetaMember = Schema.is(ImportMetaMember);
|
|
33
33
|
const isBinaryExpression = Schema.is(BinaryExpression);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-plugins",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"author": "Ryan Lee <drdgvhbh@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -51,13 +51,14 @@
|
|
|
51
51
|
"tsdown": "^0.22.9",
|
|
52
52
|
"tstyche": "^7.1.0",
|
|
53
53
|
"vitest": "^4",
|
|
54
|
-
"@systemfsoftware/arethetypeswrong-cli": "^1.
|
|
55
|
-
"@systemfsoftware/effect-schema-law": "^0.
|
|
56
|
-
"@systemfsoftware/effect-
|
|
54
|
+
"@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
|
|
55
|
+
"@systemfsoftware/effect-schema-law": "^0.6.1",
|
|
56
|
+
"@systemfsoftware/effect-gherkin-spec": "^0.5.1",
|
|
57
|
+
"@systemfsoftware/effect-schema-vite": "^1.5.1",
|
|
57
58
|
"@systemfsoftware/oxlint-config": "^0.1.0",
|
|
58
|
-
"@systemfsoftware/stryker-js-core": "^1.
|
|
59
|
-
"@systemfsoftware/stryker-js-typescript-checker": "^1.
|
|
60
|
-
"@systemfsoftware/tsconfig": "^1.
|
|
59
|
+
"@systemfsoftware/stryker-js-core": "^1.2.2",
|
|
60
|
+
"@systemfsoftware/stryker-js-typescript-checker": "^1.2.2",
|
|
61
|
+
"@systemfsoftware/tsconfig": "^1.3.0",
|
|
61
62
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"test": "vitest run",
|
|
76
77
|
"test:run": "vitest run --coverage",
|
|
77
78
|
"test:types": "tstyche",
|
|
78
|
-
"mutation": "stryker run --incremental",
|
|
79
79
|
"mutation:full": "stryker run",
|
|
80
80
|
"lint": "oxlint . ${AGENT:+--format=unix --quiet}",
|
|
81
81
|
"attw": "attw --pack .",
|