@d-es-ign/stryker-js-core 9.6.0 → 9.6.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/README.md +11 -4
- package/package.json +7 -7
- package/schema/stryker-schema.json +12 -12
- package/src/checker/checker-child-process-proxy.ts +2 -2
- package/src/checker/checker-facade.ts +2 -2
- package/src/checker/checker-factory.ts +3 -3
- package/src/checker/checker-resource.ts +2 -2
- package/src/checker/checker-retry-decorator.ts +2 -2
- package/src/checker/checker-worker.ts +4 -4
- package/src/child-proxy/child-process-crashed-error.ts +1 -1
- package/src/child-proxy/child-process-proxy-worker.ts +3 -3
- package/src/child-proxy/child-process-proxy.ts +3 -3
- package/src/child-proxy/message-protocol.ts +1 -1
- package/src/concurrent/concurrency-token-provider.ts +3 -3
- package/src/concurrent/pool.ts +2 -2
- package/src/config/config-reader.ts +6 -6
- package/src/config/file-matcher.ts +1 -1
- package/src/config/meta-schema-builder.ts +2 -2
- package/src/config/options-validator.ts +4 -4
- package/src/di/plugin-creator.ts +1 -1
- package/src/di/plugin-loader.ts +7 -7
- package/src/errors.ts +1 -1
- package/src/fs/file-system.ts +1 -1
- package/src/fs/project-file.ts +3 -3
- package/src/fs/project-reader.ts +4 -4
- package/src/fs/project.ts +3 -3
- package/src/initializer/custom-initializers/angular-initializer.ts +5 -5
- package/src/initializer/custom-initializers/custom-initializer.ts +2 -2
- package/src/initializer/custom-initializers/index.ts +2 -2
- package/src/initializer/custom-initializers/react-initializer.ts +3 -3
- package/src/initializer/custom-initializers/svelte-initializer.ts +1 -1
- package/src/initializer/custom-initializers/vue-js-initializer.ts +3 -3
- package/src/initializer/gitignore-writer.ts +1 -1
- package/src/initializer/index.ts +1 -1
- package/src/initializer/npm-client.ts +6 -6
- package/src/initializer/npm-registry.ts +3 -3
- package/src/initializer/stryker-config-writer.ts +6 -6
- package/src/initializer/stryker-initializer.ts +4 -4
- package/src/logging/logger-impl.ts +2 -2
- package/src/logging/logging-backend.ts +1 -1
- package/src/logging/logging-client.ts +2 -2
- package/src/logging/logging-event.ts +1 -1
- package/src/logging/logging-server.ts +2 -2
- package/src/logging/logging-sink.ts +1 -1
- package/src/logging/priority.ts +1 -1
- package/src/logging/provide-logging.ts +3 -3
- package/src/mutants/incremental-differ.ts +5 -5
- package/src/mutants/mutant-test-planner.ts +5 -5
- package/src/mutants/test-coverage.ts +5 -5
- package/src/process/1-prepare-executor.ts +5 -5
- package/src/process/2-mutant-instrumenter-executor.ts +5 -5
- package/src/process/3-dry-run-executor.ts +6 -6
- package/src/process/4-mutation-test-executor.ts +6 -6
- package/src/reporters/broadcast-reporter.ts +4 -4
- package/src/reporters/clear-text-reporter.ts +4 -4
- package/src/reporters/clear-text-score-table.ts +1 -1
- package/src/reporters/dashboard-reporter/dashboard-reporter-client.ts +4 -4
- package/src/reporters/dashboard-reporter/dashboard-reporter.ts +4 -4
- package/src/reporters/dashboard-reporter/index.ts +1 -1
- package/src/reporters/dashboard-reporter/report.ts +1 -1
- package/src/reporters/dots-reporter.ts +2 -2
- package/src/reporters/event-recorder-reporter.ts +4 -4
- package/src/reporters/html-reporter.ts +4 -4
- package/src/reporters/index.ts +1 -1
- package/src/reporters/json-reporter.ts +4 -4
- package/src/reporters/mutation-test-report-helper.ts +12 -12
- package/src/reporters/mutation-timings-reporter.ts +4 -4
- package/src/reporters/progress-append-only-reporter.ts +1 -1
- package/src/reporters/progress-keeper.ts +3 -3
- package/src/reporters/progress-reporter.ts +2 -2
- package/src/reporters/strict-reporter.ts +1 -1
- package/src/sandbox/create-preprocessor.ts +2 -2
- package/src/sandbox/disable-type-checks-preprocessor.ts +4 -4
- package/src/sandbox/sandbox.ts +4 -4
- package/src/sandbox/ts-config-preprocessor.ts +3 -3
- package/src/stryker-cli.ts +1 -1
- package/src/stryker-package.ts +1 -1
- package/src/stryker-server.ts +5 -5
- package/src/stryker.ts +2 -2
- package/src/test-runner/child-process-test-runner-proxy.ts +4 -4
- package/src/test-runner/child-process-test-runner-worker.ts +4 -4
- package/src/test-runner/command-test-runner.ts +3 -3
- package/src/test-runner/index.ts +4 -4
- package/src/test-runner/max-test-runner-reuse-decorator.ts +2 -2
- package/src/test-runner/reload-environment-decorator.ts +1 -1
- package/src/test-runner/retry-rejected-decorator.ts +3 -3
- package/src/test-runner/test-runner-decorator.ts +1 -1
- package/src/test-runner/timeout-decorator.ts +3 -3
- package/src/unexpected-exit-handler.ts +1 -1
- package/src/utils/file-utils.ts +1 -1
- package/src/utils/object-utils.ts +2 -2
- package/src/utils/string-utils.ts +2 -2
- package/src/utils/temporary-directory.ts +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
|
|
3
|
-
import { MutantResult } from '@stryker-
|
|
4
|
-
import { Logger } from '@stryker-
|
|
5
|
-
import { commonTokens, tokens } from '@stryker-
|
|
6
|
-
import { Reporter } from '@stryker-
|
|
3
|
+
import { MutantResult } from '@d-es-ign/stryker-js-api/core';
|
|
4
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
5
|
+
import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
6
|
+
import { Reporter } from '@d-es-ign/stryker-js-api/report';
|
|
7
7
|
|
|
8
8
|
import { reporterUtil } from './reporter-util.js';
|
|
9
9
|
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
MutantRunPlan,
|
|
4
4
|
MutantTestPlan,
|
|
5
5
|
PlanKind,
|
|
6
|
-
} from '@stryker-
|
|
6
|
+
} from '@d-es-ign/stryker-js-api/core';
|
|
7
7
|
import {
|
|
8
8
|
DryRunCompletedEvent,
|
|
9
9
|
MutationTestingPlanReadyEvent,
|
|
10
10
|
Reporter,
|
|
11
11
|
RunTiming,
|
|
12
|
-
} from '@stryker-
|
|
13
|
-
import { TestRunnerCapabilities } from '@stryker-
|
|
12
|
+
} from '@d-es-ign/stryker-js-api/report';
|
|
13
|
+
import { TestRunnerCapabilities } from '@d-es-ign/stryker-js-api/test-runner';
|
|
14
14
|
|
|
15
15
|
import { Timer } from '../utils/timer.js';
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MutantResult } from '@stryker-
|
|
2
|
-
import { MutationTestingPlanReadyEvent } from '@stryker-
|
|
1
|
+
import { MutantResult } from '@d-es-ign/stryker-js-api/core';
|
|
2
|
+
import { MutationTestingPlanReadyEvent } from '@d-es-ign/stryker-js-api/report';
|
|
3
3
|
|
|
4
4
|
import { progressBarWrapper } from './progress-bar.js';
|
|
5
5
|
import { ProgressKeeper } from './progress-keeper.js';
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
Injector,
|
|
4
4
|
commonTokens,
|
|
5
5
|
PluginContext,
|
|
6
|
-
} from '@stryker-
|
|
6
|
+
} from '@d-es-ign/stryker-js-api/plugin';
|
|
7
7
|
|
|
8
|
-
import { disableTypeChecks } from '@stryker-
|
|
8
|
+
import { disableTypeChecks } from '@d-es-ign/stryker-js-instrumenter';
|
|
9
9
|
|
|
10
10
|
import { coreTokens } from '../di/index.js';
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
|
|
3
|
-
import { commonTokens, tokens } from '@stryker-
|
|
4
|
-
import { StrykerOptions } from '@stryker-
|
|
5
|
-
import type { disableTypeChecks } from '@stryker-
|
|
6
|
-
import { Logger } from '@stryker-
|
|
3
|
+
import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
4
|
+
import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
5
|
+
import type { disableTypeChecks } from '@d-es-ign/stryker-js-instrumenter';
|
|
6
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
7
7
|
|
|
8
8
|
import { optionsPath } from '../utils/index.js';
|
|
9
9
|
import { coreTokens } from '../di/index.js';
|
package/src/sandbox/sandbox.ts
CHANGED
|
@@ -2,14 +2,14 @@ import path from 'path';
|
|
|
2
2
|
|
|
3
3
|
import type { execaCommand } from 'execa';
|
|
4
4
|
import { npmRunPathEnv } from 'npm-run-path';
|
|
5
|
-
import { StrykerOptions } from '@stryker-
|
|
5
|
+
import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
6
6
|
import {
|
|
7
7
|
normalizeWhitespaces,
|
|
8
8
|
I,
|
|
9
9
|
isErrnoException,
|
|
10
|
-
} from '@stryker-
|
|
11
|
-
import { Logger } from '@stryker-
|
|
12
|
-
import { tokens, commonTokens, Disposable } from '@stryker-
|
|
10
|
+
} from '@d-es-ign/stryker-js-util';
|
|
11
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
12
|
+
import { tokens, commonTokens, Disposable } from '@d-es-ign/stryker-js-api/plugin';
|
|
13
13
|
|
|
14
14
|
import { TemporaryDirectory } from '../utils/temporary-directory.js';
|
|
15
15
|
import { fileUtils } from '../utils/file-utils.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
|
|
3
|
-
import { StrykerOptions } from '@stryker-
|
|
4
|
-
import { tokens, commonTokens } from '@stryker-
|
|
5
|
-
import { Logger } from '@stryker-
|
|
3
|
+
import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
4
|
+
import { tokens, commonTokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
5
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
6
6
|
|
|
7
7
|
import { Project } from '../fs/project.js';
|
|
8
8
|
|
package/src/stryker-cli.ts
CHANGED
package/src/stryker-package.ts
CHANGED
package/src/stryker-server.ts
CHANGED
|
@@ -17,8 +17,8 @@ import net from 'net';
|
|
|
17
17
|
import { on } from 'events';
|
|
18
18
|
import { createInjector, Injector } from 'typed-inject';
|
|
19
19
|
import { PrepareExecutor } from './process/1-prepare-executor.js';
|
|
20
|
-
import { createInstrumenter } from '@stryker-
|
|
21
|
-
import { commonTokens, PluginKind } from '@stryker-
|
|
20
|
+
import { createInstrumenter } from '@d-es-ign/stryker-js-instrumenter';
|
|
21
|
+
import { commonTokens, PluginKind } from '@d-es-ign/stryker-js-api/plugin';
|
|
22
22
|
import { coreTokens } from './di/index.js';
|
|
23
23
|
import { objectUtils } from './utils/object-utils.js';
|
|
24
24
|
import { JsonRpcEventDeserializer } from './utils/json-rpc-event-deserializer.js';
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
LogLevel,
|
|
28
28
|
MutantResult,
|
|
29
29
|
PartialStrykerOptions,
|
|
30
|
-
} from '@stryker-
|
|
31
|
-
import { Reporter } from '@stryker-
|
|
30
|
+
} from '@d-es-ign/stryker-js-api/core';
|
|
31
|
+
import { Reporter } from '@d-es-ign/stryker-js-api/report';
|
|
32
32
|
import { Stryker } from './stryker.js';
|
|
33
33
|
import { promisify } from 'util';
|
|
34
34
|
import { normalizeReportFileName } from './reporters/mutation-test-report-helper.js';
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
LoggingServer,
|
|
42
42
|
LoggingServerAddress,
|
|
43
43
|
} from './logging/index.js';
|
|
44
|
-
import { Logger, LoggerFactoryMethod } from '@stryker-
|
|
44
|
+
import { Logger, LoggerFactoryMethod } from '@d-es-ign/stryker-js-api/logging';
|
|
45
45
|
|
|
46
46
|
export const rpcMethods = Object.freeze({
|
|
47
47
|
configure: 'configure',
|
package/src/stryker.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MutantResult, PartialStrykerOptions } from '@stryker-
|
|
1
|
+
import { MutantResult, PartialStrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
2
2
|
import { createInjector, Injector } from 'typed-inject';
|
|
3
|
-
import { commonTokens } from '@stryker-
|
|
3
|
+
import { commonTokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
PrepareExecutor,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { URL } from 'url';
|
|
2
2
|
|
|
3
|
-
import { FileDescriptions, StrykerOptions } from '@stryker-
|
|
4
|
-
import { LoggerFactoryMethod } from '@stryker-
|
|
3
|
+
import { FileDescriptions, StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
4
|
+
import { LoggerFactoryMethod } from '@d-es-ign/stryker-js-api/logging';
|
|
5
5
|
import {
|
|
6
6
|
TestRunner,
|
|
7
7
|
DryRunOptions,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
MutantRunResult,
|
|
10
10
|
DryRunResult,
|
|
11
11
|
TestRunnerCapabilities,
|
|
12
|
-
} from '@stryker-
|
|
13
|
-
import { ExpirableTask } from '@stryker-
|
|
12
|
+
} from '@d-es-ign/stryker-js-api/test-runner';
|
|
13
|
+
import { ExpirableTask } from '@d-es-ign/stryker-js-util';
|
|
14
14
|
|
|
15
15
|
import { ChildProcessCrashedError } from '../child-proxy/child-process-crashed-error.js';
|
|
16
16
|
import { ChildProcessProxy } from '../child-proxy/child-process-proxy.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StrykerOptions } from '@stryker-
|
|
2
|
-
import { commonTokens, PluginKind, tokens } from '@stryker-
|
|
1
|
+
import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
2
|
+
import { commonTokens, PluginKind, tokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
3
3
|
import {
|
|
4
4
|
TestRunner,
|
|
5
5
|
DryRunOptions,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
DryRunStatus,
|
|
10
10
|
MutantRunStatus,
|
|
11
11
|
TestRunnerCapabilities,
|
|
12
|
-
} from '@stryker-
|
|
13
|
-
import { errorToString } from '@stryker-
|
|
12
|
+
} from '@d-es-ign/stryker-js-api/test-runner';
|
|
13
|
+
import { errorToString } from '@d-es-ign/stryker-js-util';
|
|
14
14
|
|
|
15
15
|
import { coreTokens, PluginCreator } from '../di/index.js';
|
|
16
16
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
StrykerOptions,
|
|
6
6
|
CommandRunnerOptions,
|
|
7
7
|
INSTRUMENTER_CONSTANTS,
|
|
8
|
-
} from '@stryker-
|
|
8
|
+
} from '@d-es-ign/stryker-js-api/core';
|
|
9
9
|
import {
|
|
10
10
|
TestRunner,
|
|
11
11
|
TestStatus,
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
toMutantRunResult,
|
|
19
19
|
TestRunnerCapabilities,
|
|
20
20
|
DryRunOptions,
|
|
21
|
-
} from '@stryker-
|
|
22
|
-
import { errorToString, testFilesProvided } from '@stryker-
|
|
21
|
+
} from '@d-es-ign/stryker-js-api/test-runner';
|
|
22
|
+
import { errorToString, testFilesProvided } from '@d-es-ign/stryker-js-util';
|
|
23
23
|
|
|
24
24
|
import { objectUtils } from '../utils/object-utils.js';
|
|
25
25
|
import { Timer } from '../utils/timer.js';
|
package/src/test-runner/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TestRunner } from '@stryker-
|
|
2
|
-
import { FileDescriptions, StrykerOptions } from '@stryker-
|
|
3
|
-
import { tokens, commonTokens } from '@stryker-
|
|
4
|
-
import { LoggerFactoryMethod } from '@stryker-
|
|
1
|
+
import { TestRunner } from '@d-es-ign/stryker-js-api/test-runner';
|
|
2
|
+
import { FileDescriptions, StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
3
|
+
import { tokens, commonTokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
4
|
+
import { LoggerFactoryMethod } from '@d-es-ign/stryker-js-api/logging';
|
|
5
5
|
|
|
6
6
|
import { LoggingServerAddress } from '../logging/index.js';
|
|
7
7
|
import { coreTokens } from '../di/index.js';
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
MutantRunOptions,
|
|
3
3
|
MutantRunResult,
|
|
4
4
|
TestRunner,
|
|
5
|
-
} from '@stryker-
|
|
5
|
+
} from '@d-es-ign/stryker-js-api/test-runner';
|
|
6
6
|
|
|
7
|
-
import { StrykerOptions } from '@stryker-
|
|
7
|
+
import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
8
8
|
|
|
9
9
|
import { TestRunnerDecorator } from './test-runner-decorator.js';
|
|
10
10
|
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
MutantRunOptions,
|
|
7
7
|
MutantRunStatus,
|
|
8
8
|
TestRunner,
|
|
9
|
-
} from '@stryker-
|
|
10
|
-
import { errorToString } from '@stryker-
|
|
9
|
+
} from '@d-es-ign/stryker-js-api/test-runner';
|
|
10
|
+
import { errorToString } from '@d-es-ign/stryker-js-util';
|
|
11
11
|
|
|
12
12
|
import { OutOfMemoryError } from '../child-proxy/out-of-memory-error.js';
|
|
13
13
|
|
|
14
14
|
import { TestRunnerDecorator } from './test-runner-decorator.js';
|
|
15
|
-
import { Logger } from '@stryker-
|
|
15
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
16
16
|
|
|
17
17
|
const ERROR_MESSAGE =
|
|
18
18
|
'Test runner crashed. Tried twice to restart it without any luck. Last time the error message was: ';
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
MutantRunResult,
|
|
7
7
|
MutantRunStatus,
|
|
8
8
|
TestRunner,
|
|
9
|
-
} from '@stryker-
|
|
10
|
-
import { ExpirableTask } from '@stryker-
|
|
9
|
+
} from '@d-es-ign/stryker-js-api/test-runner';
|
|
10
|
+
import { ExpirableTask } from '@d-es-ign/stryker-js-util';
|
|
11
11
|
|
|
12
12
|
import { TestRunnerDecorator } from './test-runner-decorator.js';
|
|
13
|
-
import { Logger } from '@stryker-
|
|
13
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Wraps a test runner and implements the timeout functionality.
|
package/src/utils/file-utils.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import treeKill from 'tree-kill';
|
|
2
|
-
import { StrykerError, KnownKeys } from '@stryker-
|
|
2
|
+
import { StrykerError, KnownKeys } from '@d-es-ign/stryker-js-util';
|
|
3
3
|
import {
|
|
4
4
|
Location,
|
|
5
5
|
Position,
|
|
6
6
|
schema,
|
|
7
7
|
WarningOptions,
|
|
8
|
-
} from '@stryker-
|
|
8
|
+
} from '@d-es-ign/stryker-js-api/core';
|
|
9
9
|
|
|
10
10
|
export const objectUtils = {
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { propertyPath } from '@stryker-
|
|
2
|
-
import { StrykerOptions, schema } from '@stryker-
|
|
1
|
+
import { propertyPath } from '@d-es-ign/stryker-js-util';
|
|
2
|
+
import { StrykerOptions, schema } from '@d-es-ign/stryker-js-api/core';
|
|
3
3
|
import emojiRegex from 'emoji-regex';
|
|
4
4
|
|
|
5
5
|
const emojiRe = emojiRegex();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
|
|
4
|
-
import { StrykerOptions } from '@stryker-
|
|
5
|
-
import { Logger } from '@stryker-
|
|
6
|
-
import { commonTokens, tokens } from '@stryker-
|
|
4
|
+
import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
|
|
5
|
+
import { Logger } from '@d-es-ign/stryker-js-api/logging';
|
|
6
|
+
import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
|
|
7
7
|
import { Disposable } from 'typed-inject';
|
|
8
8
|
|
|
9
9
|
export class TemporaryDirectory implements Disposable {
|