mootant 0.0.0 → 0.1.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/bin/mootant.js +5 -0
- package/dist/adapters/jest/build-dry-file.d.ts +54 -0
- package/dist/adapters/jest/build-dry-file.js +73 -0
- package/dist/adapters/jest/build-isolated-facts.d.ts +45 -0
- package/dist/adapters/jest/build-isolated-facts.js +37 -0
- package/dist/adapters/jest/check-jest-support.d.ts +16 -0
- package/dist/adapters/jest/check-jest-support.js +5 -0
- package/dist/adapters/jest/check-repeatable.d.ts +39 -0
- package/dist/adapters/jest/check-repeatable.js +63 -0
- package/dist/adapters/jest/collect-jest-dependencies.d.ts +25 -0
- package/dist/adapters/jest/collect-jest-dependencies.js +15 -0
- package/dist/adapters/jest/create-heap-cap.d.ts +16 -0
- package/dist/adapters/jest/create-heap-cap.js +12 -0
- package/dist/adapters/jest/create-record-reader.d.ts +14 -0
- package/dist/adapters/jest/create-record-reader.js +25 -0
- package/dist/adapters/jest/create-worker-pool.d.ts +16 -0
- package/dist/adapters/jest/create-worker-pool.js +41 -0
- package/dist/adapters/jest/filter-jest-arguments.d.ts +32 -0
- package/dist/adapters/jest/filter-jest-arguments.js +210 -0
- package/dist/adapters/jest/find-jest-command.d.ts +15 -0
- package/dist/adapters/jest/find-jest-command.js +117 -0
- package/dist/adapters/jest/fold-attempts.d.ts +13 -0
- package/dist/adapters/jest/fold-attempts.js +21 -0
- package/dist/adapters/jest/get-dry-deadline.d.ts +20 -0
- package/dist/adapters/jest/get-dry-deadline.js +8 -0
- package/dist/adapters/jest/get-jest-base-arguments.d.ts +13 -0
- package/dist/adapters/jest/get-jest-base-arguments.js +18 -0
- package/dist/adapters/jest/get-jest-cache-directory.d.ts +9 -0
- package/dist/adapters/jest/get-jest-cache-directory.js +5 -0
- package/dist/adapters/jest/get-jest-cache-inputs.d.ts +61 -0
- package/dist/adapters/jest/get-jest-cache-inputs.js +58 -0
- package/dist/adapters/jest/get-jest-console.d.ts +22 -0
- package/dist/adapters/jest/get-jest-console.js +5 -0
- package/dist/adapters/jest/get-unit-deadline.d.ts +15 -0
- package/dist/adapters/jest/get-unit-deadline.js +8 -0
- package/dist/adapters/jest/index.d.ts +13 -0
- package/dist/adapters/jest/index.js +11 -0
- package/dist/adapters/jest/insert-jest-flags.d.ts +9 -0
- package/dist/adapters/jest/insert-jest-flags.js +9 -0
- package/dist/adapters/jest/is-transform-input.d.ts +14 -0
- package/dist/adapters/jest/is-transform-input.js +9 -0
- package/dist/adapters/jest/keep-late-transforms.d.ts +16 -0
- package/dist/adapters/jest/keep-late-transforms.js +5 -0
- package/dist/adapters/jest/keep-transform-reads.d.ts +34 -0
- package/dist/adapters/jest/keep-transform-reads.js +30 -0
- package/dist/adapters/jest/list-jest-config-files.d.ts +21 -0
- package/dist/adapters/jest/list-jest-config-files.js +29 -0
- package/dist/adapters/jest/list-jest-config-paths.d.ts +19 -0
- package/dist/adapters/jest/list-jest-config-paths.js +24 -0
- package/dist/adapters/jest/list-jest-projects.d.ts +24 -0
- package/dist/adapters/jest/list-jest-projects.js +29 -0
- package/dist/adapters/jest/list-jest-test-files.d.ts +21 -0
- package/dist/adapters/jest/list-jest-test-files.js +16 -0
- package/dist/adapters/jest/list-unserved-files.d.ts +16 -0
- package/dist/adapters/jest/list-unserved-files.js +12 -0
- package/dist/adapters/jest/read-host-config.d.ts +28 -0
- package/dist/adapters/jest/read-host-config.js +26 -0
- package/dist/adapters/jest/read-jest-config.d.ts +27 -0
- package/dist/adapters/jest/read-jest-config.js +43 -0
- package/dist/adapters/jest/read-teardown.d.ts +23 -0
- package/dist/adapters/jest/read-teardown.js +34 -0
- package/dist/adapters/jest/resolve-jest-packages.d.ts +20 -0
- package/dist/adapters/jest/resolve-jest-packages.js +45 -0
- package/dist/adapters/jest/results-mark.d.ts +6 -0
- package/dist/adapters/jest/results-mark.js +2 -0
- package/dist/adapters/jest/run-dry.d.ts +37 -0
- package/dist/adapters/jest/run-dry.js +165 -0
- package/dist/adapters/jest/run-isolated.d.ts +26 -0
- package/dist/adapters/jest/run-isolated.js +113 -0
- package/dist/adapters/jest/run-on-worker.d.ts +46 -0
- package/dist/adapters/jest/run-on-worker.js +76 -0
- package/dist/adapters/jest/runner.d.ts +23 -0
- package/dist/adapters/jest/runner.js +2 -0
- package/dist/adapters/jest/score-jest.d.ts +12 -0
- package/dist/adapters/jest/score-jest.js +19 -0
- package/dist/adapters/jest/start-jest-host.d.ts +37 -0
- package/dist/adapters/jest/start-jest-host.js +85 -0
- package/dist/adapters/jest/start-jest-session.d.ts +40 -0
- package/dist/adapters/jest/start-jest-session.js +185 -0
- package/dist/adapters/jest/start-worker.d.ts +32 -0
- package/dist/adapters/jest/start-worker.js +50 -0
- package/dist/adapters/jest/transform-config-names.d.ts +6 -0
- package/dist/adapters/jest/transform-config-names.js +20 -0
- package/dist/adapters/jest/ts-jest-path.d.ts +7 -0
- package/dist/adapters/jest/ts-jest-path.js +2 -0
- package/dist/adapters/jest/types/booted-project.d.ts +25 -0
- package/dist/adapters/jest/types/circus-event.d.ts +103 -0
- package/dist/adapters/jest/types/circus-state.d.ts +50 -0
- package/dist/adapters/jest/types/error-realm.d.ts +7 -0
- package/dist/adapters/jest/types/flag-kind.d.ts +6 -0
- package/dist/adapters/jest/types/folded-test.d.ts +55 -0
- package/dist/adapters/jest/types/heap-cap.d.ts +18 -0
- package/dist/adapters/jest/types/host-test.d.ts +26 -0
- package/dist/adapters/jest/types/inline-cjs.d.ts +7 -0
- package/dist/adapters/jest/types/jest-adapter-options.d.ts +22 -0
- package/dist/adapters/jest/types/jest-command.d.ts +27 -0
- package/dist/adapters/jest/types/jest-config.d.ts +16 -0
- package/dist/adapters/jest/types/jest-console.d.ts +6 -0
- package/dist/adapters/jest/types/jest-file-facts.d.ts +14 -0
- package/dist/adapters/jest/types/jest-file-result.d.ts +47 -0
- package/dist/adapters/jest/types/jest-global-config.d.ts +49 -0
- package/dist/adapters/jest/types/jest-handle.d.ts +119 -0
- package/dist/adapters/jest/types/jest-host.d.ts +72 -0
- package/dist/adapters/jest/types/jest-module-map.d.ts +15 -0
- package/dist/adapters/jest/types/jest-packages.d.ts +57 -0
- package/dist/adapters/jest/types/jest-project-config.d.ts +112 -0
- package/dist/adapters/jest/types/jest-project.d.ts +16 -0
- package/dist/adapters/jest/types/jest-ready.d.ts +58 -0
- package/dist/adapters/jest/types/jest-record.d.ts +333 -0
- package/dist/adapters/jest/types/jest-test-runner.d.ts +46 -0
- package/dist/adapters/jest/types/jest-timed-record.d.ts +6 -0
- package/dist/adapters/jest/types/jest-unit.d.ts +42 -0
- package/dist/adapters/jest/types/jest-worker.d.ts +49 -0
- package/dist/adapters/jest/types/record-reader.d.ts +16 -0
- package/dist/adapters/jest/types/unit-outcome.d.ts +45 -0
- package/dist/adapters/jest/types/unit-worker.d.ts +166 -0
- package/dist/adapters/jest/types/vm-side.d.ts +43 -0
- package/dist/adapters/jest/types/worker-calls.d.ts +66 -0
- package/dist/adapters/jest/types/worker-channel.d.ts +53 -0
- package/dist/adapters/jest/types/worker-files.d.ts +31 -0
- package/dist/adapters/jest/types/worker-pool.d.ts +55 -0
- package/dist/adapters/jest/types/worker-process.d.ts +64 -0
- package/dist/adapters/jest/types/worker-project.d.ts +15 -0
- package/dist/adapters/jest/types/worker-session.d.ts +63 -0
- package/dist/adapters/jest/types/worker-slot.d.ts +20 -0
- package/dist/adapters/jest/wait-for-jest-exit.d.ts +15 -0
- package/dist/adapters/jest/wait-for-jest-exit.js +28 -0
- package/dist/adapters/jest/worker/boot-worker.d.ts +39 -0
- package/dist/adapters/jest/worker/channel-slot.d.ts +6 -0
- package/dist/adapters/jest/worker/count-default-resolver-calls.d.ts +18 -0
- package/dist/adapters/jest/worker/count-resolver-calls.d.ts +16 -0
- package/dist/adapters/jest/worker/create-circus-tracker.d.ts +61 -0
- package/dist/adapters/jest/worker/create-state-guard.d.ts +55 -0
- package/dist/adapters/jest/worker/create-test-runner.d.ts +76 -0
- package/dist/adapters/jest/worker/create-transformer-factory.d.ts +124 -0
- package/dist/adapters/jest/worker/create-worker-channel.d.ts +11 -0
- package/dist/adapters/jest/worker/install-exit-guards.d.ts +34 -0
- package/dist/adapters/jest/worker/install-vm-side.d.ts +36 -0
- package/dist/adapters/jest/worker/read-error-facts.d.ts +21 -0
- package/dist/adapters/jest/worker/read-jest-result.d.ts +11 -0
- package/dist/adapters/jest/worker/run-unit.d.ts +52 -0
- package/dist/adapters/jest/worker/switch-source.d.ts +16 -0
- package/dist/adapters/jest/worker/track-stores.d.ts +10 -0
- package/dist/adapters/jest/worker/vm-setup.d.ts +1 -0
- package/dist/adapters/jest/worker/vm-setup.js +2 -0
- package/dist/adapters/jest/worker/worker.d.ts +1 -0
- package/dist/adapters/jest/worker/worker.js +2 -0
- package/dist/adapters/jest/worker/wrap-project-config.d.ts +24 -0
- package/dist/adapters/jest/write-worker-files.d.ts +13 -0
- package/dist/adapters/jest/write-worker-files.js +31 -0
- package/dist/adapters/jest/write-worker-session.d.ts +30 -0
- package/dist/adapters/jest/write-worker-session.js +23 -0
- package/dist/adapters/node-test/build-dry-file.d.ts +52 -0
- package/dist/adapters/node-test/build-dry-file.js +56 -0
- package/dist/adapters/node-test/build-isolated-facts.d.ts +33 -0
- package/dist/adapters/node-test/build-isolated-facts.js +34 -0
- package/dist/adapters/node-test/check-node-support.d.ts +8 -0
- package/dist/adapters/node-test/check-node-support.js +5 -0
- package/dist/adapters/node-test/check-todo-bail.d.ts +10 -0
- package/dist/adapters/node-test/check-todo-bail.js +5 -0
- package/dist/adapters/node-test/check-typescript.d.ts +24 -0
- package/dist/adapters/node-test/check-typescript.js +17 -0
- package/dist/adapters/node-test/collect-node-dependencies.d.ts +31 -0
- package/dist/adapters/node-test/collect-node-dependencies.js +24 -0
- package/dist/adapters/node-test/create-glob-pattern.d.ts +11 -0
- package/dist/adapters/node-test/create-glob-pattern.js +21 -0
- package/dist/adapters/node-test/describe-hook-failure.d.ts +14 -0
- package/dist/adapters/node-test/describe-hook-failure.js +4 -0
- package/dist/adapters/node-test/drop-todo-errors.d.ts +10 -0
- package/dist/adapters/node-test/drop-todo-errors.js +5 -0
- package/dist/adapters/node-test/filter-exec-argv.d.ts +19 -0
- package/dist/adapters/node-test/filter-exec-argv.js +33 -0
- package/dist/adapters/node-test/find-test-command.d.ts +13 -0
- package/dist/adapters/node-test/find-test-command.js +18 -0
- package/dist/adapters/node-test/get-default-patterns.d.ts +13 -0
- package/dist/adapters/node-test/get-default-patterns.js +14 -0
- package/dist/adapters/node-test/get-dry-deadline.d.ts +17 -0
- package/dist/adapters/node-test/get-dry-deadline.js +6 -0
- package/dist/adapters/node-test/get-node-cache-inputs.d.ts +31 -0
- package/dist/adapters/node-test/get-node-cache-inputs.js +33 -0
- package/dist/adapters/node-test/get-preload-path.d.ts +10 -0
- package/dist/adapters/node-test/get-preload-path.js +7 -0
- package/dist/adapters/node-test/get-unit-deadline.d.ts +13 -0
- package/dist/adapters/node-test/get-unit-deadline.js +5 -0
- package/dist/adapters/node-test/includes-tsx.d.ts +9 -0
- package/dist/adapters/node-test/includes-tsx.js +5 -0
- package/dist/adapters/node-test/index.d.ts +13 -0
- package/dist/adapters/node-test/index.js +11 -0
- package/dist/adapters/node-test/list-file-errors.d.ts +18 -0
- package/dist/adapters/node-test/list-file-errors.js +8 -0
- package/dist/adapters/node-test/list-flag-values.d.ts +10 -0
- package/dist/adapters/node-test/list-flag-values.js +9 -0
- package/dist/adapters/node-test/list-loaded-files.d.ts +9 -0
- package/dist/adapters/node-test/list-loaded-files.js +7 -0
- package/dist/adapters/node-test/list-node-test-files.d.ts +13 -0
- package/dist/adapters/node-test/list-node-test-files.js +42 -0
- package/dist/adapters/node-test/list-running-tries.d.ts +16 -0
- package/dist/adapters/node-test/list-running-tries.js +6 -0
- package/dist/adapters/node-test/list-setup-files.d.ts +11 -0
- package/dist/adapters/node-test/list-setup-files.js +9 -0
- package/dist/adapters/node-test/loader-flags.d.ts +4 -0
- package/dist/adapters/node-test/loader-flags.js +8 -0
- package/dist/adapters/node-test/place-preload.d.ts +17 -0
- package/dist/adapters/node-test/place-preload.js +27 -0
- package/dist/adapters/node-test/preload/create-bail-error.d.ts +9 -0
- package/dist/adapters/node-test/preload/create-bail-error.js +7 -0
- package/dist/adapters/node-test/preload/create-commonjs-route.d.ts +24 -0
- package/dist/adapters/node-test/preload/create-commonjs-route.js +15 -0
- package/dist/adapters/node-test/preload/create-file-recorder.d.ts +10 -0
- package/dist/adapters/node-test/preload/create-file-recorder.js +10 -0
- package/dist/adapters/node-test/preload/create-load-hook.d.ts +22 -0
- package/dist/adapters/node-test/preload/create-load-hook.js +18 -0
- package/dist/adapters/node-test/preload/create-record-writer.d.ts +13 -0
- package/dist/adapters/node-test/preload/create-record-writer.js +8 -0
- package/dist/adapters/node-test/preload/create-report-reader.d.ts +35 -0
- package/dist/adapters/node-test/preload/create-report-reader.js +34 -0
- package/dist/adapters/node-test/preload/create-source-switcher.d.ts +25 -0
- package/dist/adapters/node-test/preload/create-source-switcher.js +25 -0
- package/dist/adapters/node-test/preload/create-try-tracker.d.ts +71 -0
- package/dist/adapters/node-test/preload/create-try-tracker.js +125 -0
- package/dist/adapters/node-test/preload/hooks.d.ts +19 -0
- package/dist/adapters/node-test/preload/hooks.js +17 -0
- package/dist/adapters/node-test/preload/install-marker-receivers.d.ts +30 -0
- package/dist/adapters/node-test/preload/install-marker-receivers.js +16 -0
- package/dist/adapters/node-test/preload/install-module-hooks.d.ts +79 -0
- package/dist/adapters/node-test/preload/install-module-hooks.js +13 -0
- package/dist/adapters/node-test/preload/loaded-key.d.ts +5 -0
- package/dist/adapters/node-test/preload/loaded-key.js +2 -0
- package/dist/adapters/node-test/preload/patch-module-compile.d.ts +14 -0
- package/dist/adapters/node-test/preload/patch-module-compile.js +11 -0
- package/dist/adapters/node-test/preload/preload.d.ts +1 -0
- package/dist/adapters/node-test/preload/preload.js +71 -0
- package/dist/adapters/node-test/preload/read-unit.d.ts +13 -0
- package/dist/adapters/node-test/preload/read-unit.js +5 -0
- package/dist/adapters/node-test/preload/reported-key.d.ts +5 -0
- package/dist/adapters/node-test/preload/reported-key.js +2 -0
- package/dist/adapters/node-test/preload/reporter.d.ts +10 -0
- package/dist/adapters/node-test/preload/reporter.js +12 -0
- package/dist/adapters/node-test/preload/served-key.d.ts +5 -0
- package/dist/adapters/node-test/preload/served-key.js +2 -0
- package/dist/adapters/node-test/read-node-runtime.d.ts +22 -0
- package/dist/adapters/node-test/read-node-runtime.js +40 -0
- package/dist/adapters/node-test/read-test-timeout.d.ts +8 -0
- package/dist/adapters/node-test/read-test-timeout.js +12 -0
- package/dist/adapters/node-test/read-tries.d.ts +47 -0
- package/dist/adapters/node-test/read-tries.js +31 -0
- package/dist/adapters/node-test/resolve-command.d.ts +15 -0
- package/dist/adapters/node-test/resolve-command.js +87 -0
- package/dist/adapters/node-test/resolve-tsx.d.ts +8 -0
- package/dist/adapters/node-test/resolve-tsx.js +12 -0
- package/dist/adapters/node-test/run-dry.d.ts +32 -0
- package/dist/adapters/node-test/run-dry.js +87 -0
- package/dist/adapters/node-test/run-isolated.d.ts +22 -0
- package/dist/adapters/node-test/run-isolated.js +56 -0
- package/dist/adapters/node-test/run-test-file.d.ts +22 -0
- package/dist/adapters/node-test/run-test-file.js +35 -0
- package/dist/adapters/node-test/run-test-process.d.ts +63 -0
- package/dist/adapters/node-test/run-test-process.js +69 -0
- package/dist/adapters/node-test/score-node-test.d.ts +11 -0
- package/dist/adapters/node-test/score-node-test.js +32 -0
- package/dist/adapters/node-test/start-node-test-session.d.ts +26 -0
- package/dist/adapters/node-test/start-node-test-session.js +124 -0
- package/dist/adapters/node-test/types/node-test-adapter-options.d.ts +33 -0
- package/dist/adapters/node-test/types/node-test-command.d.ts +28 -0
- package/dist/adapters/node-test/types/node-test-handle.d.ts +118 -0
- package/dist/adapters/node-test/types/node-test-hooks-data.d.ts +20 -0
- package/dist/adapters/node-test/types/node-test-record.d.ts +330 -0
- package/dist/adapters/node-test/types/node-test-unit.d.ts +57 -0
- package/dist/adapters/node-test/types/process-watch.d.ts +22 -0
- package/dist/adapters/node-test/types/source-switcher.d.ts +21 -0
- package/dist/adapters/node-test/types/test-process-outcome.d.ts +31 -0
- package/dist/adapters/node-test/types/try-context.d.ts +26 -0
- package/dist/adapters/node-test/types/try-tracker.d.ts +44 -0
- package/dist/adapters/shared/capture-clock.d.ts +11 -0
- package/dist/adapters/shared/capture-clock.js +14 -0
- package/dist/adapters/shared/create-environment-proxy.d.ts +12 -0
- package/dist/adapters/shared/create-environment-proxy.js +17 -0
- package/dist/adapters/shared/describe-exit.d.ts +14 -0
- package/dist/adapters/shared/describe-exit.js +4 -0
- package/dist/adapters/shared/environment-slot.d.ts +5 -0
- package/dist/adapters/shared/environment-slot.js +2 -0
- package/dist/adapters/shared/get-error-message.d.ts +9 -0
- package/dist/adapters/shared/get-error-message.js +10 -0
- package/dist/adapters/shared/get-test-id.d.ts +19 -0
- package/dist/adapters/shared/get-test-id.js +11 -0
- package/dist/adapters/shared/hash-environment.d.ts +9 -0
- package/dist/adapters/shared/hash-environment.js +6 -0
- package/dist/adapters/shared/index-environment-hashes.d.ts +13 -0
- package/dist/adapters/shared/index-environment-hashes.js +19 -0
- package/dist/adapters/shared/list-package-files.d.ts +11 -0
- package/dist/adapters/shared/list-package-files.js +9 -0
- package/dist/adapters/shared/list-tsconfig-files.d.ts +12 -0
- package/dist/adapters/shared/list-tsconfig-files.js +15 -0
- package/dist/adapters/shared/live-process-groups.d.ts +5 -0
- package/dist/adapters/shared/live-process-groups.js +2 -0
- package/dist/adapters/shared/parse-command.d.ts +16 -0
- package/dist/adapters/shared/parse-command.js +27 -0
- package/dist/adapters/shared/read-command-prefix.d.ts +16 -0
- package/dist/adapters/shared/read-command-prefix.js +33 -0
- package/dist/adapters/shared/read-out-file.d.ts +8 -0
- package/dist/adapters/shared/read-out-file.js +11 -0
- package/dist/adapters/shared/read-package-type.d.ts +8 -0
- package/dist/adapters/shared/read-package-type.js +12 -0
- package/dist/adapters/shared/read-test-scripts.d.ts +14 -0
- package/dist/adapters/shared/read-test-scripts.js +55 -0
- package/dist/adapters/shared/read-tsconfig-extends.d.ts +12 -0
- package/dist/adapters/shared/read-tsconfig-extends.js +39 -0
- package/dist/adapters/shared/run-in-pool.d.ts +16 -0
- package/dist/adapters/shared/run-in-pool.js +22 -0
- package/dist/adapters/shared/split-node-arguments.d.ts +14 -0
- package/dist/adapters/shared/split-node-arguments.js +18 -0
- package/dist/adapters/shared/stop-live-process-groups.d.ts +5 -0
- package/dist/adapters/shared/stop-live-process-groups.js +7 -0
- package/dist/adapters/shared/stop-process-group.d.ts +9 -0
- package/dist/adapters/shared/stop-process-group.js +10 -0
- package/dist/adapters/shared/track-environment.d.ts +43 -0
- package/dist/adapters/shared/track-environment.js +18 -0
- package/dist/adapters/shared/track-file-inputs.d.ts +12 -0
- package/dist/adapters/shared/track-file-inputs.js +21 -0
- package/dist/adapters/shared/track-file-reads.d.ts +38 -0
- package/dist/adapters/shared/track-file-reads.js +190 -0
- package/dist/adapters/shared/track-inputs.d.ts +16 -0
- package/dist/adapters/shared/track-inputs.js +21 -0
- package/dist/adapters/shared/track-process-group.d.ts +9 -0
- package/dist/adapters/shared/track-process-group.js +20 -0
- package/dist/adapters/shared/track-spawners.d.ts +20 -0
- package/dist/adapters/shared/track-spawners.js +49 -0
- package/dist/adapters/shared/types/environment-proxy-state.d.ts +23 -0
- package/dist/adapters/shared/types/file-input-tracking.d.ts +20 -0
- package/dist/adapters/shared/types/input-tracking.d.ts +26 -0
- package/dist/adapters/shared/types/safe-clock.d.ts +25 -0
- package/dist/adapters/shared/types/switch-plan.d.ts +7 -0
- package/dist/adapters/shared/verdict-variable-pattern.d.ts +6 -0
- package/dist/adapters/shared/verdict-variable-pattern.js +2 -0
- package/dist/adapters/shared/write-switch-plan.d.ts +11 -0
- package/dist/adapters/shared/write-switch-plan.js +16 -0
- package/dist/adapters/vitest/build-isolated-facts.d.ts +19 -0
- package/dist/adapters/vitest/build-isolated-facts.js +31 -0
- package/dist/adapters/vitest/check-project-config.d.ts +10 -0
- package/dist/adapters/vitest/check-project-config.js +6 -0
- package/dist/adapters/vitest/check-vitest-copy.d.ts +12 -0
- package/dist/adapters/vitest/check-vitest-copy.js +15 -0
- package/dist/adapters/vitest/collect-dependencies.d.ts +29 -0
- package/dist/adapters/vitest/collect-dependencies.js +38 -0
- package/dist/adapters/vitest/configure-project.d.ts +17 -0
- package/dist/adapters/vitest/configure-project.js +24 -0
- package/dist/adapters/vitest/create-forks-pool.d.ts +22 -0
- package/dist/adapters/vitest/create-forks-pool.js +49 -0
- package/dist/adapters/vitest/create-interleaved-sequencer.d.ts +13 -0
- package/dist/adapters/vitest/create-interleaved-sequencer.js +21 -0
- package/dist/adapters/vitest/create-mootant-plugin.d.ts +18 -0
- package/dist/adapters/vitest/create-mootant-plugin.js +31 -0
- package/dist/adapters/vitest/create-output-reporter.d.ts +28 -0
- package/dist/adapters/vitest/create-output-reporter.js +7 -0
- package/dist/adapters/vitest/create-output-stream.d.ts +11 -0
- package/dist/adapters/vitest/create-output-stream.js +16 -0
- package/dist/adapters/vitest/detect-vitest.d.ts +28 -0
- package/dist/adapters/vitest/detect-vitest.js +26 -0
- package/dist/adapters/vitest/get-cache-inputs.d.ts +16 -0
- package/dist/adapters/vitest/get-cache-inputs.js +75 -0
- package/dist/adapters/vitest/get-file-key.d.ts +10 -0
- package/dist/adapters/vitest/get-file-key.js +15 -0
- package/dist/adapters/vitest/get-module-file.d.ts +10 -0
- package/dist/adapters/vitest/get-module-file.js +7 -0
- package/dist/adapters/vitest/get-project-label.d.ts +8 -0
- package/dist/adapters/vitest/get-project-label.js +4 -0
- package/dist/adapters/vitest/get-runner-path.d.ts +9 -0
- package/dist/adapters/vitest/get-runner-path.js +7 -0
- package/dist/adapters/vitest/get-switchable-path.d.ts +12 -0
- package/dist/adapters/vitest/get-switchable-path.js +8 -0
- package/dist/adapters/vitest/index-switched-files.d.ts +10 -0
- package/dist/adapters/vitest/index-switched-files.js +5 -0
- package/dist/adapters/vitest/index.d.ts +11 -0
- package/dist/adapters/vitest/index.js +11 -0
- package/dist/adapters/vitest/read-environment-hashes.d.ts +9 -0
- package/dist/adapters/vitest/read-environment-hashes.js +13 -0
- package/dist/adapters/vitest/read-out-files.d.ts +9 -0
- package/dist/adapters/vitest/read-out-files.js +9 -0
- package/dist/adapters/vitest/read-unit-inputs.d.ts +27 -0
- package/dist/adapters/vitest/read-unit-inputs.js +15 -0
- package/dist/adapters/vitest/reset-run-directory.d.ts +9 -0
- package/dist/adapters/vitest/reset-run-directory.js +21 -0
- package/dist/adapters/vitest/run-batch.d.ts +16 -0
- package/dist/adapters/vitest/run-batch.js +70 -0
- package/dist/adapters/vitest/run-dry.d.ts +26 -0
- package/dist/adapters/vitest/run-dry.js +136 -0
- package/dist/adapters/vitest/run-isolated.d.ts +15 -0
- package/dist/adapters/vitest/run-isolated.js +29 -0
- package/dist/adapters/vitest/run-plan.d.ts +39 -0
- package/dist/adapters/vitest/run-plan.js +60 -0
- package/dist/adapters/vitest/run-specifications.d.ts +23 -0
- package/dist/adapters/vitest/run-specifications.js +19 -0
- package/dist/adapters/vitest/runner.d.ts +449 -0
- package/dist/adapters/vitest/runner.js +361 -0
- package/dist/adapters/vitest/score-vitest.d.ts +11 -0
- package/dist/adapters/vitest/score-vitest.js +7 -0
- package/dist/adapters/vitest/start-vitest-session.d.ts +24 -0
- package/dist/adapters/vitest/start-vitest-session.js +88 -0
- package/dist/adapters/vitest/stop-hung-worker.d.ts +11 -0
- package/dist/adapters/vitest/stop-hung-worker.js +29 -0
- package/dist/adapters/vitest/types/unit-outcome.d.ts +26 -0
- package/dist/adapters/vitest/types/vitest-adapter-options.d.ts +10 -0
- package/dist/adapters/vitest/types/vitest-session-state.d.ts +94 -0
- package/dist/adapters/vitest/types/vitest-worker.d.ts +246 -0
- package/dist/adapters/vitest/wait-for-workers.d.ts +30 -0
- package/dist/adapters/vitest/wait-for-workers.js +39 -0
- package/dist/adapters/vitest/watch-heartbeats.d.ts +23 -0
- package/dist/adapters/vitest/watch-heartbeats.js +25 -0
- package/dist/adapters/vitest/watch-unit-ends.d.ts +22 -0
- package/dist/adapters/vitest/watch-unit-ends.js +14 -0
- package/dist/adapters/vitest/worker/claim-unit.d.ts +16 -0
- package/dist/adapters/vitest/worker/claim-unit.js +16 -0
- package/dist/adapters/vitest/worker/find-hook-error.d.ts +10 -0
- package/dist/adapters/vitest/worker/find-hook-error.js +12 -0
- package/dist/adapters/vitest/worker/get-file-hash.d.ts +11 -0
- package/dist/adapters/vitest/worker/get-file-hash.js +5 -0
- package/dist/adapters/vitest/worker/get-hook-budget.d.ts +16 -0
- package/dist/adapters/vitest/worker/get-hook-budget.js +36 -0
- package/dist/adapters/vitest/worker/install-try-hook.d.ts +16 -0
- package/dist/adapters/vitest/worker/install-try-hook.js +11 -0
- package/dist/adapters/vitest/worker/is-process-alive.d.ts +9 -0
- package/dist/adapters/vitest/worker/is-process-alive.js +9 -0
- package/dist/adapters/vitest/worker/is-timeout-message.d.ts +7 -0
- package/dist/adapters/vitest/worker/is-timeout-message.js +5 -0
- package/dist/adapters/vitest/worker/list-dependencies.d.ts +35 -0
- package/dist/adapters/vitest/worker/list-dependencies.js +10 -0
- package/dist/adapters/vitest/worker/list-tests.d.ts +8 -0
- package/dist/adapters/vitest/worker/list-tests.js +4 -0
- package/dist/adapters/vitest/worker/order-tests.d.ts +14 -0
- package/dist/adapters/vitest/worker/order-tests.js +7 -0
- package/dist/adapters/vitest/worker/race-try-timeout.d.ts +13 -0
- package/dist/adapters/vitest/worker/race-try-timeout.js +17 -0
- package/dist/adapters/vitest/worker/read-try-facts.d.ts +36 -0
- package/dist/adapters/vitest/worker/read-try-facts.js +19 -0
- package/dist/adapters/vitest/worker/read-worker-plan.d.ts +11 -0
- package/dist/adapters/vitest/worker/read-worker-plan.js +13 -0
- package/dist/adapters/vitest/worker/vitest-variables.d.ts +6 -0
- package/dist/adapters/vitest/worker/vitest-variables.js +2 -0
- package/dist/adapters/vitest/worker/wait-for-turn.d.ts +24 -0
- package/dist/adapters/vitest/worker/wait-for-turn.js +11 -0
- package/dist/adapters/vitest/worker/watch-worker-close.d.ts +20 -0
- package/dist/adapters/vitest/worker/watch-worker-close.js +32 -0
- package/dist/adapters/vitest/worker/write-heartbeat.d.ts +14 -0
- package/dist/adapters/vitest/worker/write-heartbeat.js +6 -0
- package/dist/adapters/vitest/worker/write-out-record.d.ts +10 -0
- package/dist/adapters/vitest/worker/write-out-record.js +5 -0
- package/dist/adapters/vitest/write-plan-files.d.ts +12 -0
- package/dist/adapters/vitest/write-plan-files.js +14 -0
- package/dist/cli/built-in-adapters.d.ts +15 -0
- package/dist/cli/built-in-adapters.js +29 -0
- package/dist/cli/create-run-progress.d.ts +50 -0
- package/dist/cli/create-run-progress.js +218 -0
- package/dist/cli/create-time-estimator.d.ts +80 -0
- package/dist/cli/create-time-estimator.js +63 -0
- package/dist/cli/diff/format-change.d.ts +38 -0
- package/dist/cli/diff/format-change.js +101 -0
- package/dist/cli/diff/format-diff-groups.d.ts +46 -0
- package/dist/cli/diff/format-diff-groups.js +48 -0
- package/dist/cli/diff/format-diff.d.ts +20 -0
- package/dist/cli/diff/format-diff.js +94 -0
- package/dist/cli/diff/get-diff-lines.d.ts +23 -0
- package/dist/cli/diff/get-diff-lines.js +24 -0
- package/dist/cli/diff/is-joined.d.ts +10 -0
- package/dist/cli/diff/is-joined.js +5 -0
- package/dist/cli/diff/mark-diff.d.ts +63 -0
- package/dist/cli/diff/mark-diff.js +43 -0
- package/dist/cli/diff/narrow-change.d.ts +36 -0
- package/dist/cli/diff/narrow-change.js +46 -0
- package/dist/cli/diff/separate-replacement.d.ts +21 -0
- package/dist/cli/diff/separate-replacement.js +6 -0
- package/dist/cli/html/build-html-report.d.ts +48 -0
- package/dist/cli/html/build-html-report.js +113 -0
- package/dist/cli/html/client/copy-text.d.ts +9 -0
- package/dist/cli/html/client/describe-status.d.ts +13 -0
- package/dist/cli/html/client/download-json.d.ts +8 -0
- package/dist/cli/html/client/escape-html.d.ts +7 -0
- package/dist/cli/html/client/escape-html.js +4 -0
- package/dist/cli/html/client/filter-by-status.d.ts +11 -0
- package/dist/cli/html/client/find-search-results.d.ts +30 -0
- package/dist/cli/html/client/format-date.d.ts +8 -0
- package/dist/cli/html/client/format-score.d.ts +8 -0
- package/dist/cli/html/client/format-time.d.ts +8 -0
- package/dist/cli/html/client/get-file-href.d.ts +10 -0
- package/dist/cli/html/client/get-icon.d.ts +37 -0
- package/dist/cli/html/client/get-line-end.d.ts +10 -0
- package/dist/cli/html/client/get-table-layout.d.ts +15 -0
- package/dist/cli/html/client/get-test-groups.d.ts +11 -0
- package/dist/cli/html/client/get-wordmark.d.ts +9 -0
- package/dist/cli/html/client/html.d.ts +12 -0
- package/dist/cli/html/client/index-report.d.ts +14 -0
- package/dist/cli/html/client/is-overlapping.d.ts +10 -0
- package/dist/cli/html/client/main.d.ts +1 -0
- package/dist/cli/html/client/main.js +2 -0
- package/dist/cli/html/client/measure-column.d.ts +10 -0
- package/dist/cli/html/client/paint-ranges.d.ts +33 -0
- package/dist/cli/html/client/parse-route.d.ts +13 -0
- package/dist/cli/html/client/render-attention.d.ts +12 -0
- package/dist/cli/html/client/render-change.d.ts +11 -0
- package/dist/cli/html/client/render-code.d.ts +50 -0
- package/dist/cli/html/client/render-command.d.ts +8 -0
- package/dist/cli/html/client/render-count-cells.d.ts +10 -0
- package/dist/cli/html/client/render-diff.d.ts +16 -0
- package/dist/cli/html/client/render-file-code.d.ts +12 -0
- package/dist/cli/html/client/render-file-panel.d.ts +12 -0
- package/dist/cli/html/client/render-files-table.d.ts +10 -0
- package/dist/cli/html/client/render-files-view.d.ts +14 -0
- package/dist/cli/html/client/render-frame.d.ts +12 -0
- package/dist/cli/html/client/render-mutant-link.d.ts +11 -0
- package/dist/cli/html/client/render-mutant-panel.d.ts +18 -0
- package/dist/cli/html/client/render-mutant-row.d.ts +13 -0
- package/dist/cli/html/client/render-mutants-table.d.ts +13 -0
- package/dist/cli/html/client/render-mutants-view.d.ts +12 -0
- package/dist/cli/html/client/render-mutators-view.d.ts +11 -0
- package/dist/cli/html/client/render-overview.d.ts +14 -0
- package/dist/cli/html/client/render-side-panel.d.ts +12 -0
- package/dist/cli/html/client/render-skip-panel.d.ts +14 -0
- package/dist/cli/html/client/render-skipped-summary.d.ts +10 -0
- package/dist/cli/html/client/render-spotlight.d.ts +12 -0
- package/dist/cli/html/client/render-status-bar.d.ts +10 -0
- package/dist/cli/html/client/render-status-filter.d.ts +40 -0
- package/dist/cli/html/client/render-test-name.d.ts +8 -0
- package/dist/cli/html/client/render-tests-view.d.ts +16 -0
- package/dist/cli/html/client/render-tree.d.ts +11 -0
- package/dist/cli/html/client/set-markup.d.ts +9 -0
- package/dist/cli/html/client/start-report.d.ts +14 -0
- package/dist/cli/html/client/tokenize-source.d.ts +12 -0
- package/dist/cli/html/client/unpack-replacement.d.ts +15 -0
- package/dist/cli/html/client/unpack-run-report.d.ts +12 -0
- package/dist/cli/html/format-html-report.d.ts +12 -0
- package/dist/cli/html/format-html-report.js +52 -0
- package/dist/cli/html/pack-replacement.d.ts +15 -0
- package/dist/cli/html/pack-replacement.js +11 -0
- package/dist/cli/html/read-project-name.d.ts +8 -0
- package/dist/cli/html/read-project-name.js +12 -0
- package/dist/cli/html/report.js +2 -0
- package/dist/cli/html/serialize-report-data.d.ts +11 -0
- package/dist/cli/html/serialize-report-data.js +4 -0
- package/dist/cli/html/write-html-report.d.ts +7 -0
- package/dist/cli/html/write-html-report.js +6 -0
- package/dist/cli/index.d.ts +6 -0
- package/dist/cli/index.js +14 -0
- package/dist/cli/parse-arguments.d.ts +127 -0
- package/dist/cli/parse-arguments.js +137 -0
- package/dist/cli/report/build-list-report.d.ts +13 -0
- package/dist/cli/report/build-list-report.js +131 -0
- package/dist/cli/report/build-run-report.d.ts +39 -0
- package/dist/cli/report/build-run-report.js +108 -0
- package/dist/cli/report/format-command.d.ts +59 -0
- package/dist/cli/report/format-command.js +14 -0
- package/dist/cli/report/format-duration.d.ts +8 -0
- package/dist/cli/report/format-duration.js +9 -0
- package/dist/cli/report/format-fields.d.ts +11 -0
- package/dist/cli/report/format-fields.js +15 -0
- package/dist/cli/report/format-file-groups.d.ts +66 -0
- package/dist/cli/report/format-file-groups.js +53 -0
- package/dist/cli/report/format-header.d.ts +19 -0
- package/dist/cli/report/format-header.js +12 -0
- package/dist/cli/report/format-report.d.ts +16 -0
- package/dist/cli/report/format-report.js +10 -0
- package/dist/cli/report/format-run-report.d.ts +13 -0
- package/dist/cli/report/format-run-report.js +10 -0
- package/dist/cli/report/format-run-text-report.d.ts +59 -0
- package/dist/cli/report/format-run-text-report.js +126 -0
- package/dist/cli/report/format-text-report.d.ts +33 -0
- package/dist/cli/report/format-text-report.js +57 -0
- package/dist/cli/report/format-time-left.d.ts +10 -0
- package/dist/cli/report/format-time-left.js +9 -0
- package/dist/cli/report/get-file-scores.d.ts +11 -0
- package/dist/cli/report/get-file-scores.js +21 -0
- package/dist/cli/report/get-short-id-length.d.ts +9 -0
- package/dist/cli/report/get-short-id-length.js +11 -0
- package/dist/cli/report/print-diagnostics.d.ts +11 -0
- package/dist/cli/report/print-diagnostics.js +15 -0
- package/dist/cli/report/slim-diff.d.ts +11 -0
- package/dist/cli/report/slim-diff.js +9 -0
- package/dist/cli/report/slim-focus.d.ts +10 -0
- package/dist/cli/report/slim-focus.js +9 -0
- package/dist/cli/report/slim-list-mutant.d.ts +17 -0
- package/dist/cli/report/slim-list-mutant.js +18 -0
- package/dist/cli/report/slim-list-report.d.ts +14 -0
- package/dist/cli/report/slim-list-report.js +20 -0
- package/dist/cli/report/slim-run-report.d.ts +20 -0
- package/dist/cli/report/slim-run-report.js +66 -0
- package/dist/cli/report/sort-by-location.d.ts +16 -0
- package/dist/cli/report/sort-by-location.js +9 -0
- package/dist/cli/run-list.d.ts +9 -0
- package/dist/cli/run-list.js +27 -0
- package/dist/cli/run-mutation.d.ts +18 -0
- package/dist/cli/run-mutation.js +72 -0
- package/dist/cli/terminal/colors.d.ts +59 -0
- package/dist/cli/terminal/colors.js +26 -0
- package/dist/cli/terminal/count-terminal-rows.d.ts +13 -0
- package/dist/cli/terminal/count-terminal-rows.js +7 -0
- package/dist/cli/terminal/create-spinner.d.ts +37 -0
- package/dist/cli/terminal/create-spinner.js +62 -0
- package/dist/cli/terminal/cut-to-width.d.ts +17 -0
- package/dist/cli/terminal/cut-to-width.js +14 -0
- package/dist/cli/terminal/fit-parts.d.ts +12 -0
- package/dist/cli/terminal/fit-parts.js +10 -0
- package/dist/cli/terminal/format-by-file.d.ts +35 -0
- package/dist/cli/terminal/format-by-file.js +15 -0
- package/dist/cli/terminal/get-display-width.d.ts +24 -0
- package/dist/cli/terminal/get-display-width.js +15 -0
- package/dist/cli/terminal/get-max-display-width.d.ts +9 -0
- package/dist/cli/terminal/get-max-display-width.js +5 -0
- package/dist/cli/terminal/get-symbols.d.ts +37 -0
- package/dist/cli/terminal/get-symbols.js +18 -0
- package/dist/cli/terminal/get-text-style.d.ts +15 -0
- package/dist/cli/terminal/get-text-style.js +16 -0
- package/dist/cli/terminal/is-interactive-terminal.d.ts +12 -0
- package/dist/cli/terminal/is-interactive-terminal.js +5 -0
- package/dist/cli/terminal/is-unicode-supported.d.ts +10 -0
- package/dist/cli/terminal/is-unicode-supported.js +5 -0
- package/dist/cli/terminal/measure-parts.d.ts +10 -0
- package/dist/cli/terminal/measure-parts.js +6 -0
- package/dist/cli/terminal/pad-to-width.d.ts +9 -0
- package/dist/cli/terminal/pad-to-width.js +5 -0
- package/dist/cli/terminal/strip-ansi.d.ts +7 -0
- package/dist/cli/terminal/strip-ansi.js +14 -0
- package/dist/cli/terminal/wrap-text.d.ts +9 -0
- package/dist/cli/terminal/wrap-text.js +10 -0
- package/dist/core/cache/apply-cached-batch.d.ts +21 -0
- package/dist/core/cache/apply-cached-batch.js +37 -0
- package/dist/core/cache/apply-cached-units.d.ts +15 -0
- package/dist/core/cache/apply-cached-units.js +19 -0
- package/dist/core/cache/cache-version.d.ts +6 -0
- package/dist/core/cache/create-digest.d.ts +7 -0
- package/dist/core/cache/create-digest.js +5 -0
- package/dist/core/cache/create-run-cache.d.ts +93 -0
- package/dist/core/cache/create-run-cache.js +126 -0
- package/dist/core/cache/find-changed-files.d.ts +10 -0
- package/dist/core/cache/find-changed-files.js +11 -0
- package/dist/core/cache/find-lockfile.d.ts +8 -0
- package/dist/core/cache/find-lockfile.js +23 -0
- package/dist/core/cache/get-cache-path.d.ts +9 -0
- package/dist/core/cache/get-cache-path.js +5 -0
- package/dist/core/cache/get-environment-key.d.ts +63 -0
- package/dist/core/cache/get-environment-key.js +25 -0
- package/dist/core/cache/get-portable-path.d.ts +11 -0
- package/dist/core/cache/get-portable-path.js +5 -0
- package/dist/core/cache/get-test-file-keys.d.ts +31 -0
- package/dist/core/cache/get-test-file-keys.js +24 -0
- package/dist/core/cache/hash-files.d.ts +11 -0
- package/dist/core/cache/hash-files.js +24 -0
- package/dist/core/cache/list-file-hashes.d.ts +16 -0
- package/dist/core/cache/list-file-hashes.js +7 -0
- package/dist/core/cache/prepare-run-cache.d.ts +92 -0
- package/dist/core/cache/prepare-run-cache.js +71 -0
- package/dist/core/cache/prune-cache-entries.d.ts +10 -0
- package/dist/core/cache/prune-cache-entries.js +6 -0
- package/dist/core/cache/read-run-cache.d.ts +11 -0
- package/dist/core/cache/read-run-cache.js +33 -0
- package/dist/core/cache/run-in-chunks.d.ts +10 -0
- package/dist/core/cache/run-in-chunks.js +6 -0
- package/dist/core/cache/save-run-cache.d.ts +33 -0
- package/dist/core/cache/save-run-cache.js +54 -0
- package/dist/core/cache/write-run-cache.d.ts +22 -0
- package/dist/core/cache/write-run-cache.js +20 -0
- package/dist/core/compare-code-units.d.ts +10 -0
- package/dist/core/compare-code-units.js +4 -0
- package/dist/core/config/define-config.d.ts +13 -0
- package/dist/core/config/define-config.js +4 -0
- package/dist/core/config/import-config.d.ts +9 -0
- package/dist/core/config/import-config.js +5 -0
- package/dist/core/config/load-config.d.ts +38 -0
- package/dist/core/config/load-config.js +55 -0
- package/dist/core/config/load-typescript-config.d.ts +11 -0
- package/dist/core/config/load-typescript-config.js +13 -0
- package/dist/core/config/prepare-run.d.ts +67 -0
- package/dist/core/config/prepare-run.js +36 -0
- package/dist/core/config/resolve-run-settings.d.ts +15 -0
- package/dist/core/config/resolve-run-settings.js +20 -0
- package/dist/core/config/validate-config.d.ts +17 -0
- package/dist/core/config/validate-config.js +74 -0
- package/dist/core/files/expand-paths.d.ts +46 -0
- package/dist/core/files/expand-paths.js +106 -0
- package/dist/core/files/is-source-file.d.ts +8 -0
- package/dist/core/files/is-source-file.js +6 -0
- package/dist/core/files/list-file-mutants.d.ts +71 -0
- package/dist/core/files/list-file-mutants.js +69 -0
- package/dist/core/files/select-changed-mutants.d.ts +15 -0
- package/dist/core/files/select-changed-mutants.js +22 -0
- package/dist/core/generate/apply-solitary-rule.d.ts +30 -0
- package/dist/core/generate/apply-solitary-rule.js +48 -0
- package/dist/core/generate/collect-candidates.d.ts +134 -0
- package/dist/core/generate/collect-candidates.js +165 -0
- package/dist/core/generate/compare-candidates.d.ts +18 -0
- package/dist/core/generate/compare-candidates.js +4 -0
- package/dist/core/generate/deduplicate-candidates.d.ts +30 -0
- package/dist/core/generate/deduplicate-candidates.js +25 -0
- package/dist/core/generate/fit-template-text.d.ts +26 -0
- package/dist/core/generate/fit-template-text.js +17 -0
- package/dist/core/generate/generate-file-mutants.d.ts +77 -0
- package/dist/core/generate/generate-file-mutants.js +225 -0
- package/dist/core/generate/get-mutant-regions.d.ts +49 -0
- package/dist/core/generate/get-mutant-regions.js +69 -0
- package/dist/core/generate/get-replacement-kind.d.ts +12 -0
- package/dist/core/generate/get-replacement-kind.js +24 -0
- package/dist/core/generate/group-replacement.d.ts +40 -0
- package/dist/core/generate/group-replacement.js +151 -0
- package/dist/core/generate/pick-focus.d.ts +14 -0
- package/dist/core/generate/pick-focus.js +4 -0
- package/dist/core/generate/validate-replacement.d.ts +17 -0
- package/dist/core/generate/validate-replacement.js +29 -0
- package/dist/core/git/find-git-root.d.ts +10 -0
- package/dist/core/git/find-git-root.js +8 -0
- package/dist/core/git/get-merge-base.d.ts +12 -0
- package/dist/core/git/get-merge-base.js +32 -0
- package/dist/core/git/parse-binary-paths.d.ts +11 -0
- package/dist/core/git/parse-binary-paths.js +9 -0
- package/dist/core/git/parse-unified-diff.d.ts +15 -0
- package/dist/core/git/parse-unified-diff.js +26 -0
- package/dist/core/git/read-changed-lines.d.ts +18 -0
- package/dist/core/git/read-changed-lines.js +60 -0
- package/dist/core/git/run-git.d.ts +30 -0
- package/dist/core/git/run-git.js +30 -0
- package/dist/core/git/unquote-git-path.d.ts +9 -0
- package/dist/core/git/unquote-git-path.js +25 -0
- package/dist/core/hints/analyze-scopes.d.ts +15 -0
- package/dist/core/hints/analyze-scopes.js +317 -0
- package/dist/core/hints/create-inferred-type.d.ts +12 -0
- package/dist/core/hints/create-inferred-type.js +5 -0
- package/dist/core/hints/create-syntactic-type-provider.d.ts +19 -0
- package/dist/core/hints/create-syntactic-type-provider.js +63 -0
- package/dist/core/hints/create-type-hints.d.ts +11 -0
- package/dist/core/hints/create-type-hints.js +21 -0
- package/dist/core/hints/find-this-class.d.ts +25 -0
- package/dist/core/hints/find-this-class.js +27 -0
- package/dist/core/hints/get-asserted-type.d.ts +9 -0
- package/dist/core/hints/get-asserted-type.js +5 -0
- package/dist/core/hints/infer-annotation-type.d.ts +14 -0
- package/dist/core/hints/infer-annotation-type.js +171 -0
- package/dist/core/hints/infer-binding-type.d.ts +13 -0
- package/dist/core/hints/infer-binding-type.js +93 -0
- package/dist/core/hints/infer-call-type.d.ts +14 -0
- package/dist/core/hints/infer-call-type.js +116 -0
- package/dist/core/hints/infer-expression-type.d.ts +12 -0
- package/dist/core/hints/infer-expression-type.js +104 -0
- package/dist/core/hints/infer-member-type.d.ts +13 -0
- package/dist/core/hints/infer-member-type.js +131 -0
- package/dist/core/hints/infer-operator-type.d.ts +18 -0
- package/dist/core/hints/infer-operator-type.js +103 -0
- package/dist/core/hints/infer-this-type.d.ts +16 -0
- package/dist/core/hints/infer-this-type.js +21 -0
- package/dist/core/hints/non-nullish-kinds.d.ts +5 -0
- package/dist/core/hints/non-nullish-kinds.js +12 -0
- package/dist/core/hints/object-kinds.d.ts +6 -0
- package/dist/core/hints/object-kinds.js +7 -0
- package/dist/core/hints/remove-nullish.d.ts +9 -0
- package/dist/core/hints/remove-nullish.js +5 -0
- package/dist/core/hints/union-inferred-types.d.ts +10 -0
- package/dist/core/hints/union-inferred-types.js +11 -0
- package/dist/core/hints/well-known-calls.d.ts +9 -0
- package/dist/core/hints/well-known-calls.js +100 -0
- package/dist/core/identity/assert-unique-ids.d.ts +12 -0
- package/dist/core/identity/assert-unique-ids.js +21 -0
- package/dist/core/identity/assign-mutant-ids.d.ts +16 -0
- package/dist/core/identity/assign-mutant-ids.js +26 -0
- package/dist/core/identity/create-mutant-id.d.ts +42 -0
- package/dist/core/identity/create-mutant-id.js +22 -0
- package/dist/core/identity/get-scope-path.d.ts +15 -0
- package/dist/core/identity/get-scope-path.js +69 -0
- package/dist/core/identity/resolve-mutant-ids.d.ts +15 -0
- package/dist/core/identity/resolve-mutant-ids.js +15 -0
- package/dist/core/ignore/create-ignore-rules.d.ts +35 -0
- package/dist/core/ignore/create-ignore-rules.js +83 -0
- package/dist/core/ignore/find-ignore-rule.d.ts +31 -0
- package/dist/core/ignore/find-ignore-rule.js +18 -0
- package/dist/core/ignore/parse-ignore-directives.d.ts +28 -0
- package/dist/core/ignore/parse-ignore-directives.js +72 -0
- package/dist/core/index.d.ts +31 -0
- package/dist/core/index.js +4 -0
- package/dist/core/instrument/check-svelte-compile.d.ts +16 -0
- package/dist/core/instrument/check-svelte-compile.js +15 -0
- package/dist/core/instrument/check-vue-compile.d.ts +18 -0
- package/dist/core/instrument/check-vue-compile.js +28 -0
- package/dist/core/instrument/create-switched-files.d.ts +52 -0
- package/dist/core/instrument/create-switched-files.js +52 -0
- package/dist/core/instrument/find-statement-starts.d.ts +26 -0
- package/dist/core/instrument/find-statement-starts.js +46 -0
- package/dist/core/instrument/get-site-check.d.ts +9 -0
- package/dist/core/instrument/get-site-check.js +5 -0
- package/dist/core/instrument/get-template-site-check.d.ts +12 -0
- package/dist/core/instrument/get-template-site-check.js +5 -0
- package/dist/core/instrument/group-mutant-ranges.d.ts +14 -0
- package/dist/core/instrument/group-mutant-ranges.js +24 -0
- package/dist/core/instrument/instrument-file.d.ts +39 -0
- package/dist/core/instrument/instrument-file.js +21 -0
- package/dist/core/instrument/instrumenter-version.d.ts +6 -0
- package/dist/core/instrument/render-mutant-range.d.ts +22 -0
- package/dist/core/instrument/render-mutant-range.js +18 -0
- package/dist/core/instrument/resolve-switched-text.d.ts +13 -0
- package/dist/core/instrument/resolve-switched-text.js +5 -0
- package/dist/core/list-mutants.d.ts +54 -0
- package/dist/core/list-mutants.js +27 -0
- package/dist/core/mutators/arithmetic-operator.d.ts +14 -0
- package/dist/core/mutators/arithmetic-operator.js +94 -0
- package/dist/core/mutators/array-element.d.ts +13 -0
- package/dist/core/mutators/array-element.js +35 -0
- package/dist/core/mutators/assignment-operator.d.ts +26 -0
- package/dist/core/mutators/assignment-operator.js +188 -0
- package/dist/core/mutators/bitwise-operator.d.ts +11 -0
- package/dist/core/mutators/bitwise-operator.js +48 -0
- package/dist/core/mutators/boolean-literal.d.ts +14 -0
- package/dist/core/mutators/boolean-literal.js +21 -0
- package/dist/core/mutators/comparison-operator.d.ts +6 -0
- package/dist/core/mutators/comparison-operator.js +16 -0
- package/dist/core/mutators/condition.d.ts +5 -0
- package/dist/core/mutators/condition.js +44 -0
- package/dist/core/mutators/logical-operator.d.ts +22 -0
- package/dist/core/mutators/logical-operator.js +53 -0
- package/dist/core/mutators/method-call.d.ts +21 -0
- package/dist/core/mutators/method-call.js +265 -0
- package/dist/core/mutators/missing-await.d.ts +17 -0
- package/dist/core/mutators/missing-await.js +144 -0
- package/dist/core/mutators/number-literal.d.ts +23 -0
- package/dist/core/mutators/number-literal.js +94 -0
- package/dist/core/mutators/object-property.d.ts +9 -0
- package/dist/core/mutators/object-property.js +19 -0
- package/dist/core/mutators/optional-chaining.d.ts +19 -0
- package/dist/core/mutators/optional-chaining.js +95 -0
- package/dist/core/mutators/regex-flag.d.ts +20 -0
- package/dist/core/mutators/regex-flag.js +86 -0
- package/dist/core/mutators/regex-pattern.d.ts +23 -0
- package/dist/core/mutators/regex-pattern.js +54 -0
- package/dist/core/mutators/return-value.d.ts +16 -0
- package/dist/core/mutators/return-value.js +216 -0
- package/dist/core/mutators/shared/create-run-context.d.ts +42 -0
- package/dist/core/mutators/shared/create-run-context.js +9 -0
- package/dist/core/mutators/shared/create-static-run-context.d.ts +12 -0
- package/dist/core/mutators/shared/create-static-run-context.js +9 -0
- package/dist/core/mutators/shared/distinguishes-nullish-swap.d.ts +32 -0
- package/dist/core/mutators/shared/distinguishes-nullish-swap.js +11 -0
- package/dist/core/mutators/shared/empties-callback.d.ts +15 -0
- package/dist/core/mutators/shared/empties-callback.js +6 -0
- package/dist/core/mutators/shared/get-branch-copy-skip.d.ts +24 -0
- package/dist/core/mutators/shared/get-branch-copy-skip.js +42 -0
- package/dist/core/mutators/shared/get-branch-pair.d.ts +33 -0
- package/dist/core/mutators/shared/get-branch-pair.js +33 -0
- package/dist/core/mutators/shared/get-call-target.d.ts +13 -0
- package/dist/core/mutators/shared/get-call-target.js +5 -0
- package/dist/core/mutators/shared/get-call-top.d.ts +12 -0
- package/dist/core/mutators/shared/get-call-top.js +5 -0
- package/dist/core/mutators/shared/get-callback-owner.d.ts +19 -0
- package/dist/core/mutators/shared/get-callback-owner.js +15 -0
- package/dist/core/mutators/shared/get-callback-result.d.ts +36 -0
- package/dist/core/mutators/shared/get-callback-result.js +15 -0
- package/dist/core/mutators/shared/get-canonical-falsy.d.ts +11 -0
- package/dist/core/mutators/shared/get-canonical-falsy.js +10 -0
- package/dist/core/mutators/shared/get-comparison-plan.d.ts +78 -0
- package/dist/core/mutators/shared/get-comparison-plan.js +383 -0
- package/dist/core/mutators/shared/get-condition-constants.d.ts +40 -0
- package/dist/core/mutators/shared/get-condition-constants.js +150 -0
- package/dist/core/mutators/shared/get-default-option-skip.d.ts +25 -0
- package/dist/core/mutators/shared/get-default-option-skip.js +89 -0
- package/dist/core/mutators/shared/get-fixed-truth.d.ts +15 -0
- package/dist/core/mutators/shared/get-fixed-truth.js +23 -0
- package/dist/core/mutators/shared/get-function-returns.d.ts +10 -0
- package/dist/core/mutators/shared/get-function-returns.js +7 -0
- package/dist/core/mutators/shared/get-group-constant.d.ts +32 -0
- package/dist/core/mutators/shared/get-group-constant.js +44 -0
- package/dist/core/mutators/shared/get-innermost.d.ts +22 -0
- package/dist/core/mutators/shared/get-innermost.js +11 -0
- package/dist/core/mutators/shared/get-leave-now-value.d.ts +17 -0
- package/dist/core/mutators/shared/get-leave-now-value.js +22 -0
- package/dist/core/mutators/shared/get-literal-flip.d.ts +18 -0
- package/dist/core/mutators/shared/get-literal-flip.js +10 -0
- package/dist/core/mutators/shared/get-literal-mutator.d.ts +10 -0
- package/dist/core/mutators/shared/get-literal-mutator.js +13 -0
- package/dist/core/mutators/shared/get-literal-skip.d.ts +38 -0
- package/dist/core/mutators/shared/get-literal-skip.js +61 -0
- package/dist/core/mutators/shared/get-literal-truth.d.ts +12 -0
- package/dist/core/mutators/shared/get-literal-truth.js +7 -0
- package/dist/core/mutators/shared/get-literal-value.d.ts +16 -0
- package/dist/core/mutators/shared/get-literal-value.js +23 -0
- package/dist/core/mutators/shared/get-logical-drops.d.ts +45 -0
- package/dist/core/mutators/shared/get-logical-drops.js +123 -0
- package/dist/core/mutators/shared/get-loop-running-skip.d.ts +9 -0
- package/dist/core/mutators/shared/get-loop-running-skip.js +7 -0
- package/dist/core/mutators/shared/get-negation-top.d.ts +25 -0
- package/dist/core/mutators/shared/get-negation-top.js +10 -0
- package/dist/core/mutators/shared/get-next-literal-value.d.ts +9 -0
- package/dist/core/mutators/shared/get-next-literal-value.js +9 -0
- package/dist/core/mutators/shared/get-nullish-directions.d.ts +32 -0
- package/dist/core/mutators/shared/get-nullish-directions.js +31 -0
- package/dist/core/mutators/shared/get-nullish-plan.d.ts +60 -0
- package/dist/core/mutators/shared/get-nullish-plan.js +94 -0
- package/dist/core/mutators/shared/get-nullish-swap-skip.d.ts +16 -0
- package/dist/core/mutators/shared/get-nullish-swap-skip.js +12 -0
- package/dist/core/mutators/shared/get-number-text.d.ts +16 -0
- package/dist/core/mutators/shared/get-number-text.js +19 -0
- package/dist/core/mutators/shared/get-or-default-skip.d.ts +18 -0
- package/dist/core/mutators/shared/get-or-default-skip.js +29 -0
- package/dist/core/mutators/shared/get-owned-constants.d.ts +17 -0
- package/dist/core/mutators/shared/get-owned-constants.js +39 -0
- package/dist/core/mutators/shared/get-owner-constant.d.ts +20 -0
- package/dist/core/mutators/shared/get-owner-constant.js +34 -0
- package/dist/core/mutators/shared/get-proven-comparison-value.d.ts +13 -0
- package/dist/core/mutators/shared/get-proven-comparison-value.js +24 -0
- package/dist/core/mutators/shared/get-return-switch.d.ts +33 -0
- package/dist/core/mutators/shared/get-return-switch.js +16 -0
- package/dist/core/mutators/shared/get-return-value-kind.d.ts +40 -0
- package/dist/core/mutators/shared/get-return-value-kind.js +47 -0
- package/dist/core/mutators/shared/get-returned-value.d.ts +10 -0
- package/dist/core/mutators/shared/get-returned-value.js +7 -0
- package/dist/core/mutators/shared/get-running-value.d.ts +31 -0
- package/dist/core/mutators/shared/get-running-value.js +25 -0
- package/dist/core/mutators/shared/get-shifted-literal.d.ts +25 -0
- package/dist/core/mutators/shared/get-shifted-literal.js +19 -0
- package/dist/core/mutators/shared/get-toward-mutant.d.ts +18 -0
- package/dist/core/mutators/shared/get-toward-mutant.js +66 -0
- package/dist/core/mutators/shared/get-type-view.d.ts +29 -0
- package/dist/core/mutators/shared/get-type-view.js +31 -0
- package/dist/core/mutators/shared/get-typeof-name.d.ts +10 -0
- package/dist/core/mutators/shared/get-typeof-name.js +20 -0
- package/dist/core/mutators/shared/has-defined-falsy-value.d.ts +10 -0
- package/dist/core/mutators/shared/has-defined-falsy-value.js +10 -0
- package/dist/core/mutators/shared/has-other-exit.d.ts +19 -0
- package/dist/core/mutators/shared/has-other-exit.js +56 -0
- package/dist/core/mutators/shared/has-polar-mutant.d.ts +34 -0
- package/dist/core/mutators/shared/has-polar-mutant.js +33 -0
- package/dist/core/mutators/shared/is-always-nullish.d.ts +9 -0
- package/dist/core/mutators/shared/is-always-nullish.js +5 -0
- package/dist/core/mutators/shared/is-always-truthy.d.ts +9 -0
- package/dist/core/mutators/shared/is-always-truthy.js +10 -0
- package/dist/core/mutators/shared/is-and-or.d.ts +11 -0
- package/dist/core/mutators/shared/is-and-or.js +4 -0
- package/dist/core/mutators/shared/is-boolean-mode-operand.d.ts +12 -0
- package/dist/core/mutators/shared/is-boolean-mode-operand.js +8 -0
- package/dist/core/mutators/shared/is-boolean-mode.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-mode.js +10 -0
- package/dist/core/mutators/shared/is-boolean-result-source.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-result-source.js +15 -0
- package/dist/core/mutators/shared/is-boolean-result.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-result.js +5 -0
- package/dist/core/mutators/shared/is-boolean-valued.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-valued.js +19 -0
- package/dist/core/mutators/shared/is-canonical-falsy.d.ts +13 -0
- package/dist/core/mutators/shared/is-canonical-falsy.js +8 -0
- package/dist/core/mutators/shared/is-comparator-result.d.ts +13 -0
- package/dist/core/mutators/shared/is-comparator-result.js +8 -0
- package/dist/core/mutators/shared/is-comparison-operand.d.ts +13 -0
- package/dist/core/mutators/shared/is-comparison-operand.js +7 -0
- package/dist/core/mutators/shared/is-comparison.d.ts +13 -0
- package/dist/core/mutators/shared/is-comparison.js +5 -0
- package/dist/core/mutators/shared/is-constant-eligible-group.d.ts +16 -0
- package/dist/core/mutators/shared/is-constant-eligible-group.js +15 -0
- package/dist/core/mutators/shared/is-expected-boolean.d.ts +14 -0
- package/dist/core/mutators/shared/is-expected-boolean.js +30 -0
- package/dist/core/mutators/shared/is-falsy-constant.d.ts +13 -0
- package/dist/core/mutators/shared/is-falsy-constant.js +11 -0
- package/dist/core/mutators/shared/is-global-identifier.d.ts +14 -0
- package/dist/core/mutators/shared/is-global-identifier.js +4 -0
- package/dist/core/mutators/shared/is-lookup-position.d.ts +14 -0
- package/dist/core/mutators/shared/is-lookup-position.js +10 -0
- package/dist/core/mutators/shared/is-negation.d.ts +10 -0
- package/dist/core/mutators/shared/is-negation.js +4 -0
- package/dist/core/mutators/shared/is-no-op-callback-constant.d.ts +15 -0
- package/dist/core/mutators/shared/is-no-op-callback-constant.js +10 -0
- package/dist/core/mutators/shared/is-no-op-callback-literal.d.ts +15 -0
- package/dist/core/mutators/shared/is-no-op-callback-literal.js +14 -0
- package/dist/core/mutators/shared/is-non-nullable.d.ts +10 -0
- package/dist/core/mutators/shared/is-non-nullable.js +5 -0
- package/dist/core/mutators/shared/is-non-number-type.d.ts +9 -0
- package/dist/core/mutators/shared/is-non-number-type.js +5 -0
- package/dist/core/mutators/shared/is-nullish-constant.d.ts +12 -0
- package/dist/core/mutators/shared/is-nullish-constant.js +12 -0
- package/dist/core/mutators/shared/is-number-literal.d.ts +9 -0
- package/dist/core/mutators/shared/is-number-literal.js +6 -0
- package/dist/core/mutators/shared/is-number-type.d.ts +10 -0
- package/dist/core/mutators/shared/is-number-type.js +9 -0
- package/dist/core/mutators/shared/is-numeric-pair.d.ts +11 -0
- package/dist/core/mutators/shared/is-numeric-pair.js +6 -0
- package/dist/core/mutators/shared/is-plain-return-value.d.ts +14 -0
- package/dist/core/mutators/shared/is-plain-return-value.js +15 -0
- package/dist/core/mutators/shared/is-tail-position.d.ts +16 -0
- package/dist/core/mutators/shared/is-tail-position.js +28 -0
- package/dist/core/mutators/shared/is-timer-wait.d.ts +15 -0
- package/dist/core/mutators/shared/is-timer-wait.js +5 -0
- package/dist/core/mutators/shared/is-truth-flipping-literal.d.ts +11 -0
- package/dist/core/mutators/shared/is-truth-flipping-literal.js +12 -0
- package/dist/core/mutators/shared/is-typed-by-method-name.d.ts +16 -0
- package/dist/core/mutators/shared/is-typed-by-method-name.js +26 -0
- package/dist/core/mutators/shared/is-void-operand.d.ts +12 -0
- package/dist/core/mutators/shared/is-void-operand.js +6 -0
- package/dist/core/mutators/shared/is-whole-body.d.ts +12 -0
- package/dist/core/mutators/shared/is-whole-body.js +5 -0
- package/dist/core/mutators/shared/leave-now-skip.d.ts +6 -0
- package/dist/core/mutators/shared/leave-now-skip.js +5 -0
- package/dist/core/mutators/shared/may-be-boolean.d.ts +9 -0
- package/dist/core/mutators/shared/may-be-boolean.js +6 -0
- package/dist/core/mutators/shared/may-be-nullish.d.ts +9 -0
- package/dist/core/mutators/shared/may-be-nullish.js +5 -0
- package/dist/core/mutators/shared/no-op-callback-skip.d.ts +6 -0
- package/dist/core/mutators/shared/no-op-callback-skip.js +5 -0
- package/dist/core/mutators/statement-removal.d.ts +23 -0
- package/dist/core/mutators/statement-removal.js +186 -0
- package/dist/core/mutators/string-literal.d.ts +27 -0
- package/dist/core/mutators/string-literal.js +138 -0
- package/dist/core/mutators/unary-operator.d.ts +14 -0
- package/dist/core/mutators/unary-operator.js +51 -0
- package/dist/core/mutators/update-operator.d.ts +13 -0
- package/dist/core/mutators/update-operator.js +29 -0
- package/dist/core/parser/collect-svelte-expressions.d.ts +19 -0
- package/dist/core/parser/collect-svelte-expressions.js +104 -0
- package/dist/core/parser/collect-vue-expressions.d.ts +22 -0
- package/dist/core/parser/collect-vue-expressions.js +69 -0
- package/dist/core/parser/create-comment-program.d.ts +19 -0
- package/dist/core/parser/create-comment-program.js +25 -0
- package/dist/core/parser/create-template-failure.d.ts +19 -0
- package/dist/core/parser/create-template-failure.js +19 -0
- package/dist/core/parser/find-vue-template.d.ts +10 -0
- package/dist/core/parser/find-vue-template.js +9 -0
- package/dist/core/parser/get-component-framework.d.ts +9 -0
- package/dist/core/parser/get-component-framework.js +5 -0
- package/dist/core/parser/get-parser-options.d.ts +9 -0
- package/dist/core/parser/get-parser-options.js +42 -0
- package/dist/core/parser/get-shared-scopes.d.ts +24 -0
- package/dist/core/parser/get-shared-scopes.js +8 -0
- package/dist/core/parser/get-source-blocks.d.ts +13 -0
- package/dist/core/parser/get-source-blocks.js +22 -0
- package/dist/core/parser/get-template-language.d.ts +11 -0
- package/dist/core/parser/get-template-language.js +4 -0
- package/dist/core/parser/is-declaration-file.d.ts +8 -0
- package/dist/core/parser/is-declaration-file.js +5 -0
- package/dist/core/parser/load-svelte-compiler.d.ts +9 -0
- package/dist/core/parser/load-svelte-compiler.js +13 -0
- package/dist/core/parser/load-vue-compiler.d.ts +10 -0
- package/dist/core/parser/load-vue-compiler.js +13 -0
- package/dist/core/parser/parse-component-template.d.ts +14 -0
- package/dist/core/parser/parse-component-template.js +8 -0
- package/dist/core/parser/parse-file.d.ts +34 -0
- package/dist/core/parser/parse-file.js +72 -0
- package/dist/core/parser/parse-svelte-template.d.ts +21 -0
- package/dist/core/parser/parse-svelte-template.js +17 -0
- package/dist/core/parser/parse-template-expressions.d.ts +60 -0
- package/dist/core/parser/parse-template-expressions.js +147 -0
- package/dist/core/parser/parse-vue-template.d.ts +20 -0
- package/dist/core/parser/parse-vue-template.js +20 -0
- package/dist/core/parser/read-template-program.d.ts +19 -0
- package/dist/core/parser/read-template-program.js +28 -0
- package/dist/core/parser/scan-script-blocks.d.ts +19 -0
- package/dist/core/parser/scan-script-blocks.js +267 -0
- package/dist/core/plugins/core-plugin.d.ts +6 -0
- package/dist/core/plugins/core-plugin.js +51 -0
- package/dist/core/plugins/create-mutator-registry.d.ts +17 -0
- package/dist/core/plugins/create-mutator-registry.js +31 -0
- package/dist/core/plugins/get-settings-problem.d.ts +9 -0
- package/dist/core/plugins/get-settings-problem.js +29 -0
- package/dist/core/plugins/is-kebab-case-name.d.ts +8 -0
- package/dist/core/plugins/is-kebab-case-name.js +5 -0
- package/dist/core/plugins/is-mutator-id.d.ts +9 -0
- package/dist/core/plugins/is-mutator-id.js +6 -0
- package/dist/core/plugins/is-mutator-setting.d.ts +9 -0
- package/dist/core/plugins/is-mutator-setting.js +5 -0
- package/dist/core/plugins/is-record.d.ts +8 -0
- package/dist/core/plugins/is-record.js +4 -0
- package/dist/core/plugins/resolve-preset.d.ts +31 -0
- package/dist/core/plugins/resolve-preset.js +60 -0
- package/dist/core/plugins/validate-plugin.d.ts +14 -0
- package/dist/core/plugins/validate-plugin.js +46 -0
- package/dist/core/presets/default-loggers.d.ts +6 -0
- package/dist/core/presets/default-loggers.js +8 -0
- package/dist/core/presets/recommended.d.ts +7 -0
- package/dist/core/presets/recommended.js +32 -0
- package/dist/core/presets/strict.d.ts +7 -0
- package/dist/core/presets/strict.js +28 -0
- package/dist/core/regex/can-match-empty.d.ts +14 -0
- package/dist/core/regex/can-match-empty.js +18 -0
- package/dist/core/regex/collect-pattern-changes.d.ts +24 -0
- package/dist/core/regex/collect-pattern-changes.js +133 -0
- package/dist/core/regex/compiles-regex.d.ts +9 -0
- package/dist/core/regex/compiles-regex.js +8 -0
- package/dist/core/regex/create-regex-replacement.d.ts +42 -0
- package/dist/core/regex/create-regex-replacement.js +36 -0
- package/dist/core/regex/create-regex-visitors.d.ts +15 -0
- package/dist/core/regex/create-regex-visitors.js +19 -0
- package/dist/core/regex/encode-pattern-text.d.ts +20 -0
- package/dist/core/regex/encode-pattern-text.js +25 -0
- package/dist/core/regex/find-open-repeat-scope.d.ts +26 -0
- package/dist/core/regex/find-open-repeat-scope.js +21 -0
- package/dist/core/regex/find-string-match-call.d.ts +15 -0
- package/dist/core/regex/find-string-match-call.js +12 -0
- package/dist/core/regex/get-regex-usage.d.ts +15 -0
- package/dist/core/regex/get-regex-usage.js +8 -0
- package/dist/core/regex/has-backreference.d.ts +10 -0
- package/dist/core/regex/has-backreference.js +8 -0
- package/dist/core/regex/has-capturing-group.d.ts +11 -0
- package/dist/core/regex/has-capturing-group.js +8 -0
- package/dist/core/regex/has-cased-character.d.ts +15 -0
- package/dist/core/regex/has-cased-character.js +29 -0
- package/dist/core/regex/has-named-group.d.ts +10 -0
- package/dist/core/regex/has-named-group.js +8 -0
- package/dist/core/regex/is-edge-wildcard.d.ts +20 -0
- package/dist/core/regex/is-edge-wildcard.js +10 -0
- package/dist/core/regex/is-mandatory-group.d.ts +16 -0
- package/dist/core/regex/is-mandatory-group.js +10 -0
- package/dist/core/regex/is-raw-template-text.d.ts +12 -0
- package/dist/core/regex/is-raw-template-text.js +13 -0
- package/dist/core/regex/is-valid-regex-literal.d.ts +14 -0
- package/dist/core/regex/is-valid-regex-literal.js +20 -0
- package/dist/core/regex/keeps-neighbor-tokens.d.ts +18 -0
- package/dist/core/regex/keeps-neighbor-tokens.js +29 -0
- package/dist/core/regex/load-regexpp.d.ts +15 -0
- package/dist/core/regex/load-regexpp.js +6 -0
- package/dist/core/regex/map-pattern-offsets.d.ts +11 -0
- package/dist/core/regex/map-pattern-offsets.js +9 -0
- package/dist/core/regex/map-string-units.d.ts +33 -0
- package/dist/core/regex/map-string-units.js +82 -0
- package/dist/core/regex/matches-any-character.d.ts +13 -0
- package/dist/core/regex/matches-any-character.js +22 -0
- package/dist/core/regex/parse-regex-pattern.d.ts +12 -0
- package/dist/core/regex/parse-regex-pattern.js +17 -0
- package/dist/core/regex/print-flags-edit.d.ts +33 -0
- package/dist/core/regex/print-flags-edit.js +38 -0
- package/dist/core/regex/print-pattern-edit.d.ts +34 -0
- package/dist/core/regex/print-pattern-edit.js +42 -0
- package/dist/core/regex/print-regex-literal.d.ts +9 -0
- package/dist/core/regex/print-regex-literal.js +4 -0
- package/dist/core/regex/read-regex-argument.d.ts +14 -0
- package/dist/core/regex/read-regex-argument.js +56 -0
- package/dist/core/regex/read-regex-call.d.ts +16 -0
- package/dist/core/regex/read-regex-call.js +27 -0
- package/dist/core/regex/read-regex-literal.d.ts +13 -0
- package/dist/core/regex/read-regex-literal.js +19 -0
- package/dist/core/regex/reads-regex-statics.d.ts +15 -0
- package/dist/core/regex/reads-regex-statics.js +5 -0
- package/dist/core/run/apply-batch-result.d.ts +40 -0
- package/dist/core/run/apply-batch-result.js +119 -0
- package/dist/core/run/apply-isolated-result.d.ts +34 -0
- package/dist/core/run/apply-isolated-result.js +61 -0
- package/dist/core/run/classify-mutants.d.ts +32 -0
- package/dist/core/run/classify-mutants.js +34 -0
- package/dist/core/run/classify-try.d.ts +20 -0
- package/dist/core/run/classify-try.js +28 -0
- package/dist/core/run/compare-dry-entries.d.ts +20 -0
- package/dist/core/run/compare-dry-entries.js +5 -0
- package/dist/core/run/compute-score.d.ts +11 -0
- package/dist/core/run/compute-score.js +11 -0
- package/dist/core/run/compute-static-cost.d.ts +11 -0
- package/dist/core/run/compute-static-cost.js +16 -0
- package/dist/core/run/count-run.d.ts +31 -0
- package/dist/core/run/count-run.js +19 -0
- package/dist/core/run/count-statuses.d.ts +11 -0
- package/dist/core/run/count-statuses.js +13 -0
- package/dist/core/run/count-verdicts.d.ts +16 -0
- package/dist/core/run/count-verdicts.js +32 -0
- package/dist/core/run/create-run-state.d.ts +67 -0
- package/dist/core/run/create-run-state.js +61 -0
- package/dist/core/run/create-work-directory.d.ts +21 -0
- package/dist/core/run/create-work-directory.js +14 -0
- package/dist/core/run/decide-evidence.d.ts +18 -0
- package/dist/core/run/decide-evidence.js +13 -0
- package/dist/core/run/decide-results.d.ts +20 -0
- package/dist/core/run/decide-results.js +45 -0
- package/dist/core/run/get-batch-unit-cost.d.ts +16 -0
- package/dist/core/run/get-batch-unit-cost.js +11 -0
- package/dist/core/run/get-display-path.d.ts +9 -0
- package/dist/core/run/get-display-path.js +5 -0
- package/dist/core/run/get-file-cost.d.ts +12 -0
- package/dist/core/run/get-file-cost.js +6 -0
- package/dist/core/run/get-final-status.d.ts +14 -0
- package/dist/core/run/get-final-status.js +8 -0
- package/dist/core/run/get-html-path.d.ts +19 -0
- package/dist/core/run/get-html-path.js +6 -0
- package/dist/core/run/get-package-directory.d.ts +9 -0
- package/dist/core/run/get-package-directory.js +12 -0
- package/dist/core/run/get-test-file-key.d.ts +15 -0
- package/dist/core/run/get-test-file-key.js +4 -0
- package/dist/core/run/get-try-limits.d.ts +18 -0
- package/dist/core/run/get-try-limits.js +8 -0
- package/dist/core/run/get-unit-evidence.d.ts +14 -0
- package/dist/core/run/get-unit-evidence.js +4 -0
- package/dist/core/run/index-module-tests.d.ts +15 -0
- package/dist/core/run/index-module-tests.js +11 -0
- package/dist/core/run/mark-outside-mutants.d.ts +14 -0
- package/dist/core/run/mark-outside-mutants.js +28 -0
- package/dist/core/run/number-chains.d.ts +8 -0
- package/dist/core/run/number-chains.js +8 -0
- package/dist/core/run/order-covering-tests.d.ts +15 -0
- package/dist/core/run/order-covering-tests.js +15 -0
- package/dist/core/run/plan-batch.d.ts +16 -0
- package/dist/core/run/plan-batch.js +48 -0
- package/dist/core/run/plan-isolated.d.ts +13 -0
- package/dist/core/run/plan-isolated.js +22 -0
- package/dist/core/run/preview-isolated-unit.d.ts +14 -0
- package/dist/core/run/preview-isolated-unit.js +17 -0
- package/dist/core/run/rank-module-files.d.ts +17 -0
- package/dist/core/run/rank-module-files.js +24 -0
- package/dist/core/run/rank-mutant-files.d.ts +21 -0
- package/dist/core/run/rank-mutant-files.js +26 -0
- package/dist/core/run/rank-test-file.d.ts +40 -0
- package/dist/core/run/rank-test-file.js +34 -0
- package/dist/core/run/read-dry-run.d.ts +20 -0
- package/dist/core/run/read-dry-run.js +53 -0
- package/dist/core/run/read-isolated-unit.d.ts +29 -0
- package/dist/core/run/read-isolated-unit.js +70 -0
- package/dist/core/run/read-test-imports.d.ts +12 -0
- package/dist/core/run/read-test-imports.js +26 -0
- package/dist/core/run/resolve-adapter.d.ts +34 -0
- package/dist/core/run/resolve-adapter.js +22 -0
- package/dist/core/run/route-isolated.d.ts +14 -0
- package/dist/core/run/route-isolated.js +6 -0
- package/dist/core/run/run-batch-phases.d.ts +16 -0
- package/dist/core/run/run-batch-phases.js +84 -0
- package/dist/core/run/run-dry-phase.d.ts +91 -0
- package/dist/core/run/run-dry-phase.js +204 -0
- package/dist/core/run/run-isolated-rounds.d.ts +26 -0
- package/dist/core/run/run-isolated-rounds.js +57 -0
- package/dist/core/run/select-run-files.d.ts +28 -0
- package/dist/core/run/select-run-files.js +30 -0
- package/dist/core/run/sort-test-files.d.ts +15 -0
- package/dist/core/run/sort-test-files.js +6 -0
- package/dist/core/run/sort-tests.d.ts +10 -0
- package/dist/core/run/sort-tests.js +5 -0
- package/dist/core/run/validate-adapter.d.ts +12 -0
- package/dist/core/run/validate-adapter.js +11 -0
- package/dist/core/run-mutants.d.ts +108 -0
- package/dist/core/run-mutants.js +326 -0
- package/dist/core/runtime/create-hit-limit-error.d.ts +9 -0
- package/dist/core/runtime/create-hit-limit-error.js +7 -0
- package/dist/core/runtime/index.d.ts +5 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/install-mutant-runtime.d.ts +13 -0
- package/dist/core/runtime/install-mutant-runtime.js +27 -0
- package/dist/core/runtime/is-hit-limit-error.d.ts +9 -0
- package/dist/core/runtime/is-hit-limit-error.js +4 -0
- package/dist/core/runtime/runtime-global.d.ts +5 -0
- package/dist/core/runtime/runtime-global.js +2 -0
- package/dist/core/runtime/runtime-symbol-key.d.ts +7 -0
- package/dist/core/runtime/runtime-symbol-key.js +2 -0
- package/dist/core/runtime/runtime-version.d.ts +6 -0
- package/dist/core/skips/skip-rules.d.ts +388 -0
- package/dist/core/skips/skip-rules.js +383 -0
- package/dist/core/syntax/advances-loop.d.ts +19 -0
- package/dist/core/syntax/advances-loop.js +62 -0
- package/dist/core/syntax/create-syntax-helpers.d.ts +49 -0
- package/dist/core/syntax/create-syntax-helpers.js +100 -0
- package/dist/core/syntax/find-compiler-pins.d.ts +18 -0
- package/dist/core/syntax/find-compiler-pins.js +79 -0
- package/dist/core/syntax/find-logging-calls.d.ts +21 -0
- package/dist/core/syntax/find-logging-calls.js +74 -0
- package/dist/core/syntax/find-message-texts.d.ts +13 -0
- package/dist/core/syntax/find-message-texts.js +10 -0
- package/dist/core/syntax/get-binding-closure.d.ts +36 -0
- package/dist/core/syntax/get-binding-closure.js +20 -0
- package/dist/core/syntax/get-chain-end.d.ts +12 -0
- package/dist/core/syntax/get-chain-end.js +6 -0
- package/dist/core/syntax/get-chain-root.d.ts +16 -0
- package/dist/core/syntax/get-chain-root.js +17 -0
- package/dist/core/syntax/get-checked-name.d.ts +19 -0
- package/dist/core/syntax/get-checked-name.js +9 -0
- package/dist/core/syntax/get-closed-initializer.d.ts +20 -0
- package/dist/core/syntax/get-closed-initializer.js +14 -0
- package/dist/core/syntax/get-collection-class.d.ts +28 -0
- package/dist/core/syntax/get-collection-class.js +34 -0
- package/dist/core/syntax/get-count-map.d.ts +18 -0
- package/dist/core/syntax/get-count-map.js +35 -0
- package/dist/core/syntax/get-enclosing-function.d.ts +12 -0
- package/dist/core/syntax/get-enclosing-function.js +8 -0
- package/dist/core/syntax/get-exited-loops.d.ts +25 -0
- package/dist/core/syntax/get-exited-loops.js +38 -0
- package/dist/core/syntax/get-fixed-initializer.d.ts +16 -0
- package/dist/core/syntax/get-fixed-initializer.js +7 -0
- package/dist/core/syntax/get-guard-bound.d.ts +28 -0
- package/dist/core/syntax/get-guard-bound.js +79 -0
- package/dist/core/syntax/get-logical-chain.d.ts +13 -0
- package/dist/core/syntax/get-logical-chain.js +10 -0
- package/dist/core/syntax/get-lower-bound.d.ts +12 -0
- package/dist/core/syntax/get-lower-bound.js +6 -0
- package/dist/core/syntax/get-match-regex.d.ts +26 -0
- package/dist/core/syntax/get-match-regex.js +48 -0
- package/dist/core/syntax/get-match-result-use.d.ts +29 -0
- package/dist/core/syntax/get-match-result-use.js +40 -0
- package/dist/core/syntax/get-member-path.d.ts +14 -0
- package/dist/core/syntax/get-member-path.js +30 -0
- package/dist/core/syntax/get-member-root.d.ts +12 -0
- package/dist/core/syntax/get-member-root.js +7 -0
- package/dist/core/syntax/get-named-groups-fact.d.ts +34 -0
- package/dist/core/syntax/get-named-groups-fact.js +44 -0
- package/dist/core/syntax/get-never-falsy-fact.d.ts +23 -0
- package/dist/core/syntax/get-never-falsy-fact.js +31 -0
- package/dist/core/syntax/get-result-slot.d.ts +14 -0
- package/dist/core/syntax/get-result-slot.js +7 -0
- package/dist/core/syntax/get-root-name.d.ts +10 -0
- package/dist/core/syntax/get-root-name.js +19 -0
- package/dist/core/syntax/get-statement-list.d.ts +14 -0
- package/dist/core/syntax/get-statement-list.js +13 -0
- package/dist/core/syntax/get-truth-only-name.d.ts +16 -0
- package/dist/core/syntax/get-truth-only-name.js +6 -0
- package/dist/core/syntax/get-value-bound.d.ts +48 -0
- package/dist/core/syntax/get-value-bound.js +192 -0
- package/dist/core/syntax/is-boolean-context.d.ts +20 -0
- package/dist/core/syntax/is-boolean-context.js +43 -0
- package/dist/core/syntax/is-caught-in-loop.d.ts +15 -0
- package/dist/core/syntax/is-caught-in-loop.js +19 -0
- package/dist/core/syntax/is-comparison-operator.d.ts +12 -0
- package/dist/core/syntax/is-comparison-operator.js +16 -0
- package/dist/core/syntax/is-condition-test.d.ts +12 -0
- package/dist/core/syntax/is-condition-test.js +7 -0
- package/dist/core/syntax/is-console-path.d.ts +11 -0
- package/dist/core/syntax/is-console-path.js +5 -0
- package/dist/core/syntax/is-effect-free.d.ts +11 -0
- package/dist/core/syntax/is-effect-free.js +20 -0
- package/dist/core/syntax/is-error-message.d.ts +17 -0
- package/dist/core/syntax/is-error-message.js +31 -0
- package/dist/core/syntax/is-for-each-result.d.ts +18 -0
- package/dist/core/syntax/is-for-each-result.js +12 -0
- package/dist/core/syntax/is-format-free.d.ts +14 -0
- package/dist/core/syntax/is-format-free.js +9 -0
- package/dist/core/syntax/is-function.d.ts +10 -0
- package/dist/core/syntax/is-function.js +9 -0
- package/dist/core/syntax/is-global-name.d.ts +20 -0
- package/dist/core/syntax/is-global-name.js +8 -0
- package/dist/core/syntax/is-global-type-name.d.ts +17 -0
- package/dist/core/syntax/is-global-type-name.js +13 -0
- package/dist/core/syntax/is-inside-try-block.d.ts +14 -0
- package/dist/core/syntax/is-inside-try-block.js +18 -0
- package/dist/core/syntax/is-joined-array.d.ts +21 -0
- package/dist/core/syntax/is-joined-array.js +27 -0
- package/dist/core/syntax/is-log-message.d.ts +18 -0
- package/dist/core/syntax/is-log-message.js +7 -0
- package/dist/core/syntax/is-logger-factory-call.d.ts +13 -0
- package/dist/core/syntax/is-logger-factory-call.js +21 -0
- package/dist/core/syntax/is-logger-label.d.ts +13 -0
- package/dist/core/syntax/is-logger-label.js +15 -0
- package/dist/core/syntax/is-logger-name.d.ts +11 -0
- package/dist/core/syntax/is-logger-name.js +8 -0
- package/dist/core/syntax/is-logging-call.d.ts +15 -0
- package/dist/core/syntax/is-logging-call.js +31 -0
- package/dist/core/syntax/is-logical-operand.d.ts +12 -0
- package/dist/core/syntax/is-logical-operand.js +5 -0
- package/dist/core/syntax/is-loop-advance-value.d.ts +20 -0
- package/dist/core/syntax/is-loop-advance-value.js +16 -0
- package/dist/core/syntax/is-loop-test.d.ts +12 -0
- package/dist/core/syntax/is-loop-test.js +7 -0
- package/dist/core/syntax/is-module-call.d.ts +12 -0
- package/dist/core/syntax/is-module-call.js +12 -0
- package/dist/core/syntax/is-non-thenable.d.ts +17 -0
- package/dist/core/syntax/is-non-thenable.js +18 -0
- package/dist/core/syntax/is-plain-message.d.ts +13 -0
- package/dist/core/syntax/is-plain-message.js +11 -0
- package/dist/core/syntax/is-presence-test.d.ts +16 -0
- package/dist/core/syntax/is-presence-test.js +19 -0
- package/dist/core/syntax/is-property-key.d.ts +13 -0
- package/dist/core/syntax/is-property-key.js +12 -0
- package/dist/core/syntax/is-read-chain.d.ts +12 -0
- package/dist/core/syntax/is-read-chain.js +13 -0
- package/dist/core/syntax/is-regex-only-tested.d.ts +23 -0
- package/dist/core/syntax/is-regex-only-tested.js +18 -0
- package/dist/core/syntax/is-result-unused.d.ts +19 -0
- package/dist/core/syntax/is-result-unused.js +13 -0
- package/dist/core/syntax/is-rune-call.d.ts +15 -0
- package/dist/core/syntax/is-rune-call.js +34 -0
- package/dist/core/syntax/is-statement.d.ts +9 -0
- package/dist/core/syntax/is-statement.js +5 -0
- package/dist/core/syntax/is-tested-loop.d.ts +9 -0
- package/dist/core/syntax/is-tested-loop.js +9 -0
- package/dist/core/syntax/is-timer-delay.d.ts +23 -0
- package/dist/core/syntax/is-timer-delay.js +39 -0
- package/dist/core/syntax/is-truth-test.d.ts +17 -0
- package/dist/core/syntax/is-truth-test.js +17 -0
- package/dist/core/syntax/is-value-position.d.ts +18 -0
- package/dist/core/syntax/is-value-position.js +83 -0
- package/dist/core/syntax/is-vue-macro-call.d.ts +11 -0
- package/dist/core/syntax/is-vue-macro-call.js +13 -0
- package/dist/core/syntax/is-write-target.d.ts +11 -0
- package/dist/core/syntax/is-write-target.js +15 -0
- package/dist/core/syntax/is-written-member.d.ts +13 -0
- package/dist/core/syntax/is-written-member.js +8 -0
- package/dist/core/syntax/never-empty-methods.d.ts +9 -0
- package/dist/core/syntax/never-empty-methods.js +8 -0
- package/dist/core/syntax/passes-truthiness.d.ts +13 -0
- package/dist/core/syntax/passes-truthiness.js +10 -0
- package/dist/core/syntax/read-import.d.ts +13 -0
- package/dist/core/syntax/read-import.js +19 -0
- package/dist/core/syntax/read-literal-type.d.ts +15 -0
- package/dist/core/syntax/read-literal-type.js +27 -0
- package/dist/core/syntax/read-number-literal.d.ts +9 -0
- package/dist/core/syntax/read-number-literal.js +6 -0
- package/dist/core/syntax/read-timer-call.d.ts +27 -0
- package/dist/core/syntax/read-timer-call.js +70 -0
- package/dist/core/syntax/resolve-closed-expression.d.ts +18 -0
- package/dist/core/syntax/resolve-closed-expression.js +9 -0
- package/dist/core/syntax/solve-value-bounds.d.ts +41 -0
- package/dist/core/syntax/solve-value-bounds.js +168 -0
- package/dist/core/text/blank-outside.d.ts +12 -0
- package/dist/core/text/blank-outside.js +10 -0
- package/dist/core/text/create-source-code.d.ts +16 -0
- package/dist/core/text/create-source-code.js +33 -0
- package/dist/core/text/edit-text.d.ts +17 -0
- package/dist/core/text/edit-text.js +12 -0
- package/dist/core/text/find-closest-name.d.ts +12 -0
- package/dist/core/text/find-closest-name.js +21 -0
- package/dist/core/text/find-last-start.d.ts +11 -0
- package/dist/core/text/find-last-start.js +9 -0
- package/dist/core/text/find-token-start.d.ts +14 -0
- package/dist/core/text/find-token-start.js +12 -0
- package/dist/core/text/get-line-starts.d.ts +8 -0
- package/dist/core/text/get-line-starts.js +7 -0
- package/dist/core/text/get-operator-range.d.ts +15 -0
- package/dist/core/text/get-operator-range.js +21 -0
- package/dist/core/text/get-source-position.d.ts +11 -0
- package/dist/core/text/get-source-position.js +9 -0
- package/dist/core/text/needs-grouping.d.ts +30 -0
- package/dist/core/text/needs-grouping.js +54 -0
- package/dist/core/text/needs-separator.d.ts +11 -0
- package/dist/core/text/needs-separator.js +15 -0
- package/dist/core/text/parse-expression.d.ts +16 -0
- package/dist/core/text/parse-expression.js +23 -0
- package/dist/core/text/pluralize.d.ts +8 -0
- package/dist/core/text/pluralize.js +4 -0
- package/dist/core/text/remove-list-element.d.ts +16 -0
- package/dist/core/text/remove-list-element.js +47 -0
- package/dist/core/text/replace-operator.d.ts +16 -0
- package/dist/core/text/replace-operator.js +82 -0
- package/dist/core/text/swap-string-quotes.d.ts +13 -0
- package/dist/core/text/swap-string-quotes.js +24 -0
- package/dist/core/tree/get-callee-name.d.ts +10 -0
- package/dist/core/tree/get-callee-name.js +6 -0
- package/dist/core/tree/get-context-slot.d.ts +14 -0
- package/dist/core/tree/get-context-slot.js +8 -0
- package/dist/core/tree/get-raw-slot.d.ts +13 -0
- package/dist/core/tree/get-raw-slot.js +6 -0
- package/dist/core/tree/get-slot.d.ts +14 -0
- package/dist/core/tree/get-slot.js +7 -0
- package/dist/core/tree/index-tree.d.ts +17 -0
- package/dist/core/tree/index-tree.js +56 -0
- package/dist/core/tree/is-expression-wrapper.d.ts +15 -0
- package/dist/core/tree/is-expression-wrapper.js +12 -0
- package/dist/core/tree/is-name-position.d.ts +10 -0
- package/dist/core/tree/is-name-position.js +17 -0
- package/dist/core/tree/unwrap-expression.d.ts +9 -0
- package/dist/core/tree/unwrap-expression.js +7 -0
- package/dist/core/tree/unwrap-parentheses.d.ts +9 -0
- package/dist/core/tree/unwrap-parentheses.js +6 -0
- package/dist/core/tree/walk-tree.d.ts +12 -0
- package/dist/core/tree/walk-tree.js +44 -0
- package/dist/docs/public/fonts/jetbrains-mono.js +2 -0
- package/dist/docs/public/fonts/sora-bold.js +2 -0
- package/dist/docs/public/fonts/sora-regular.js +2 -0
- package/dist/docs/styles/base.js +2 -0
- package/dist/docs/styles/colors.js +2 -0
- package/dist/docs/styles/fonts.js +2 -0
- package/dist/docs/styles/sizes.js +2 -0
- package/dist/docs/styles/spaces.js +2 -0
- package/dist/package.js +2 -0
- package/dist/types/adapter/adapter-context.d.ts +51 -0
- package/dist/types/adapter/adapter-session.d.ts +71 -0
- package/dist/types/adapter/batch-plan.d.ts +63 -0
- package/dist/types/adapter/batch-result.d.ts +80 -0
- package/dist/types/adapter/built-in-adapters.d.ts +31 -0
- package/dist/types/adapter/cache-inputs.d.ts +29 -0
- package/dist/types/adapter/dry-file.d.ts +83 -0
- package/dist/types/adapter/dry-run-request.d.ts +40 -0
- package/dist/types/adapter/dry-run-result.d.ts +53 -0
- package/dist/types/adapter/dry-test.d.ts +35 -0
- package/dist/types/adapter/isolated-plan.d.ts +42 -0
- package/dist/types/adapter/isolated-result.d.ts +84 -0
- package/dist/types/adapter/mutant-runtime.d.ts +40 -0
- package/dist/types/adapter/run-inputs.d.ts +20 -0
- package/dist/types/adapter/switched-file.d.ts +20 -0
- package/dist/types/adapter/test-adapter.d.ts +34 -0
- package/dist/types/adapter/try-facts.d.ts +63 -0
- package/dist/types/adapter/try-limits.d.ts +14 -0
- package/dist/types/adapter/unit-end.d.ts +25 -0
- package/dist/types/cache/cache-entry.d.ts +66 -0
- package/dist/types/cache/cached-inputs.d.ts +18 -0
- package/dist/types/cache/run-cache-file.d.ts +23 -0
- package/dist/types/cache/run-cache.d.ts +130 -0
- package/dist/types/cache/stored-cache.d.ts +16 -0
- package/dist/types/cli/line-part.d.ts +22 -0
- package/dist/types/cli/text-style.d.ts +21 -0
- package/dist/types/config/config.d.ts +36 -0
- package/dist/types/config/plugin.d.ts +17 -0
- package/dist/types/config/preset-settings.d.ts +43 -0
- package/dist/types/config/preset.d.ts +28 -0
- package/dist/types/config/run-config.d.ts +72 -0
- package/dist/types/config/run-settings.d.ts +38 -0
- package/dist/types/git/changed-lines.d.ts +15 -0
- package/dist/types/git/since-revision.d.ts +15 -0
- package/dist/types/hints/inferred-type.d.ts +19 -0
- package/dist/types/hints/type-hint-provider.d.ts +18 -0
- package/dist/types/hints/type-hints.d.ts +34 -0
- package/dist/types/hints/type-inference.d.ts +28 -0
- package/dist/types/hints/value-kind.d.ts +16 -0
- package/dist/types/html/file-view.d.ts +39 -0
- package/dist/types/html/indexed-file.d.ts +73 -0
- package/dist/types/html/indexed-mutant.d.ts +30 -0
- package/dist/types/html/indexed-mutator.d.ts +21 -0
- package/dist/types/html/indexed-skip.d.ts +31 -0
- package/dist/types/html/inline-script.d.ts +9 -0
- package/dist/types/html/mutants-filter.d.ts +26 -0
- package/dist/types/html/report-index.d.ts +49 -0
- package/dist/types/html/report-route.d.ts +48 -0
- package/dist/types/html/shown-change.d.ts +26 -0
- package/dist/types/html/tests-filter.d.ts +20 -0
- package/dist/types/mutant/diagnostic.d.ts +64 -0
- package/dist/types/mutant/file-mutants.d.ts +54 -0
- package/dist/types/mutant/ignore-directive.d.ts +46 -0
- package/dist/types/mutant/ignore-rule.d.ts +46 -0
- package/dist/types/mutant/ignore-source.d.ts +20 -0
- package/dist/types/mutant/mutant-candidate.d.ts +61 -0
- package/dist/types/mutant/mutant-range.d.ts +31 -0
- package/dist/types/mutant/mutant-status.d.ts +5 -0
- package/dist/types/mutant/mutant.d.ts +75 -0
- package/dist/types/mutant/skip-category.d.ts +16 -0
- package/dist/types/mutant/skip-justifier.d.ts +21 -0
- package/dist/types/mutant/skip-note.d.ts +30 -0
- package/dist/types/mutant/skip-rule-id.d.ts +6 -0
- package/dist/types/mutant/skip-rule.d.ts +17 -0
- package/dist/types/mutant/skipped-candidate.d.ts +65 -0
- package/dist/types/mutant/skipped-mutant.d.ts +71 -0
- package/dist/types/mutator/active-mutator.d.ts +10 -0
- package/dist/types/mutator/mutator-context.d.ts +58 -0
- package/dist/types/mutator/mutator-meta.d.ts +24 -0
- package/dist/types/mutator/mutator-registry.d.ts +16 -0
- package/dist/types/mutator/mutator-setting.d.ts +5 -0
- package/dist/types/mutator/mutator-visitors.d.ts +24 -0
- package/dist/types/mutator/mutator.d.ts +19 -0
- package/dist/types/mutator/regex-flag-options.d.ts +10 -0
- package/dist/types/mutator/regex-pattern-options.d.ts +28 -0
- package/dist/types/mutator/registered-mutator.d.ts +21 -0
- package/dist/types/mutator/replacement.d.ts +42 -0
- package/dist/types/regex/regex-call.d.ts +28 -0
- package/dist/types/regex/regex-change.d.ts +26 -0
- package/dist/types/regex/regex-source.d.ts +67 -0
- package/dist/types/report/file-score.d.ts +24 -0
- package/dist/types/report/html-report.d.ts +381 -0
- package/dist/types/report/list-report-diff.d.ts +28 -0
- package/dist/types/report/list-report-file.d.ts +20 -0
- package/dist/types/report/list-report-focus.d.ts +36 -0
- package/dist/types/report/list-report-justifier.d.ts +26 -0
- package/dist/types/report/list-report-mutant.d.ts +97 -0
- package/dist/types/report/list-report-mutator.d.ts +19 -0
- package/dist/types/report/list-report-skipped.d.ts +81 -0
- package/dist/types/report/list-report-summary.d.ts +46 -0
- package/dist/types/report/list-report.d.ts +66 -0
- package/dist/types/report/list-result.d.ts +39 -0
- package/dist/types/report/run-report.d.ts +336 -0
- package/dist/types/report/slim-list-report.d.ts +110 -0
- package/dist/types/report/slim-run-report.d.ts +196 -0
- package/dist/types/run/dry-analysis.d.ts +68 -0
- package/dist/types/run/isolated-evidence.d.ts +9 -0
- package/dist/types/run/isolated-reason.d.ts +25 -0
- package/dist/types/run/live-verdicts.d.ts +42 -0
- package/dist/types/run/module-cost.d.ts +25 -0
- package/dist/types/run/mutant-class.d.ts +28 -0
- package/dist/types/run/mutant-result.d.ts +82 -0
- package/dist/types/run/mutant-state.d.ts +131 -0
- package/dist/types/run/run-durations.d.ts +30 -0
- package/dist/types/run/run-event.d.ts +227 -0
- package/dist/types/run/run-kind.d.ts +10 -0
- package/dist/types/run/run-mode.d.ts +13 -0
- package/dist/types/run/run-result.d.ts +117 -0
- package/dist/types/run/run-score.d.ts +15 -0
- package/dist/types/run/run-state.d.ts +133 -0
- package/dist/types/run/run-status.d.ts +14 -0
- package/dist/types/run/status-counts.d.ts +5 -0
- package/dist/types/run/try-cause.d.ts +26 -0
- package/dist/types/run/try-verdict.d.ts +20 -0
- package/dist/types/source/component-framework.d.ts +4 -0
- package/dist/types/source/parse-settings.d.ts +23 -0
- package/dist/types/source/parsed-file.d.ts +49 -0
- package/dist/types/source/script-block.d.ts +26 -0
- package/dist/types/source/source-block.d.ts +12 -0
- package/dist/types/source/source-code.d.ts +101 -0
- package/dist/types/source/source-position.d.ts +14 -0
- package/dist/types/source/source-range.d.ts +14 -0
- package/dist/types/source/svelte-compiler.d.ts +7 -0
- package/dist/types/source/template-compilers.d.ts +17 -0
- package/dist/types/source/template-expression.d.ts +27 -0
- package/dist/types/source/template-outcome.d.ts +46 -0
- package/dist/types/source/template-parts.d.ts +17 -0
- package/dist/types/source/template-source.d.ts +20 -0
- package/dist/types/source/text-edit.d.ts +11 -0
- package/dist/types/source/vue-compiler.d.ts +7 -0
- package/dist/types/syntax/analyzed-program.d.ts +24 -0
- package/dist/types/syntax/binding-closure.d.ts +11 -0
- package/dist/types/syntax/binding.d.ts +53 -0
- package/dist/types/syntax/bound-evaluation.d.ts +33 -0
- package/dist/types/syntax/compiler-pin.d.ts +18 -0
- package/dist/types/syntax/count-map.d.ts +18 -0
- package/dist/types/syntax/imported-name.d.ts +15 -0
- package/dist/types/syntax/list-expression.d.ts +6 -0
- package/dist/types/syntax/literal-change.d.ts +27 -0
- package/dist/types/syntax/logging-call.d.ts +23 -0
- package/dist/types/syntax/match-regex.d.ts +18 -0
- package/dist/types/syntax/node-slot.d.ts +20 -0
- package/dist/types/syntax/operator-expression.d.ts +11 -0
- package/dist/types/syntax/read-check.d.ts +7 -0
- package/dist/types/syntax/scope-analysis.d.ts +42 -0
- package/dist/types/syntax/syntax-helpers.d.ts +292 -0
- package/dist/types/syntax/timer-call.d.ts +18 -0
- package/dist/types/syntax/timer-kind.d.ts +15 -0
- package/dist/types/syntax/tree-index.d.ts +18 -0
- package/dist/types/syntax/value-bound.d.ts +37 -0
- package/dist/types/syntax/value-bounds.d.ts +47 -0
- package/license.md +20 -0
- package/package.json +83 -6
- package/readme.md +132 -0
- package/skills/mootant/SKILL.md +232 -0
- package/skills/mootant/references/mutators.md +43 -0
- package/skills/readme.md +11 -0
- package/README.md +0 -45
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AdapterSession } from '../../types/adapter/adapter-session.js';
|
|
2
|
+
import { AdapterContext } from '../../types/adapter/adapter-context.js';
|
|
3
|
+
import { JestAdapterOptions } from './types/jest-adapter-options.js';
|
|
4
|
+
/**
|
|
5
|
+
* Starts a Jest session: finds the test command and the project's Jest, which
|
|
6
|
+
* must be 29.7 or later before any flag reaches it, filters the flags, reads
|
|
7
|
+
* the resolved configuration, checks it, picks the projects, and starts the
|
|
8
|
+
* host, the project's Jest parked in mootant's runner with global setup done.
|
|
9
|
+
* Variables of mootant's process, the command and the options reach Jest,
|
|
10
|
+
* without those named `MOOTANT_*`. The context's concurrency reaches Jest as
|
|
11
|
+
* `--maxWorkers`, so that a global setup sees it too. `detectOpenHandles` runs
|
|
12
|
+
* a plain Jest serially, and such projects are the ones with shared resources,
|
|
13
|
+
* so with no concurrency it reads as `-i`, while a concurrency, the user's own
|
|
14
|
+
* call, wins with a warning, as it does over `-i`. Dry runs and isolated units
|
|
15
|
+
* go to workers forked with the host's environment, as many at once as Jest's
|
|
16
|
+
* `maxWorkers`, and their tests print to the console plain Jest gives the
|
|
17
|
+
* project in a run of the whole suite, which the number of test files Jest
|
|
18
|
+
* found has a say in. A kept project gets a warning when ts-jest or
|
|
19
|
+
* jest-preset-angular, whose type check mootant turns off, is the first
|
|
20
|
+
* transformer whose pattern matches one of its test files, as Jest picks it. A
|
|
21
|
+
* host that exits before `close` stops the workers and rejects the running run
|
|
22
|
+
* and every later one, since what its global setup started died with it and
|
|
23
|
+
* every later failure would read as a kill. Closing the session stops the
|
|
24
|
+
* workers, then ends the host, which runs global teardown. What every verdict
|
|
25
|
+
* depends on beyond what a test file read is gathered when the core asks for
|
|
26
|
+
* it, after its dry runs, as it holds what the transformers, the test
|
|
27
|
+
* environments, the test runners and the projects' own resolvers read in them,
|
|
28
|
+
* joined with what they read in earlier sessions (`keepTransformReads`,
|
|
29
|
+
* `getJestCacheInputs`). Once the host is ready the session works with the
|
|
30
|
+
* configuration it ran global setup with (`readHostConfig`), the workers and
|
|
31
|
+
* the cache key alike.
|
|
32
|
+
*
|
|
33
|
+
* @param context - Work directory, concurrency, root and output.
|
|
34
|
+
* @param options - Options of the adapter.
|
|
35
|
+
* @returns Session that knows the version, workers, test files and cache
|
|
36
|
+
* inputs, and runs dry runs and isolated units.
|
|
37
|
+
* @throws {Error} When Jest is missing, older than 29.7 or fails to start, or
|
|
38
|
+
* when its settings or the command are not supported.
|
|
39
|
+
*/
|
|
40
|
+
export declare function startJestSession(context: AdapterContext, options: JestAdapterOptions): Promise<AdapterSession>;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { getJestCacheDirectory as e } from "./get-jest-cache-directory.js";
|
|
2
|
+
import { getJestBaseArguments as t } from "./get-jest-base-arguments.js";
|
|
3
|
+
import { filterJestArguments as n } from "./filter-jest-arguments.js";
|
|
4
|
+
import { resolveJestPackages as r } from "./resolve-jest-packages.js";
|
|
5
|
+
import { getJestCacheInputs as i } from "./get-jest-cache-inputs.js";
|
|
6
|
+
import { keepTransformReads as a } from "./keep-transform-reads.js";
|
|
7
|
+
import { writeWorkerSession as o } from "./write-worker-session.js";
|
|
8
|
+
import { listJestTestFiles as s } from "./list-jest-test-files.js";
|
|
9
|
+
import { checkJestSupport as c } from "./check-jest-support.js";
|
|
10
|
+
import { createWorkerPool as l } from "./create-worker-pool.js";
|
|
11
|
+
import { writeWorkerFiles as u } from "./write-worker-files.js";
|
|
12
|
+
import { listJestProjects as d } from "./list-jest-projects.js";
|
|
13
|
+
import { findJestCommand as f } from "./find-jest-command.js";
|
|
14
|
+
import { getJestConsole as p } from "./get-jest-console.js";
|
|
15
|
+
import { readJestConfig as m } from "./read-jest-config.js";
|
|
16
|
+
import { readHostConfig as h } from "./read-host-config.js";
|
|
17
|
+
import { startJestHost as g } from "./start-jest-host.js";
|
|
18
|
+
import { createHeapCap as _ } from "./create-heap-cap.js";
|
|
19
|
+
import { readTeardown as v } from "./read-teardown.js";
|
|
20
|
+
import { TS_JEST_PATH as y } from "./ts-jest-path.js";
|
|
21
|
+
import { runIsolated as b } from "./run-isolated.js";
|
|
22
|
+
import { startWorker as x } from "./start-worker.js";
|
|
23
|
+
import { runDry as S } from "./run-dry.js";
|
|
24
|
+
import { realpath as C } from "node:fs/promises";
|
|
25
|
+
async function w(w, T) {
|
|
26
|
+
let { concurrency: E, root: D } = w, O = Date.now(), k = await f(D, T.command), A = await r(D), j = Object.fromEntries(Object.entries({
|
|
27
|
+
...process.env,
|
|
28
|
+
...k.env,
|
|
29
|
+
...T.env
|
|
30
|
+
}).filter(([e]) => !e.startsWith("MOOTANT_")));
|
|
31
|
+
async function M(e) {
|
|
32
|
+
let r = n(k.args, e), i = {
|
|
33
|
+
onOutput(e) {
|
|
34
|
+
w.onOutput?.(e, null);
|
|
35
|
+
},
|
|
36
|
+
base: t(D, r.args, e),
|
|
37
|
+
nodeFlags: k.nodeFlags,
|
|
38
|
+
args: r.args,
|
|
39
|
+
bin: A.bin,
|
|
40
|
+
root: D,
|
|
41
|
+
env: j
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
config: await m(i),
|
|
45
|
+
filtered: r,
|
|
46
|
+
run: i
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
let N = await M(E);
|
|
50
|
+
E === null && N.config.globalConfig.detectOpenHandles && (N = await M(1));
|
|
51
|
+
let { filtered: P, config: F, run: I } = N;
|
|
52
|
+
c({
|
|
53
|
+
config: F,
|
|
54
|
+
env: j
|
|
55
|
+
});
|
|
56
|
+
let L = await C(D), R = d({
|
|
57
|
+
root: L,
|
|
58
|
+
config: F
|
|
59
|
+
}), z = await u(w.workDirectory), B = await g({
|
|
60
|
+
...I,
|
|
61
|
+
projects: R.projects,
|
|
62
|
+
files: z
|
|
63
|
+
}), { globalConfig: V, projects: H } = h({
|
|
64
|
+
globalConfig: F.globalConfig,
|
|
65
|
+
projects: R.projects,
|
|
66
|
+
ready: B.ready
|
|
67
|
+
}), U = B.ready.tests.some((e) => {
|
|
68
|
+
let { transform: t } = H.find((t) => t.config.id === e.project).config, n = t.find(([t]) => new RegExp(t).test(e.path));
|
|
69
|
+
return n !== void 0 && y.test(n[1]);
|
|
70
|
+
}), W = P.serial ?? (V.detectOpenHandles ? "detectOpenHandles" : null), G = {
|
|
71
|
+
ready: B.ready,
|
|
72
|
+
globalConfig: V,
|
|
73
|
+
projects: H
|
|
74
|
+
}, K;
|
|
75
|
+
try {
|
|
76
|
+
K = await o({
|
|
77
|
+
...G,
|
|
78
|
+
directory: z.directory,
|
|
79
|
+
root: L,
|
|
80
|
+
packages: A
|
|
81
|
+
});
|
|
82
|
+
} catch (e) {
|
|
83
|
+
throw await B.close(), e;
|
|
84
|
+
}
|
|
85
|
+
let q = _({
|
|
86
|
+
nodeFlags: k.nodeFlags,
|
|
87
|
+
env: B.ready.env
|
|
88
|
+
}), J = l({
|
|
89
|
+
start: (e, t) => x({
|
|
90
|
+
onOutput: (e, t) => {
|
|
91
|
+
w.onOutput?.(e, t);
|
|
92
|
+
},
|
|
93
|
+
heapCap: t ? null : q.current,
|
|
94
|
+
nodeFlags: k.nodeFlags,
|
|
95
|
+
session: K,
|
|
96
|
+
env: B.ready.env,
|
|
97
|
+
cwd: B.ready.cwd,
|
|
98
|
+
file: z.worker,
|
|
99
|
+
slot: e
|
|
100
|
+
}),
|
|
101
|
+
size: V.maxWorkers
|
|
102
|
+
}), Y = {
|
|
103
|
+
state: {
|
|
104
|
+
lateTransforms: /* @__PURE__ */ new Set(),
|
|
105
|
+
transforms: /* @__PURE__ */ new Set(),
|
|
106
|
+
outside: /* @__PURE__ */ new Set(),
|
|
107
|
+
noFacts: /* @__PURE__ */ new Set(),
|
|
108
|
+
reads: /* @__PURE__ */ new Map(),
|
|
109
|
+
timeouts: null,
|
|
110
|
+
plan: null,
|
|
111
|
+
plans: 0,
|
|
112
|
+
units: 0
|
|
113
|
+
},
|
|
114
|
+
consoles: new Map(H.map((e) => [e.name, p({
|
|
115
|
+
config: e.config,
|
|
116
|
+
tests: B.testCount,
|
|
117
|
+
globalConfig: V
|
|
118
|
+
})])),
|
|
119
|
+
freshWorkers: T.freshWorkers ?? !1,
|
|
120
|
+
directory: z.directory,
|
|
121
|
+
tests: B.ready.tests,
|
|
122
|
+
root: L,
|
|
123
|
+
projects: H,
|
|
124
|
+
context: w,
|
|
125
|
+
heap: q,
|
|
126
|
+
pool: J
|
|
127
|
+
}, X = (async () => {
|
|
128
|
+
let e = await B.died;
|
|
129
|
+
throw J.close(), e;
|
|
130
|
+
})();
|
|
131
|
+
X.catch(() => {});
|
|
132
|
+
async function Z(e) {
|
|
133
|
+
return await Promise.race([X, (async () => {
|
|
134
|
+
await e;
|
|
135
|
+
})()]), e;
|
|
136
|
+
}
|
|
137
|
+
let Q = null;
|
|
138
|
+
return {
|
|
139
|
+
diagnostics: [
|
|
140
|
+
...k.diagnostics,
|
|
141
|
+
...P.diagnostics,
|
|
142
|
+
...W !== null && E !== null && E > 1 ? [{
|
|
143
|
+
message: `--concurrency overrides ${W}, which keeps test files from running at once; tests that rely on it can fail or read as kills.`,
|
|
144
|
+
code: "config-overridden",
|
|
145
|
+
severity: "warning",
|
|
146
|
+
column: null,
|
|
147
|
+
line: null,
|
|
148
|
+
file: null
|
|
149
|
+
}] : [],
|
|
150
|
+
...R.diagnostics,
|
|
151
|
+
...U ? [{
|
|
152
|
+
message: "ts-jest's type check is off under mootant, so a test file's own type error passes, and a type error alone does not kill a mutant.",
|
|
153
|
+
code: "config-overridden",
|
|
154
|
+
severity: "warning",
|
|
155
|
+
column: null,
|
|
156
|
+
line: null,
|
|
157
|
+
file: null
|
|
158
|
+
}] : []
|
|
159
|
+
],
|
|
160
|
+
cacheInputs: () => Promise.resolve(i({
|
|
161
|
+
...G,
|
|
162
|
+
transforms: a({
|
|
163
|
+
directory: e(D),
|
|
164
|
+
reads: Y.state.transforms,
|
|
165
|
+
root: L,
|
|
166
|
+
started: O
|
|
167
|
+
}),
|
|
168
|
+
directory: z.directory,
|
|
169
|
+
consoles: Y.consoles,
|
|
170
|
+
args: P.args,
|
|
171
|
+
root: L,
|
|
172
|
+
packages: A,
|
|
173
|
+
command: k,
|
|
174
|
+
options: T
|
|
175
|
+
})),
|
|
176
|
+
close: () => (Q ??= (async () => (await J.close(), v(await B.close(), L)))(), Q),
|
|
177
|
+
runBatch: () => Promise.reject(/* @__PURE__ */ Error("The jest adapter has no batch mode.")),
|
|
178
|
+
runIsolated: (e) => Z(b(Y, e)),
|
|
179
|
+
dryRun: (e) => Z(S(Y, e)),
|
|
180
|
+
listTestFiles: () => s(G),
|
|
181
|
+
workers: V.maxWorkers,
|
|
182
|
+
version: A.version
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export { w as startJestSession };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { JestWorker } from './types/jest-worker.js';
|
|
2
|
+
/**
|
|
3
|
+
* Forks one worker with the host's environment and working directory, as the
|
|
4
|
+
* leader of a process group of its own. Each chunk of its output goes to
|
|
5
|
+
* `onOutput` with the test file of the unit last sent. The whole of standard
|
|
6
|
+
* error is searched for the words of V8, across chunks, since 11 KB of native
|
|
7
|
+
* stack follow them. The heap flag is also in `MOOTANT_HEAP_FLAG`, so that the
|
|
8
|
+
* worker can keep it from what a test starts.
|
|
9
|
+
*
|
|
10
|
+
* @param input - How to fork it.
|
|
11
|
+
* @param input.onOutput - Receives what the worker writes, with the test file
|
|
12
|
+
* of its last unit, or null before the first.
|
|
13
|
+
* @param input.env - Environment of the host.
|
|
14
|
+
* @param input.heapCap - Heap limit in megabytes, or null for none from
|
|
15
|
+
* mootant.
|
|
16
|
+
* @param input.nodeFlags - Node flags of the test command.
|
|
17
|
+
* @param input.session - Absolute path of `session.json`.
|
|
18
|
+
* @param input.file - Absolute path of the entry of a worker process.
|
|
19
|
+
* @param input.slot - Number of the slot, from 1.
|
|
20
|
+
* @param input.cwd - Working directory of the host.
|
|
21
|
+
* @returns The worker, which is booting.
|
|
22
|
+
*/
|
|
23
|
+
export declare function startWorker(input: {
|
|
24
|
+
onOutput(text: string, file: string | null): void;
|
|
25
|
+
env: Record<string, string>;
|
|
26
|
+
heapCap: number | null;
|
|
27
|
+
nodeFlags: string[];
|
|
28
|
+
session: string;
|
|
29
|
+
file: string;
|
|
30
|
+
slot: number;
|
|
31
|
+
cwd: string;
|
|
32
|
+
}): JestWorker;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { stopProcessGroup as e } from "../shared/stop-process-group.js";
|
|
2
|
+
import { waitForJestExit as t } from "./wait-for-jest-exit.js";
|
|
3
|
+
import { fork as n } from "node:child_process";
|
|
4
|
+
function r(r) {
|
|
5
|
+
let i = r.heapCap === null ? null : `--max-old-space-size=${r.heapCap}`, a = n(r.file, [], {
|
|
6
|
+
env: {
|
|
7
|
+
...r.env,
|
|
8
|
+
...i !== null && { MOOTANT_HEAP_FLAG: i },
|
|
9
|
+
MOOTANT_SLOT: String(r.slot),
|
|
10
|
+
MOOTANT_SESSION: r.session
|
|
11
|
+
},
|
|
12
|
+
execArgv: i === null ? r.nodeFlags : [...r.nodeFlags, i],
|
|
13
|
+
stdio: [
|
|
14
|
+
"ignore",
|
|
15
|
+
"pipe",
|
|
16
|
+
"pipe",
|
|
17
|
+
"ipc"
|
|
18
|
+
],
|
|
19
|
+
serialization: "json",
|
|
20
|
+
cwd: r.cwd,
|
|
21
|
+
detached: !0
|
|
22
|
+
}), o = "", s = !1, c = {
|
|
23
|
+
ready: new Promise((t, n) => {
|
|
24
|
+
let r = setTimeout(() => {
|
|
25
|
+
e(a.pid), t(!1);
|
|
26
|
+
}, 6e4);
|
|
27
|
+
a.on("message", (e) => {
|
|
28
|
+
e?.type === "ready" && (clearTimeout(r), t(!0));
|
|
29
|
+
}), a.once("exit", () => {
|
|
30
|
+
clearTimeout(r), t(!1);
|
|
31
|
+
}), a.on("error", (e) => {
|
|
32
|
+
clearTimeout(r), n(/* @__PURE__ */ Error(`A Jest worker could not start: ${e.message}.`));
|
|
33
|
+
});
|
|
34
|
+
}),
|
|
35
|
+
alive: () => a.pid !== void 0 && a.exitCode === null && a.signalCode === null,
|
|
36
|
+
outOfMemory: () => s && (a.signalCode === "SIGABRT" || a.exitCode === 134),
|
|
37
|
+
exited: t(a),
|
|
38
|
+
heapCap: r.heapCap,
|
|
39
|
+
file: null,
|
|
40
|
+
child: a
|
|
41
|
+
};
|
|
42
|
+
for (let e of [a.stdout, a.stderr]) e?.setEncoding("utf8"), e?.on("data", (e) => {
|
|
43
|
+
r.onOutput(e, c.file);
|
|
44
|
+
});
|
|
45
|
+
return a.stderr?.on("data", (e) => {
|
|
46
|
+
let t = o + e;
|
|
47
|
+
s ||= t.includes("heap out of memory"), o = t.slice(-18);
|
|
48
|
+
}), c;
|
|
49
|
+
}
|
|
50
|
+
export { r as startWorker };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names of the files in a directory that decide how transformers turn the files
|
|
3
|
+
* of a project into code: Babel's project-wide and file-relative ones and its
|
|
4
|
+
* ignore file, swc's, and Browserslist's, which Babel reads for its targets.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TRANSFORM_CONFIG_NAMES: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
"babel.config.js",
|
|
3
|
+
"babel.config.cjs",
|
|
4
|
+
"babel.config.mjs",
|
|
5
|
+
"babel.config.json",
|
|
6
|
+
"babel.config.cts",
|
|
7
|
+
"babel.config.ts",
|
|
8
|
+
"babel.config.mts",
|
|
9
|
+
".babelrc",
|
|
10
|
+
".babelrc.js",
|
|
11
|
+
".babelrc.cjs",
|
|
12
|
+
".babelrc.mjs",
|
|
13
|
+
".babelrc.json",
|
|
14
|
+
".babelrc.cts",
|
|
15
|
+
".babelignore",
|
|
16
|
+
".swcrc",
|
|
17
|
+
".browserslistrc",
|
|
18
|
+
"browserslist"
|
|
19
|
+
];
|
|
20
|
+
export { e as TRANSFORM_CONFIG_NAMES };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Real path that tells ts-jest, whose type check mootant turns off: it rejects
|
|
3
|
+
* switched text on a type error, and its language service would keep the text
|
|
4
|
+
* and reject the next test file too. The transformer of jest-preset-angular
|
|
5
|
+
* counts as ts-jest, since it extends ts-jest's and takes its options.
|
|
6
|
+
*/
|
|
7
|
+
export declare const TS_JEST_PATH: RegExp;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WorkerProject } from './worker-project.js';
|
|
2
|
+
/**
|
|
3
|
+
* Project as a worker holds it once it booted.
|
|
4
|
+
*/
|
|
5
|
+
export interface BootedProject extends WorkerProject {
|
|
6
|
+
/**
|
|
7
|
+
* The copy of the configuration a unit runs, by the path of its switch plan.
|
|
8
|
+
* A copy costs a stringify of a big configuration when Jest hashes it, and
|
|
9
|
+
* the plan path decides its identity.
|
|
10
|
+
*/
|
|
11
|
+
wrapped: Map<string | null, object>
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Jest's haste map of the project.
|
|
15
|
+
*/
|
|
16
|
+
moduleMap: unknown
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Jest's resolver of the project, made at boot: on Jest 29.7 making one loads
|
|
20
|
+
* graceful-fs, which patches `fs.close`, and doing that in a unit would dirty
|
|
21
|
+
* the first unit of every worker. Calls of its methods are counted
|
|
22
|
+
* (`countResolverCalls`).
|
|
23
|
+
*/
|
|
24
|
+
resolver: unknown
|
|
25
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The events of jest-circus the tracker reads, with as much of each as it
|
|
3
|
+
* reads; the other events reach the handler too and pass by.
|
|
4
|
+
*/
|
|
5
|
+
export type CircusEvent =
|
|
6
|
+
| {
|
|
7
|
+
/**
|
|
8
|
+
* Kind of the event: a hook failed.
|
|
9
|
+
*/
|
|
10
|
+
name: 'hook_failure'
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Hook that failed.
|
|
14
|
+
*/
|
|
15
|
+
hook: CircusHook
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* What the hook threw or rejected with, or the text of its timeout.
|
|
19
|
+
*/
|
|
20
|
+
error: unknown
|
|
21
|
+
}
|
|
22
|
+
| {
|
|
23
|
+
/**
|
|
24
|
+
* Kind of the event: an attempt of a test began running or ended.
|
|
25
|
+
*/
|
|
26
|
+
name: 'test_started' | 'test_done'
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Test of the attempt.
|
|
30
|
+
*/
|
|
31
|
+
test: CircusEventTest
|
|
32
|
+
}
|
|
33
|
+
| {
|
|
34
|
+
/**
|
|
35
|
+
* Value that was thrown or rejected with outside circus's own calls.
|
|
36
|
+
*/
|
|
37
|
+
error: unknown
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Kind of the event: an uncaught error came.
|
|
41
|
+
*/
|
|
42
|
+
name: 'error'
|
|
43
|
+
}
|
|
44
|
+
| {
|
|
45
|
+
/**
|
|
46
|
+
* Kind of the event: the file loaded and its tests are about to run, or
|
|
47
|
+
* they all ended and nothing adds to their errors any more.
|
|
48
|
+
*/
|
|
49
|
+
name: 'run_finish' | 'run_start'
|
|
50
|
+
}
|
|
51
|
+
| {
|
|
52
|
+
/**
|
|
53
|
+
* Whether the test is concurrent.
|
|
54
|
+
*/
|
|
55
|
+
concurrent: boolean
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Kind of the event: the file defined a test.
|
|
59
|
+
*/
|
|
60
|
+
name: 'add_test'
|
|
61
|
+
}
|
|
62
|
+
| {
|
|
63
|
+
/**
|
|
64
|
+
* Kind of the event: a hook began running.
|
|
65
|
+
*/
|
|
66
|
+
name: 'hook_start'
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Hook that began running.
|
|
70
|
+
*/
|
|
71
|
+
hook: CircusHook
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Test as these events carry it.
|
|
76
|
+
*/
|
|
77
|
+
interface CircusEventTest {
|
|
78
|
+
/**
|
|
79
|
+
* Own timeout in milliseconds; circus takes 0 and none for the default.
|
|
80
|
+
*/
|
|
81
|
+
timeout: undefined | number
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* What circus keeps for each failure: a value, or `[error, asyncError]`. It
|
|
85
|
+
* can grow after `test_done`.
|
|
86
|
+
*/
|
|
87
|
+
errors: unknown[]
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Hook as these events carry it.
|
|
92
|
+
*/
|
|
93
|
+
interface CircusHook {
|
|
94
|
+
/**
|
|
95
|
+
* When the hook runs.
|
|
96
|
+
*/
|
|
97
|
+
type: 'beforeEach' | 'beforeAll' | 'afterEach' | 'afterAll'
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Own timeout in milliseconds; circus takes 0 and none for the default.
|
|
101
|
+
*/
|
|
102
|
+
timeout: undefined | number
|
|
103
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the tracker reads of the state of jest-circus.
|
|
3
|
+
*/
|
|
4
|
+
export interface CircusState {
|
|
5
|
+
/**
|
|
6
|
+
* Block that holds the tests and blocks at the top of the file.
|
|
7
|
+
*/
|
|
8
|
+
rootDescribeBlock: CircusBlock
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Milliseconds a test or hook without its own timeout may run.
|
|
12
|
+
*/
|
|
13
|
+
testTimeout: number
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Block of tests.
|
|
18
|
+
*/
|
|
19
|
+
interface CircusBlock {
|
|
20
|
+
/**
|
|
21
|
+
* Tests and blocks in the order of their definition, until circus shuffles
|
|
22
|
+
* them after `run_start`.
|
|
23
|
+
*/
|
|
24
|
+
children: (CircusBlock | CircusTest)[]
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Kind of the child.
|
|
28
|
+
*/
|
|
29
|
+
type: 'describeBlock'
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Name of the block.
|
|
33
|
+
*/
|
|
34
|
+
name: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Test in the tree of blocks.
|
|
39
|
+
*/
|
|
40
|
+
interface CircusTest {
|
|
41
|
+
/**
|
|
42
|
+
* Kind of the child.
|
|
43
|
+
*/
|
|
44
|
+
type: 'test'
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Name of the test.
|
|
48
|
+
*/
|
|
49
|
+
name: string
|
|
50
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a thrown value comes from: `primitive` for what is no object or
|
|
3
|
+
* function, as a timeout of circus is; `host` for an error of the worker's own
|
|
4
|
+
* realm; `current` for one of the vm of the running unit; `stale` for one of
|
|
5
|
+
* the vm of a unit that ended; `other` for the rest.
|
|
6
|
+
*/
|
|
7
|
+
export type ErrorRealm = 'primitive' | 'current' | 'stale' | 'other' | 'host'
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How Jest's parser reads the words after a flag: `boolean` takes `true` or
|
|
3
|
+
* `false`, `bail` also a number, `value` one word that is not a flag, `array`
|
|
4
|
+
* every word up to the next flag, also after `=`.
|
|
5
|
+
*/
|
|
6
|
+
export type FlagKind = 'boolean' | 'value' | 'array' | 'bail'
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ErrorRealm } from './error-realm.js';
|
|
2
|
+
/**
|
|
3
|
+
* A test with all its attempts, which is what a try means to the core.
|
|
4
|
+
*/
|
|
5
|
+
export interface FoldedTest {
|
|
6
|
+
/**
|
|
7
|
+
* Where the failure of the last attempt comes from, or null when it passed.
|
|
8
|
+
*/
|
|
9
|
+
realm: ErrorRealm | null
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* First line of the failure of the last attempt, or null when it passed.
|
|
13
|
+
*/
|
|
14
|
+
message: string | null
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Earlier tests of the file with the same full name.
|
|
18
|
+
*/
|
|
19
|
+
occurrence: number
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Whether the last attempt ran past its timeout.
|
|
23
|
+
*/
|
|
24
|
+
timedOut: boolean
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Ids of the sites any attempt evaluated, sorted.
|
|
28
|
+
*/
|
|
29
|
+
covers: string[]
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Milliseconds of all attempts.
|
|
33
|
+
*/
|
|
34
|
+
duration: number
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Whether the active mutant was reached by the end of the last attempt.
|
|
38
|
+
*/
|
|
39
|
+
reached: boolean
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Whether the last attempt failed.
|
|
43
|
+
*/
|
|
44
|
+
failed: boolean
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Full name of the test with its blocks, joined by `>`.
|
|
48
|
+
*/
|
|
49
|
+
name: string
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Site evaluations of all attempts.
|
|
53
|
+
*/
|
|
54
|
+
hits: number
|
|
55
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Heap limit of the new workers of a session.
|
|
3
|
+
*/
|
|
4
|
+
export interface HeapCap {
|
|
5
|
+
/**
|
|
6
|
+
* Raises `current` past the cap of a worker that ran out of memory, up to the
|
|
7
|
+
* top, so several workers dying at one cap raise it once.
|
|
8
|
+
*
|
|
9
|
+
* @param from - Cap of that worker.
|
|
10
|
+
*/
|
|
11
|
+
raise(from: number): void
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Megabytes a new worker gets, or null for good when the project gives its
|
|
15
|
+
* own limit.
|
|
16
|
+
*/
|
|
17
|
+
current: number | null
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JestProjectConfig } from './jest-project-config.js';
|
|
2
|
+
import { JestModuleMap } from './jest-module-map.js';
|
|
3
|
+
/**
|
|
4
|
+
* What the host's runner reads of a test file Jest hands it.
|
|
5
|
+
*/
|
|
6
|
+
export interface HostTest {
|
|
7
|
+
/**
|
|
8
|
+
* Project of the test file.
|
|
9
|
+
*/
|
|
10
|
+
context: {
|
|
11
|
+
/**
|
|
12
|
+
* Haste map of the project.
|
|
13
|
+
*/
|
|
14
|
+
moduleMap: { toJSON(): JestModuleMap }
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Configuration of the project, as Jest resolved it in this process.
|
|
18
|
+
*/
|
|
19
|
+
config: JestProjectConfig
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Absolute path of the test file.
|
|
24
|
+
*/
|
|
25
|
+
path: string
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings of `jestAdapter()`, which runs mutants with the project's Jest.
|
|
3
|
+
*/
|
|
4
|
+
export interface JestAdapterOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Extra environment variables of the Jest processes.
|
|
7
|
+
*/
|
|
8
|
+
env?: Record<string, string>
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Replaces the worker after every unit: slower, and nothing stays in a worker
|
|
12
|
+
* between units; what global setup started and what is on disk stay shared.
|
|
13
|
+
*/
|
|
14
|
+
freshWorkers?: boolean
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Test command as a `package.json` script has it, such as `jest --config
|
|
18
|
+
* jest.unit.js`; it is parsed, never run. Found in the test scripts of
|
|
19
|
+
* `package.json` when omitted.
|
|
20
|
+
*/
|
|
21
|
+
command?: string
|
|
22
|
+
}
|