@d-es-ign/stryker-js-api 9.6.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/LICENSE +201 -0
- package/README.md +25 -0
- package/core.d.ts +3 -0
- package/dist/schema/stryker-core.json +567 -0
- package/dist/src/check/check-result.d.ts +10 -0
- package/dist/src/check/check-result.d.ts.map +1 -0
- package/dist/src/check/check-result.js +2 -0
- package/dist/src/check/check-result.js.map +1 -0
- package/dist/src/check/check-status.d.ts +5 -0
- package/dist/src/check/check-status.d.ts.map +1 -0
- package/dist/src/check/check-status.js +6 -0
- package/dist/src/check/check-status.js.map +1 -0
- package/dist/src/check/checker.d.ts +19 -0
- package/dist/src/check/checker.d.ts.map +1 -0
- package/dist/src/check/checker.js +2 -0
- package/dist/src/check/checker.js.map +1 -0
- package/dist/src/check/index.d.ts +4 -0
- package/dist/src/check/index.d.ts.map +1 -0
- package/dist/src/check/index.js +4 -0
- package/dist/src/check/index.js.map +1 -0
- package/dist/src/check/mutant-status.d.ts +11 -0
- package/dist/src/check/mutant-status.d.ts.map +1 -0
- package/dist/src/check/mutant-status.js +12 -0
- package/dist/src/check/mutant-status.js.map +1 -0
- package/dist/src/core/file-description.d.ts +13 -0
- package/dist/src/core/file-description.d.ts.map +1 -0
- package/dist/src/core/file-description.js +2 -0
- package/dist/src/core/file-description.js.map +1 -0
- package/dist/src/core/index.d.ts +17 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +15 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/instrument.d.ts +21 -0
- package/dist/src/core/instrument.d.ts.map +1 -0
- package/dist/src/core/instrument.js +16 -0
- package/dist/src/core/instrument.js.map +1 -0
- package/dist/src/core/location.d.ts +9 -0
- package/dist/src/core/location.d.ts.map +1 -0
- package/dist/src/core/location.js +2 -0
- package/dist/src/core/location.js.map +1 -0
- package/dist/src/core/mutant-coverage.d.ts +10 -0
- package/dist/src/core/mutant-coverage.d.ts.map +1 -0
- package/dist/src/core/mutant-coverage.js +2 -0
- package/dist/src/core/mutant-coverage.js.map +1 -0
- package/dist/src/core/mutant-test-plan.d.ts +52 -0
- package/dist/src/core/mutant-test-plan.d.ts.map +1 -0
- package/dist/src/core/mutant-test-plan.js +15 -0
- package/dist/src/core/mutant-test-plan.js.map +1 -0
- package/dist/src/core/mutant.d.ts +36 -0
- package/dist/src/core/mutant.d.ts.map +1 -0
- package/dist/src/core/mutant.js +2 -0
- package/dist/src/core/mutant.js.map +1 -0
- package/dist/src/core/mutation-range.d.ts +15 -0
- package/dist/src/core/mutation-range.d.ts.map +1 -0
- package/dist/src/core/mutation-range.js +2 -0
- package/dist/src/core/mutation-range.js.map +1 -0
- package/dist/src/core/partial-stryker-options.d.ts +12 -0
- package/dist/src/core/partial-stryker-options.d.ts.map +1 -0
- package/dist/src/core/partial-stryker-options.js +2 -0
- package/dist/src/core/partial-stryker-options.js.map +1 -0
- package/dist/src/core/position.d.ts +9 -0
- package/dist/src/core/position.d.ts.map +1 -0
- package/dist/src/core/position.js +2 -0
- package/dist/src/core/position.js.map +1 -0
- package/dist/src/core/report-types.d.ts +3 -0
- package/dist/src/core/report-types.d.ts.map +1 -0
- package/dist/src/core/report-types.js +5 -0
- package/dist/src/core/report-types.js.map +1 -0
- package/dist/src/core/stryker-options-schema.d.ts +3 -0
- package/dist/src/core/stryker-options-schema.d.ts.map +1 -0
- package/dist/src/core/stryker-options-schema.js +5 -0
- package/dist/src/core/stryker-options-schema.js.map +1 -0
- package/dist/src/ignore/ignorer.d.ts +6 -0
- package/dist/src/ignore/ignorer.d.ts.map +1 -0
- package/dist/src/ignore/ignorer.js +2 -0
- package/dist/src/ignore/ignorer.js.map +1 -0
- package/dist/src/ignore/index.d.ts +2 -0
- package/dist/src/ignore/index.d.ts.map +1 -0
- package/dist/src/ignore/index.js +2 -0
- package/dist/src/ignore/index.js.map +1 -0
- package/dist/src/logging/index.d.ts +3 -0
- package/dist/src/logging/index.d.ts.map +1 -0
- package/dist/src/logging/index.js +2 -0
- package/dist/src/logging/index.js.map +1 -0
- package/dist/src/logging/logger-factory-method.d.ts +10 -0
- package/dist/src/logging/logger-factory-method.d.ts.map +1 -0
- package/dist/src/logging/logger-factory-method.js +2 -0
- package/dist/src/logging/logger-factory-method.js.map +1 -0
- package/dist/src/logging/logger.d.ts +15 -0
- package/dist/src/logging/logger.d.ts.map +1 -0
- package/dist/src/logging/logger.js +2 -0
- package/dist/src/logging/logger.js.map +1 -0
- package/dist/src/plugin/contexts.d.ts +19 -0
- package/dist/src/plugin/contexts.d.ts.map +1 -0
- package/dist/src/plugin/contexts.js +2 -0
- package/dist/src/plugin/contexts.js.map +1 -0
- package/dist/src/plugin/index.d.ts +7 -0
- package/dist/src/plugin/index.d.ts.map +1 -0
- package/dist/src/plugin/index.js +6 -0
- package/dist/src/plugin/index.js.map +1 -0
- package/dist/src/plugin/plugin-kind.d.ts +10 -0
- package/dist/src/plugin/plugin-kind.d.ts.map +1 -0
- package/dist/src/plugin/plugin-kind.js +11 -0
- package/dist/src/plugin/plugin-kind.js.map +1 -0
- package/dist/src/plugin/plugins.d.ts +79 -0
- package/dist/src/plugin/plugins.d.ts.map +1 -0
- package/dist/src/plugin/plugins.js +41 -0
- package/dist/src/plugin/plugins.js.map +1 -0
- package/dist/src/plugin/scope.d.ts +5 -0
- package/dist/src/plugin/scope.d.ts.map +1 -0
- package/dist/src/plugin/scope.js +7 -0
- package/dist/src/plugin/scope.js.map +1 -0
- package/dist/src/plugin/tokens.d.ts +22 -0
- package/dist/src/plugin/tokens.d.ts.map +1 -0
- package/dist/src/plugin/tokens.js +33 -0
- package/dist/src/plugin/tokens.js.map +1 -0
- package/dist/src/report/dry-run-completed-event.d.ts +18 -0
- package/dist/src/report/dry-run-completed-event.d.ts.map +1 -0
- package/dist/src/report/dry-run-completed-event.js +2 -0
- package/dist/src/report/dry-run-completed-event.js.map +1 -0
- package/dist/src/report/index.d.ts +4 -0
- package/dist/src/report/index.d.ts.map +1 -0
- package/dist/src/report/index.js +2 -0
- package/dist/src/report/index.js.map +1 -0
- package/dist/src/report/mutation-testing-plan-ready-event.d.ts +5 -0
- package/dist/src/report/mutation-testing-plan-ready-event.d.ts.map +1 -0
- package/dist/src/report/mutation-testing-plan-ready-event.js +2 -0
- package/dist/src/report/mutation-testing-plan-ready-event.js.map +1 -0
- package/dist/src/report/reporter.d.ts +38 -0
- package/dist/src/report/reporter.d.ts.map +1 -0
- package/dist/src/report/reporter.js +2 -0
- package/dist/src/report/reporter.js.map +1 -0
- package/dist/src/test-runner/dry-run-result.d.ts +36 -0
- package/dist/src/test-runner/dry-run-result.d.ts.map +1 -0
- package/dist/src/test-runner/dry-run-result.js +2 -0
- package/dist/src/test-runner/dry-run-result.js.map +1 -0
- package/dist/src/test-runner/dry-run-status.d.ts +15 -0
- package/dist/src/test-runner/dry-run-status.d.ts.map +1 -0
- package/dist/src/test-runner/dry-run-status.js +16 -0
- package/dist/src/test-runner/dry-run-status.js.map +1 -0
- package/dist/src/test-runner/index.d.ts +10 -0
- package/dist/src/test-runner/index.d.ts.map +1 -0
- package/dist/src/test-runner/index.js +10 -0
- package/dist/src/test-runner/index.js.map +1 -0
- package/dist/src/test-runner/mutant-run-result.d.ts +57 -0
- package/dist/src/test-runner/mutant-run-result.d.ts.map +1 -0
- package/dist/src/test-runner/mutant-run-result.js +8 -0
- package/dist/src/test-runner/mutant-run-result.js.map +1 -0
- package/dist/src/test-runner/run-options.d.ts +50 -0
- package/dist/src/test-runner/run-options.d.ts.map +1 -0
- package/dist/src/test-runner/run-options.js +2 -0
- package/dist/src/test-runner/run-options.js.map +1 -0
- package/dist/src/test-runner/run-result-helpers.d.ts +5 -0
- package/dist/src/test-runner/run-result-helpers.d.ts.map +1 -0
- package/dist/src/test-runner/run-result-helpers.js +70 -0
- package/dist/src/test-runner/run-result-helpers.js.map +1 -0
- package/dist/src/test-runner/test-result.d.ts +39 -0
- package/dist/src/test-runner/test-result.d.ts.map +1 -0
- package/dist/src/test-runner/test-result.js +2 -0
- package/dist/src/test-runner/test-result.js.map +1 -0
- package/dist/src/test-runner/test-runner-capabilities.d.ts +12 -0
- package/dist/src/test-runner/test-runner-capabilities.d.ts.map +1 -0
- package/dist/src/test-runner/test-runner-capabilities.js +2 -0
- package/dist/src/test-runner/test-runner-capabilities.js.map +1 -0
- package/dist/src/test-runner/test-runner.d.ts +12 -0
- package/dist/src/test-runner/test-runner.d.ts.map +1 -0
- package/dist/src/test-runner/test-runner.js +2 -0
- package/dist/src/test-runner/test-runner.js.map +1 -0
- package/dist/src/test-runner/test-status.d.ts +18 -0
- package/dist/src/test-runner/test-status.d.ts.map +1 -0
- package/dist/src/test-runner/test-status.js +19 -0
- package/dist/src/test-runner/test-status.js.map +1 -0
- package/dist/src-generated/stryker-core.d.ts +298 -0
- package/dist/src-generated/stryker-core.d.ts.map +1 -0
- package/dist/src-generated/stryker-core.js +7 -0
- package/dist/src-generated/stryker-core.js.map +1 -0
- package/package.json +68 -0
- package/src/check/check-result.ts +12 -0
- package/src/check/check-status.ts +4 -0
- package/src/check/checker.ts +22 -0
- package/src/check/index.ts +3 -0
- package/src/check/mutant-status.ts +10 -0
- package/src/core/file-description.ts +15 -0
- package/src/core/index.ts +16 -0
- package/src/core/instrument.ts +26 -0
- package/src/core/location.ts +9 -0
- package/src/core/mutant-coverage.ts +11 -0
- package/src/core/mutant-test-plan.ts +56 -0
- package/src/core/mutant.ts +54 -0
- package/src/core/mutation-range.ts +16 -0
- package/src/core/partial-stryker-options.ts +14 -0
- package/src/core/position.ts +8 -0
- package/src/core/report-types.ts +6 -0
- package/src/core/stryker-options-schema.ts +11 -0
- package/src/ignore/ignorer.ts +8 -0
- package/src/ignore/index.ts +1 -0
- package/src/logging/index.ts +2 -0
- package/src/logging/logger-factory-method.ts +10 -0
- package/src/logging/logger.ts +15 -0
- package/src/plugin/contexts.ts +21 -0
- package/src/plugin/index.ts +12 -0
- package/src/plugin/plugin-kind.ts +9 -0
- package/src/plugin/plugins.ts +155 -0
- package/src/plugin/scope.ts +6 -0
- package/src/plugin/tokens.ts +35 -0
- package/src/report/dry-run-completed-event.ts +22 -0
- package/src/report/index.ts +6 -0
- package/src/report/mutation-testing-plan-ready-event.ts +5 -0
- package/src/report/reporter.ts +47 -0
- package/src/test-runner/dry-run-result.ts +45 -0
- package/src/test-runner/dry-run-status.ts +14 -0
- package/src/test-runner/index.ts +9 -0
- package/src/test-runner/mutant-run-result.ts +69 -0
- package/src/test-runner/run-options.ts +53 -0
- package/src/test-runner/run-result-helpers.ts +90 -0
- package/src/test-runner/test-result.ts +49 -0
- package/src/test-runner/test-runner-capabilities.ts +11 -0
- package/src/test-runner/test-runner.ts +12 -0
- package/src/test-runner/test-status.ts +17 -0
- package/src-generated/stryker-core.ts +300 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/check/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum MutantStatus {
|
|
2
|
+
Init = "init",
|
|
3
|
+
Ignored = "ignored",
|
|
4
|
+
NoCoverage = "noCoverage",
|
|
5
|
+
Killed = "killed",
|
|
6
|
+
Survived = "survived",
|
|
7
|
+
TimedOut = "timedOut",
|
|
8
|
+
RuntimeError = "runtimeError",
|
|
9
|
+
CompileError = "compileError"
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=mutant-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant-status.d.ts","sourceRoot":"","sources":["../../../src/check/mutant-status.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;CAC9B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var MutantStatus;
|
|
2
|
+
(function (MutantStatus) {
|
|
3
|
+
MutantStatus["Init"] = "init";
|
|
4
|
+
MutantStatus["Ignored"] = "ignored";
|
|
5
|
+
MutantStatus["NoCoverage"] = "noCoverage";
|
|
6
|
+
MutantStatus["Killed"] = "killed";
|
|
7
|
+
MutantStatus["Survived"] = "survived";
|
|
8
|
+
MutantStatus["TimedOut"] = "timedOut";
|
|
9
|
+
MutantStatus["RuntimeError"] = "runtimeError";
|
|
10
|
+
MutantStatus["CompileError"] = "compileError";
|
|
11
|
+
})(MutantStatus || (MutantStatus = {}));
|
|
12
|
+
//# sourceMappingURL=mutant-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant-status.js","sourceRoot":"","sources":["../../../src/check/mutant-status.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,yCAAyB,CAAA;IACzB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,6CAA6B,CAAA;IAC7B,6CAA6B,CAAA;AAC/B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MutationRange } from './mutation-range.js';
|
|
2
|
+
/**
|
|
3
|
+
* Input files by file name.
|
|
4
|
+
*/
|
|
5
|
+
export type FileDescriptions = Record<string, FileDescription>;
|
|
6
|
+
export type MutateDescription = MutationRange[] | boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The metadata of a input file
|
|
9
|
+
*/
|
|
10
|
+
export interface FileDescription {
|
|
11
|
+
mutate: MutateDescription;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=file-description.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-description.d.ts","sourceRoot":"","sources":["../../../src/core/file-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,GAAG,OAAO,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,iBAAiB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-description.js","sourceRoot":"","sources":["../../../src/core/file-description.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type { Position } from './position.js';
|
|
2
|
+
export type { Location } from './location.js';
|
|
3
|
+
export * from './mutant.js';
|
|
4
|
+
export * from '../../src-generated/stryker-core.js';
|
|
5
|
+
export * from './report-types.js';
|
|
6
|
+
export * from './stryker-options-schema.js';
|
|
7
|
+
export * from './partial-stryker-options.js';
|
|
8
|
+
export * from './instrument.js';
|
|
9
|
+
export * from './mutant-coverage.js';
|
|
10
|
+
export * from './mutant-test-plan.js';
|
|
11
|
+
export * from './file-description.js';
|
|
12
|
+
export * from './mutation-range.js';
|
|
13
|
+
/**
|
|
14
|
+
* Re-export all members from "mutation-testing-report-schema" under the `schema` key
|
|
15
|
+
*/
|
|
16
|
+
export * as schema from 'mutation-testing-report-schema/api';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,cAAc,aAAa,CAAC;AAC5B,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './mutant.js';
|
|
2
|
+
export * from '../../src-generated/stryker-core.js';
|
|
3
|
+
export * from './report-types.js';
|
|
4
|
+
export * from './stryker-options-schema.js';
|
|
5
|
+
export * from './partial-stryker-options.js';
|
|
6
|
+
export * from './instrument.js';
|
|
7
|
+
export * from './mutant-coverage.js';
|
|
8
|
+
export * from './mutant-test-plan.js';
|
|
9
|
+
export * from './file-description.js';
|
|
10
|
+
export * from './mutation-range.js';
|
|
11
|
+
/**
|
|
12
|
+
* Re-export all members from "mutation-testing-report-schema" under the `schema` key
|
|
13
|
+
*/
|
|
14
|
+
export * as schema from 'mutation-testing-report-schema/api';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MutantCoverage } from './mutant-coverage.js';
|
|
2
|
+
/**
|
|
3
|
+
* Identifiers used when instrumenting the code
|
|
4
|
+
*/
|
|
5
|
+
export declare const INSTRUMENTER_CONSTANTS: Readonly<{
|
|
6
|
+
readonly NAMESPACE: "__stryker__";
|
|
7
|
+
readonly MUTATION_COVERAGE_OBJECT: "mutantCoverage";
|
|
8
|
+
readonly ACTIVE_MUTANT: "activeMutant";
|
|
9
|
+
readonly CURRENT_TEST_ID: "currentTestId";
|
|
10
|
+
readonly HIT_COUNT: "hitCount";
|
|
11
|
+
readonly HIT_LIMIT: "hitLimit";
|
|
12
|
+
readonly ACTIVE_MUTANT_ENV_VARIABLE: "__STRYKER_ACTIVE_MUTANT__";
|
|
13
|
+
}>;
|
|
14
|
+
export interface InstrumenterContext {
|
|
15
|
+
activeMutant?: string;
|
|
16
|
+
currentTestId?: string;
|
|
17
|
+
mutantCoverage?: MutantCoverage;
|
|
18
|
+
hitCount?: number;
|
|
19
|
+
hitLimit?: number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=instrument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/core/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;EAQxB,CAAC;AAEZ,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifiers used when instrumenting the code
|
|
3
|
+
*/
|
|
4
|
+
export const INSTRUMENTER_CONSTANTS = Object.freeze({
|
|
5
|
+
NAMESPACE: '__stryker__',
|
|
6
|
+
MUTATION_COVERAGE_OBJECT: identity('mutantCoverage'),
|
|
7
|
+
ACTIVE_MUTANT: identity('activeMutant'),
|
|
8
|
+
CURRENT_TEST_ID: identity('currentTestId'),
|
|
9
|
+
HIT_COUNT: identity('hitCount'),
|
|
10
|
+
HIT_LIMIT: identity('hitLimit'),
|
|
11
|
+
ACTIVE_MUTANT_ENV_VARIABLE: '__STRYKER_ACTIVE_MUTANT__',
|
|
12
|
+
});
|
|
13
|
+
function identity(key) {
|
|
14
|
+
return key;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=instrument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../../../src/core/instrument.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,aAAa;IACxB,wBAAwB,EAAE,QAAQ,CAAC,gBAAgB,CAAC;IACpD,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC;IACvC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,QAAQ,CAAC,UAAU,CAAC;IAC/B,SAAS,EAAE,QAAQ,CAAC,UAAU,CAAC;IAC/B,0BAA0B,EAAE,2BAA2B;CAC/C,CAAC,CAAC;AAUZ,SAAS,QAAQ,CAAsC,GAAM;IAC3D,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../src/core/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,QAAQ,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../src/core/location.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface MutantCoverage {
|
|
2
|
+
static: CoverageData;
|
|
3
|
+
perTest: CoveragePerTestId;
|
|
4
|
+
}
|
|
5
|
+
export type CoveragePerTestId = Record<string, CoverageData>;
|
|
6
|
+
/**
|
|
7
|
+
* Keys are mutant ids, the numbers are the amount of times it was hit.
|
|
8
|
+
*/
|
|
9
|
+
export type CoverageData = Record<string, number>;
|
|
10
|
+
//# sourceMappingURL=mutant-coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant-coverage.d.ts","sourceRoot":"","sources":["../../../src/core/mutant-coverage.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant-coverage.js","sourceRoot":"","sources":["../../../src/core/mutant-coverage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as schema from 'mutation-testing-report-schema/api';
|
|
2
|
+
import { MutantRunOptions } from '../test-runner/index.js';
|
|
3
|
+
import { MutantTestCoverage } from './mutant.js';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a plan to test a mutant. Can either be an early result (an ignored mutant for example) or a plan to test a mutant in a test runner
|
|
6
|
+
*/
|
|
7
|
+
export type MutantTestPlan = MutantEarlyResultPlan | MutantRunPlan;
|
|
8
|
+
/**
|
|
9
|
+
* The test plans that belong to a mutant.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum PlanKind {
|
|
12
|
+
/**
|
|
13
|
+
* Early result plan, mutant does not have to be checked or run.
|
|
14
|
+
*/
|
|
15
|
+
EarlyResult = "EarlyResult",
|
|
16
|
+
/**
|
|
17
|
+
* Run plan, mutant will have to be checked and run.
|
|
18
|
+
*/
|
|
19
|
+
Run = "Run"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents an mutant early result plan.
|
|
23
|
+
*/
|
|
24
|
+
export interface MutantEarlyResultPlan {
|
|
25
|
+
plan: PlanKind.EarlyResult;
|
|
26
|
+
/**
|
|
27
|
+
* The mutant that already has a final status.
|
|
28
|
+
*/
|
|
29
|
+
mutant: MutantTestCoverage & {
|
|
30
|
+
status: schema.MutantStatus;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Represents a mutant test plan.
|
|
35
|
+
*/
|
|
36
|
+
export interface MutantRunPlan {
|
|
37
|
+
plan: PlanKind.Run;
|
|
38
|
+
/**
|
|
39
|
+
* The mutant that has to be tested.
|
|
40
|
+
*/
|
|
41
|
+
mutant: MutantTestCoverage;
|
|
42
|
+
/**
|
|
43
|
+
* The run options that will be used to test this mutant
|
|
44
|
+
*/
|
|
45
|
+
runOptions: MutantRunOptions;
|
|
46
|
+
/**
|
|
47
|
+
* Estimated net time to run this mutant when it would survive in ms (which should be the worst case).
|
|
48
|
+
* This is used as input to calculate the runOptions.timeout
|
|
49
|
+
*/
|
|
50
|
+
netTime: number;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=mutant-test-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant-test-plan.d.ts","sourceRoot":"","sources":["../../../src/core/mutant-test-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,aAAa,CAAC;AAEnE;;GAEG;AACH,oBAAY,QAAQ;IAClB;;OAEG;IACH,WAAW,gBAAgB;IAC3B;;OAEG;IACH,GAAG,QAAQ;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC3B;;OAEG;IACH,MAAM,EAAE,kBAAkB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAC,YAAY,CAAA;KAAE,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The test plans that belong to a mutant.
|
|
3
|
+
*/
|
|
4
|
+
export var PlanKind;
|
|
5
|
+
(function (PlanKind) {
|
|
6
|
+
/**
|
|
7
|
+
* Early result plan, mutant does not have to be checked or run.
|
|
8
|
+
*/
|
|
9
|
+
PlanKind["EarlyResult"] = "EarlyResult";
|
|
10
|
+
/**
|
|
11
|
+
* Run plan, mutant will have to be checked and run.
|
|
12
|
+
*/
|
|
13
|
+
PlanKind["Run"] = "Run";
|
|
14
|
+
})(PlanKind || (PlanKind = {}));
|
|
15
|
+
//# sourceMappingURL=mutant-test-plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant-test-plan.js","sourceRoot":"","sources":["../../../src/core/mutant-test-plan.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAClB;;OAEG;IACH,uCAA2B,CAAA;IAC3B;;OAEG;IACH,uBAAW,CAAA;AACb,CAAC,EATW,QAAQ,KAAR,QAAQ,QASnB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as schema from 'mutation-testing-report-schema/api';
|
|
2
|
+
import type { MutantRunExecutedTest } from '../test-runner/index.js';
|
|
3
|
+
export type { MutantStatus } from 'mutation-testing-report-schema/api';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a mutant in its initial state.
|
|
6
|
+
*/
|
|
7
|
+
export interface Mutant extends Pick<schema.MutantResult, 'coveredBy' | 'id' | 'killedBy' | 'location' | 'mutatorName' | 'replacement' | 'static' | 'statusReason' | 'testsCompleted'> {
|
|
8
|
+
/**
|
|
9
|
+
* The file name from which this mutant originated
|
|
10
|
+
*/
|
|
11
|
+
fileName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Actual mutation that has been applied.
|
|
14
|
+
*/
|
|
15
|
+
replacement: string;
|
|
16
|
+
/**
|
|
17
|
+
* The status of a mutant if known. This should be undefined for a mutant that still needs testing.
|
|
18
|
+
*/
|
|
19
|
+
status?: schema.MutantStatus;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents a mutant in its matched-with-the-tests state, ready to be tested.
|
|
23
|
+
*/
|
|
24
|
+
export type MutantTestCoverage = Mutant & Pick<schema.MutantResult, 'coveredBy' | 'static'>;
|
|
25
|
+
/**
|
|
26
|
+
* Represents a mutant in its final state, ready to be reported.
|
|
27
|
+
*/
|
|
28
|
+
export type MutantResult = Mutant & schema.MutantResult & {
|
|
29
|
+
/**
|
|
30
|
+
* Optional per-test timing details captured during mutation runs.
|
|
31
|
+
* This field is for runtime/reporter diagnostics and is not part of the
|
|
32
|
+
* mutation-testing-report-schema payload.
|
|
33
|
+
*/
|
|
34
|
+
executedTests?: MutantRunExecutedTest[];
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=mutant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant.d.ts","sourceRoot":"","sources":["../../../src/core/mutant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAIvE;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,IAAI,CAClC,MAAM,CAAC,YAAY,EACjB,WAAW,GACX,IAAI,GACJ,UAAU,GACV,UAAU,GACV,aAAa,GACb,aAAa,GACb,QAAQ,GACR,cAAc,GACd,gBAAgB,CACnB;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GACrC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,GAAG,QAAQ,CAAC,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAC/B,MAAM,CAAC,YAAY,GAAG;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutant.js","sourceRoot":"","sources":["../../../src/core/mutant.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Position } from './position.js';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a range of mutants that the instrumenter should instrument
|
|
4
|
+
*/
|
|
5
|
+
export interface MutationRange {
|
|
6
|
+
/**
|
|
7
|
+
* The start of the range to instrument, by line and column number, inclusive
|
|
8
|
+
*/
|
|
9
|
+
start: Position;
|
|
10
|
+
/**
|
|
11
|
+
* The end of the range to instrument, by line and number, inclusive
|
|
12
|
+
*/
|
|
13
|
+
end: Position;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=mutation-range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation-range.d.ts","sourceRoot":"","sources":["../../../src/core/mutation-range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation-range.js","sourceRoot":"","sources":["../../../src/core/mutation-range.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StrykerOptions } from '../../src-generated/stryker-core.js';
|
|
2
|
+
/**
|
|
3
|
+
* When configuring stryker, every option is optional
|
|
4
|
+
* Including deep properties like `dashboard.project`.
|
|
5
|
+
* That's why we use a `DeepPartial` mapped type here.
|
|
6
|
+
*/
|
|
7
|
+
export type PartialStrykerOptions = DeepPartial<StrykerOptions>;
|
|
8
|
+
type DeepPartial<T> = {
|
|
9
|
+
[P in keyof T]?: T[P] extends Record<string, any> ? DeepPartial<T[P]> | undefined : T[P];
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=partial-stryker-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-stryker-options.d.ts","sourceRoot":"","sources":["../../../src/core/partial-stryker-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AAEhE,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7C,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GAC7B,CAAC,CAAC,CAAC,CAAC;CACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-stryker-options.js","sourceRoot":"","sources":["../../../src/core/partial-stryker-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A specific spot in the source code based on line and column.
|
|
3
|
+
* Stryker uses zero-based indexes. So the first character in a file is at line 0, column 0.
|
|
4
|
+
*/
|
|
5
|
+
export interface Position {
|
|
6
|
+
line: number;
|
|
7
|
+
column: number;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../src/core/position.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.js","sourceRoot":"","sources":["../../../src/core/position.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-types.d.ts","sourceRoot":"","sources":["../../../src/core/report-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,uBAG3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-types.js","sourceRoot":"","sources":["../../../src/core/report-types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;;;CAG7C,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stryker-options-schema.d.ts","sourceRoot":"","sources":["../../../src/core/stryker-options-schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAK9C,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stryker-options-schema.js","sourceRoot":"","sources":["../../../src/core/stryker-options-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,iBAAiB,GAA4B,IAAI,CAAC,KAAK,CAC3D,YAAY,CACV,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAC1D,OAAO,CACR,CACF,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignorer.d.ts","sourceRoot":"","sources":["../../../src/ignore/ignorer.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,QAAQ;CAExB;AAED,MAAM,WAAW,OAAO;IACtB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignorer.js","sourceRoot":"","sources":["../../../src/ignore/ignorer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ignore/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ignore/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/logging/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/logging/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Logger } from './logger.js';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a factory to get loggers by category name.
|
|
4
|
+
* This interface is used to describe the shape of a logger factory method.
|
|
5
|
+
*
|
|
6
|
+
* @param {String} [categoryName] name of category to log to.
|
|
7
|
+
* @returns {Logger} instance of logger for the category
|
|
8
|
+
*/
|
|
9
|
+
export type LoggerFactoryMethod = (categoryName?: string) => Logger;
|
|
10
|
+
//# sourceMappingURL=logger-factory-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-factory-method.d.ts","sourceRoot":"","sources":["../../../src/logging/logger-factory-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-factory-method.js","sourceRoot":"","sources":["../../../src/logging/logger-factory-method.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Logger {
|
|
2
|
+
isTraceEnabled(): boolean;
|
|
3
|
+
isDebugEnabled(): boolean;
|
|
4
|
+
isInfoEnabled(): boolean;
|
|
5
|
+
isWarnEnabled(): boolean;
|
|
6
|
+
isErrorEnabled(): boolean;
|
|
7
|
+
isFatalEnabled(): boolean;
|
|
8
|
+
trace(message: string, ...args: any[]): void;
|
|
9
|
+
debug(message: string, ...args: any[]): void;
|
|
10
|
+
info(message: string, ...args: any[]): void;
|
|
11
|
+
warn(message: string, ...args: any[]): void;
|
|
12
|
+
error(message: string, ...args: any[]): void;
|
|
13
|
+
fatal(message: string, ...args: any[]): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logging/logger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,cAAc,IAAI,OAAO,CAAC;IAC1B,cAAc,IAAI,OAAO,CAAC;IAC1B,aAAa,IAAI,OAAO,CAAC;IACzB,aAAa,IAAI,OAAO,CAAC;IACzB,cAAc,IAAI,OAAO,CAAC;IAC1B,cAAc,IAAI,OAAO,CAAC;IAE1B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC7C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC7C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/logging/logger.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FileDescriptions, StrykerOptions } from '../core/index.js';
|
|
2
|
+
import { Logger, LoggerFactoryMethod } from '../logging/index.js';
|
|
3
|
+
import { commonTokens } from './tokens.js';
|
|
4
|
+
/**
|
|
5
|
+
* The basic dependency injection context within Stryker
|
|
6
|
+
*/
|
|
7
|
+
export interface BaseContext {
|
|
8
|
+
[commonTokens.getLogger]: LoggerFactoryMethod;
|
|
9
|
+
[commonTokens.logger]: Logger;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The dependency injection context for most of Stryker's plugins.
|
|
13
|
+
* Can inject basic stuff as well as the Stryker options
|
|
14
|
+
*/
|
|
15
|
+
export interface PluginContext extends BaseContext {
|
|
16
|
+
[commonTokens.options]: StrykerOptions;
|
|
17
|
+
[commonTokens.fileDescriptions]: FileDescriptions;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=contexts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../src/plugin/contexts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAC9C,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;IACvC,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../../src/plugin/contexts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './contexts.js';
|
|
2
|
+
export * from './plugins.js';
|
|
3
|
+
export * from './plugin-kind.js';
|
|
4
|
+
export * from './tokens.js';
|
|
5
|
+
export * from './scope.js';
|
|
6
|
+
export type { Injectable, Injector, InjectionToken, CorrespondingType, Disposable, } from 'typed-inject';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,YAAY,EACV,UAAU,EACV,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,UAAU,GACX,MAAM,cAAc,CAAC"}
|