mootant 0.0.0 → 0.2.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 +26 -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 +174 -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 +62 -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 +40 -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 +54 -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 +29 -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 +74 -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 +36 -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 +62 -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/create-input-filter.d.ts +26 -0
- package/dist/adapters/shared/create-input-filter.js +32 -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 +16 -0
- package/dist/adapters/shared/track-file-inputs.js +30 -0
- package/dist/adapters/shared/track-file-reads.d.ts +42 -0
- package/dist/adapters/shared/track-file-reads.js +243 -0
- package/dist/adapters/shared/track-inputs.d.ts +23 -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 +26 -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 +30 -0
- package/dist/adapters/vitest/collect-dependencies.js +39 -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 +77 -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/is-virtual-module.d.ts +11 -0
- package/dist/adapters/vitest/is-virtual-module.js +8 -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 +14 -0
- package/dist/adapters/vitest/read-out-files.js +9 -0
- package/dist/adapters/vitest/read-out-records.d.ts +17 -0
- package/dist/adapters/vitest/read-out-records.js +27 -0
- package/dist/adapters/vitest/read-strays.d.ts +20 -0
- package/dist/adapters/vitest/read-strays.js +53 -0
- package/dist/adapters/vitest/read-unit-inputs.d.ts +33 -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 +41 -0
- package/dist/adapters/vitest/run-plan.js +60 -0
- package/dist/adapters/vitest/run-specifications.d.ts +24 -0
- package/dist/adapters/vitest/run-specifications.js +19 -0
- package/dist/adapters/vitest/runner.d.ts +464 -0
- package/dist/adapters/vitest/runner.js +360 -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/stray-decisions.d.ts +8 -0
- package/dist/adapters/vitest/types/unit-outcome.d.ts +27 -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 +317 -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/encode-stray.d.ts +16 -0
- package/dist/adapters/vitest/worker/encode-stray.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/intercept-strays.d.ts +26 -0
- package/dist/adapters/vitest/worker/intercept-strays.js +13 -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 +37 -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/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/get-built-in-adapters.d.ts +15 -0
- package/dist/cli/get-built-in-adapters.js +29 -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 +12 -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/count-terminal-rows.d.ts +13 -0
- package/dist/cli/terminal/count-terminal-rows.js +7 -0
- package/dist/cli/terminal/create-colors.d.ts +59 -0
- package/dist/cli/terminal/create-colors.js +26 -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 +15 -0
- package/dist/core/cache/hash-files.js +23 -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 +114 -0
- package/dist/core/cache/prepare-run-cache.js +105 -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 +34 -0
- package/dist/core/cache/save-run-cache.js +55 -0
- package/dist/core/cache/unknown-hash.d.ts +7 -0
- package/dist/core/cache/unknown-hash.js +2 -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 +20 -0
- package/dist/core/files/select-changed-mutants.js +47 -0
- package/dist/core/generate/apply-solitary-rule.d.ts +33 -0
- package/dist/core/generate/apply-solitary-rule.js +55 -0
- package/dist/core/generate/collect-candidates.d.ts +148 -0
- package/dist/core/generate/collect-candidates.js +247 -0
- package/dist/core/generate/compare-candidates.d.ts +18 -0
- package/dist/core/generate/compare-candidates.js +4 -0
- package/dist/core/generate/compare-targets.d.ts +14 -0
- package/dist/core/generate/compare-targets.js +6 -0
- package/dist/core/generate/deduplicate-candidates.d.ts +32 -0
- package/dist/core/generate/deduplicate-candidates.js +27 -0
- package/dist/core/generate/find-list-removal.d.ts +20 -0
- package/dist/core/generate/find-list-removal.js +26 -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 +226 -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-mutant-site.d.ts +18 -0
- package/dist/core/generate/get-mutant-site.js +4 -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/get-target.d.ts +14 -0
- package/dist/core/generate/get-target.js +4 -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/pick-host.d.ts +10 -0
- package/dist/core/generate/pick-host.js +16 -0
- package/dist/core/generate/validate-replacement.d.ts +28 -0
- package/dist/core/generate/validate-replacement.js +44 -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 +32 -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-attribute-values.d.ts +12 -0
- package/dist/core/instrument/find-attribute-values.js +13 -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-syntax.d.ts +14 -0
- package/dist/core/instrument/get-site-syntax.js +12 -0
- package/dist/core/instrument/group-mutant-ranges.d.ts +18 -0
- package/dist/core/instrument/group-mutant-ranges.js +30 -0
- package/dist/core/instrument/instrument-file.d.ts +41 -0
- package/dist/core/instrument/instrument-file.js +22 -0
- package/dist/core/instrument/instrumenter-version.d.ts +6 -0
- package/dist/core/instrument/render-branch.d.ts +17 -0
- package/dist/core/instrument/render-branch.js +81 -0
- package/dist/core/instrument/render-mutant-range.d.ts +33 -0
- package/dist/core/instrument/render-mutant-range.js +44 -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 +56 -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 +14 -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 +189 -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 +15 -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 +10 -0
- package/dist/core/mutators/object-property.js +18 -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 +248 -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 +29 -0
- package/dist/core/mutators/shared/get-branch-copy-skip.js +41 -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-default.d.ts +32 -0
- package/dist/core/mutators/shared/get-canonical-falsy-default.js +11 -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 +384 -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-endless-value.d.ts +20 -0
- package/dist/core/mutators/shared/get-endless-value.js +25 -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-forced-test-justifier.d.ts +44 -0
- package/dist/core/mutators/shared/get-forced-test-justifier.js +25 -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 +121 -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 +22 -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 +32 -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 +26 -0
- package/dist/core/mutators/shared/get-toward-mutant.js +71 -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 +36 -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-loop-exit.d.ts +20 -0
- package/dist/core/mutators/shared/is-loop-exit.js +32 -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-read-only.d.ts +26 -0
- package/dist/core/mutators/shared/is-read-only.js +53 -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 +24 -0
- package/dist/core/mutators/statement-removal.js +182 -0
- package/dist/core/mutators/string-literal.d.ts +37 -0
- package/dist/core/mutators/string-literal.js +167 -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 +9 -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 +41 -0
- package/dist/core/run/apply-batch-result.js +119 -0
- package/dist/core/run/apply-isolated-result.d.ts +35 -0
- package/dist/core/run/apply-isolated-result.js +62 -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 +21 -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-test-file-limits.d.ts +13 -0
- package/dist/core/run/get-test-file-limits.js +13 -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 +17 -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 +19 -0
- package/dist/core/run/plan-batch.js +53 -0
- package/dist/core/run/plan-isolated.d.ts +15 -0
- package/dist/core/run/plan-isolated.js +16 -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 +17 -0
- package/dist/core/run/run-batch-phases.js +84 -0
- package/dist/core/run/run-dry-phase.d.ts +107 -0
- package/dist/core/run/run-dry-phase.js +254 -0
- package/dist/core/run/run-isolated-rounds.d.ts +27 -0
- package/dist/core/run/run-isolated-rounds.js +58 -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 +113 -0
- package/dist/core/run-mutants.js +334 -0
- package/dist/core/runtime/create-hit-limit-error.d.ts +11 -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 +44 -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 +392 -0
- package/dist/core/skips/skip-rules.js +387 -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-brace-sensitive-attribute.d.ts +18 -0
- package/dist/core/syntax/is-brace-sensitive-attribute.js +28 -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-spread-safe-member.d.ts +18 -0
- package/dist/core/syntax/is-spread-safe-member.js +18 -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 +20 -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-list-removal-range.d.ts +22 -0
- package/dist/core/text/get-list-removal-range.js +46 -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/is-plain-attribute-string.d.ts +10 -0
- package/dist/core/text/is-plain-attribute-string.js +5 -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 +20 -0
- package/dist/core/text/parse-expression.js +24 -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 +14 -0
- package/dist/core/text/remove-list-element.js +6 -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 +84 -0
- package/dist/types/adapter/dry-run-request.d.ts +41 -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 +69 -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 +80 -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 +32 -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 +27 -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/list-removal.d.ts +37 -0
- package/dist/types/mutant/mutant-candidate.d.ts +55 -0
- package/dist/types/mutant/mutant-host.d.ts +49 -0
- package/dist/types/mutant/mutant-kind.d.ts +18 -0
- package/dist/types/mutant/mutant-range.d.ts +38 -0
- package/dist/types/mutant/mutant-status.d.ts +5 -0
- package/dist/types/mutant/mutant.d.ts +69 -0
- package/dist/types/mutant/site-syntax.d.ts +14 -0
- package/dist/types/mutant/skip-category.d.ts +16 -0
- package/dist/types/mutant/skip-justifier.d.ts +23 -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 +68 -0
- package/dist/types/mutant/skipped-mutant.d.ts +74 -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 +53 -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 +384 -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 +37 -0
- package/dist/types/report/list-report-justifier.d.ts +28 -0
- package/dist/types/report/list-report-mutant.d.ts +103 -0
- package/dist/types/report/list-report-mutator.d.ts +19 -0
- package/dist/types/report/list-report-skipped.d.ts +82 -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 +113 -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 +26 -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 +11 -0
- package/dist/types/run/run-mode.d.ts +13 -0
- package/dist/types/run/run-result.d.ts +120 -0
- package/dist/types/run/run-score.d.ts +15 -0
- package/dist/types/run/run-state.d.ts +141 -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 +28 -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 +294 -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 +234 -0
- package/skills/mootant/references/mutators.md +45 -0
- package/skills/readme.md +11 -0
- package/README.md +0 -45
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { installMutantRuntime as e } from "../../core/runtime/install-mutant-runtime.js";
|
|
2
|
+
import { watchWorkerClose as t } from "./worker/watch-worker-close.js";
|
|
3
|
+
import { listDependencies as n } from "./worker/list-dependencies.js";
|
|
4
|
+
import { getErrorMessage as r } from "../shared/get-error-message.js";
|
|
5
|
+
import { VITEST_VARIABLES as i } from "./worker/vitest-variables.js";
|
|
6
|
+
import { interceptStrays as a } from "./worker/intercept-strays.js";
|
|
7
|
+
import { readWorkerPlan as o } from "./worker/read-worker-plan.js";
|
|
8
|
+
import { raceTryTimeout as s } from "./worker/race-try-timeout.js";
|
|
9
|
+
import { writeOutRecord as c } from "./worker/write-out-record.js";
|
|
10
|
+
import { installTryHook as l } from "./worker/install-try-hook.js";
|
|
11
|
+
import { writeHeartbeat as u } from "./worker/write-heartbeat.js";
|
|
12
|
+
import { findHookError as d } from "./worker/find-hook-error.js";
|
|
13
|
+
import { getHookBudget as f } from "./worker/get-hook-budget.js";
|
|
14
|
+
import { readTryFacts as p } from "./worker/read-try-facts.js";
|
|
15
|
+
import { captureClock as m } from "../shared/capture-clock.js";
|
|
16
|
+
import { trackInputs as h } from "../shared/track-inputs.js";
|
|
17
|
+
import { getFileHash as g } from "./worker/get-file-hash.js";
|
|
18
|
+
import { waitForTurn as _ } from "./worker/wait-for-turn.js";
|
|
19
|
+
import { encodeStray as v } from "./worker/encode-stray.js";
|
|
20
|
+
import { orderTests as y } from "./worker/order-tests.js";
|
|
21
|
+
import { claimUnit as b } from "./worker/claim-unit.js";
|
|
22
|
+
import { listTests as x } from "./worker/list-tests.js";
|
|
23
|
+
import { createRequire as S } from "node:module";
|
|
24
|
+
import { closeSync as C, openSync as w, rmSync as T, writeFileSync as E } from "node:fs";
|
|
25
|
+
import D from "node:path";
|
|
26
|
+
import { createHash as O } from "node:crypto";
|
|
27
|
+
import { builtinEnvironments as k } from "vitest/runtime";
|
|
28
|
+
import { TestRunner as A } from "vitest";
|
|
29
|
+
const j = 2 ** 31 - 1;
|
|
30
|
+
let M = m();
|
|
31
|
+
var N = class extends A {
|
|
32
|
+
coverSink = { add: (e) => {
|
|
33
|
+
for (let t of this.activeCovers) t.add(e);
|
|
34
|
+
} };
|
|
35
|
+
runtime = e();
|
|
36
|
+
records = /* @__PURE__ */ new Map();
|
|
37
|
+
hookBudgets = /* @__PURE__ */ new Map();
|
|
38
|
+
planned = /* @__PURE__ */ new Map();
|
|
39
|
+
loadCovers = /* @__PURE__ */ new Set();
|
|
40
|
+
loadStrays = [];
|
|
41
|
+
inside = {
|
|
42
|
+
hits: 0,
|
|
43
|
+
from: 0
|
|
44
|
+
};
|
|
45
|
+
options;
|
|
46
|
+
dependencies = null;
|
|
47
|
+
beatDescriptor = null;
|
|
48
|
+
inputs = null;
|
|
49
|
+
killed = /* @__PURE__ */ new Set();
|
|
50
|
+
runnable = null;
|
|
51
|
+
activeCovers = [];
|
|
52
|
+
lastMutant = null;
|
|
53
|
+
hookError = null;
|
|
54
|
+
loadError = null;
|
|
55
|
+
batch = null;
|
|
56
|
+
lastTest = null;
|
|
57
|
+
sequential;
|
|
58
|
+
out = null;
|
|
59
|
+
beatFile;
|
|
60
|
+
endsInTeardown = !1;
|
|
61
|
+
endsOnClose = !1;
|
|
62
|
+
filesEnded = !1;
|
|
63
|
+
concurrent = !1;
|
|
64
|
+
abandoned = !1;
|
|
65
|
+
outsideBudget = 0;
|
|
66
|
+
loadDuration = 0;
|
|
67
|
+
outsideHits = 0;
|
|
68
|
+
bailed = !1;
|
|
69
|
+
beatLength = 0;
|
|
70
|
+
strayCount = 0;
|
|
71
|
+
unitIndex = 0;
|
|
72
|
+
outName = "";
|
|
73
|
+
sequence = 0;
|
|
74
|
+
started = 0;
|
|
75
|
+
booted = 0;
|
|
76
|
+
budget = 0;
|
|
77
|
+
file = "";
|
|
78
|
+
constructor(e) {
|
|
79
|
+
super(e), this.options = this.injectValue("mootant");
|
|
80
|
+
let { directory: n, repeat: i, mode: o } = this.options;
|
|
81
|
+
this.sequential = o === "batch" || o === "dry" && i, this.beatFile = D.join(n, "beat", `${process.pid}.json`), C(w(D.join(n, "worker", String(process.pid)), "w")), a(Reflect.get(this, "workerState"), (e, t) => {
|
|
82
|
+
this.onStray(e, t);
|
|
83
|
+
});
|
|
84
|
+
let s = this.onCleanupWorkerContext;
|
|
85
|
+
if (s !== void 0) {
|
|
86
|
+
let e = Reflect.get(this, "workerState"), n = t(Reflect.get(e.ctx, "traces"));
|
|
87
|
+
this.onCleanupWorkerContext = (e) => {
|
|
88
|
+
this.endsInTeardown = !0, n !== null && (this.endsOnClose = !0, n((e) => {
|
|
89
|
+
e !== null && (this.hookError ??= r(e.error)), this.finishUnit();
|
|
90
|
+
})), s(() => this.tearDown(e));
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
async onBeforeCollect(e) {
|
|
95
|
+
let { runtime: t, options: n } = this, r = e[0];
|
|
96
|
+
this.file = r, this.started = M.now(), this.booted = performance.timeOrigin + this.started, t.hitLimit = Infinity, t.coverage = null, t.reached = !1, t.active = null, t.hits = 0;
|
|
97
|
+
let i = g(r, this.config.name ?? ""), a = D.join(n.directory, "out");
|
|
98
|
+
if (n.mode === "dry") {
|
|
99
|
+
t.coverage = this.loadCovers, this.outName = `${i}-${process.pid}`, this.out = w(D.join(a, `${this.outName}.jsonl`), "a"), this.beat(n.timeouts.file, null), this.startTracking(!0);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
let s = o(n.directory, i), c = s === null ? null : b(n.directory, i, s.units.length);
|
|
103
|
+
if (c === null) {
|
|
104
|
+
this.runnable = /* @__PURE__ */ new Set();
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
await _(n.directory, {
|
|
108
|
+
index: c,
|
|
109
|
+
hash: i
|
|
110
|
+
}, M), this.started = M.now(), this.unitIndex = s.indexes[c], this.outName = `${i}-${c}`, this.out = w(D.join(a, `${this.outName}.jsonl`), "a");
|
|
111
|
+
let l = this.config.hookTimeout > 0 ? this.config.hookTimeout : Infinity;
|
|
112
|
+
if (n.mode === "isolated") {
|
|
113
|
+
let e = s.units[c];
|
|
114
|
+
t.active = e.mutant, t.hitLimit = e.limits.hitLimit, this.budget = e.limits.timeout, this.config.hookTimeout = Math.min(l, e.limits.timeout);
|
|
115
|
+
} else {
|
|
116
|
+
let e = s.units[c];
|
|
117
|
+
this.batch = e;
|
|
118
|
+
for (let t of e.tests) this.planned.set(t.id, t);
|
|
119
|
+
t.hitLimit = e.limits.load.hitLimit, this.budget = e.limits.total, this.config.hookTimeout = Math.min(l, e.tests.reduce((e, t) => Math.max(e, t.timeout), e.limits.load.timeout));
|
|
120
|
+
}
|
|
121
|
+
this.beat(this.budget, null), this.startTracking(!1);
|
|
122
|
+
}
|
|
123
|
+
onCollected(e) {
|
|
124
|
+
this.loadDuration = M.now() - this.started;
|
|
125
|
+
let { options: t } = this;
|
|
126
|
+
for (let n of e) {
|
|
127
|
+
if (t.mode === "dry") {
|
|
128
|
+
let { hookTimeout: e } = this.config;
|
|
129
|
+
for (let t of x(n)) this.hookBudgets.set(t.id, f(t, e));
|
|
130
|
+
this.outsideBudget = t.timeouts.file + f(n, e), this.beat(this.outsideBudget, null);
|
|
131
|
+
}
|
|
132
|
+
this.concurrent = y(n, this.sequential) || this.concurrent, l(n, (e, t) => this.aroundTry(e, t)), n.result?.state === "fail" && (this.loadError ??= r(n.result.errors?.[0]));
|
|
133
|
+
}
|
|
134
|
+
if (this.batch === null || this.runnable !== null) return;
|
|
135
|
+
let n = e.flatMap((e) => x(e)), i = n.findLastIndex((e) => this.planned.has(e.id));
|
|
136
|
+
this.runnable = new Set(n.slice(0, i + 1).map((e) => e.id));
|
|
137
|
+
}
|
|
138
|
+
async onBeforeRunTask(e) {
|
|
139
|
+
if (this.finishEnded(), await super.onBeforeRunTask(e), e.mode !== "run" || e.type !== "test") return;
|
|
140
|
+
let { options: t } = this;
|
|
141
|
+
if (t.mode !== "dry" && (this.abandoned || this.bailed || this.runnable !== null && !this.runnable.has(e.id))) {
|
|
142
|
+
e.mode = "skip";
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
let n = this.planned.get(e.id)?.mutants.filter((e) => !this.killed.has(e)) ?? [], r = t.repeat ? [null, null] : [null, ...n.flatMap((e) => [e, null])], i = (e.repeats ?? 0) + 1;
|
|
146
|
+
e.repeats = r.length * i - 1, this.records.set(e, {
|
|
147
|
+
current: null,
|
|
148
|
+
tries: [],
|
|
149
|
+
next: 0,
|
|
150
|
+
group: i,
|
|
151
|
+
plan: r,
|
|
152
|
+
test: e
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
onStray(e, t) {
|
|
156
|
+
let n = v(e, t, this.strayCount);
|
|
157
|
+
this.strayCount += 1;
|
|
158
|
+
let r = this.listActive();
|
|
159
|
+
if (r.length > 0) for (let e of r) e.strays.push(n);
|
|
160
|
+
else this.options.mode === "batch" && this.lastTest !== null && this.out !== null ? c(this.out, {
|
|
161
|
+
mutant: this.lastMutant,
|
|
162
|
+
test: this.lastTest,
|
|
163
|
+
kind: "late",
|
|
164
|
+
stray: n
|
|
165
|
+
}) : this.loadStrays.push(n);
|
|
166
|
+
}
|
|
167
|
+
async onAfterRunSuite(e) {
|
|
168
|
+
if (this.finishEnded(), e.file === e && this.inputs !== null) {
|
|
169
|
+
let t = Reflect.get(this, "snapshotClient");
|
|
170
|
+
this.dependencies = this.listDependencies(t.snapshotStateMap.get(e.file.filepath));
|
|
171
|
+
}
|
|
172
|
+
await super.onAfterRunSuite(e);
|
|
173
|
+
}
|
|
174
|
+
async runTask(e) {
|
|
175
|
+
let t = this.records.get(e)?.current ?? null;
|
|
176
|
+
t === null && e.context.skip();
|
|
177
|
+
let n = A.getTestFn(e), { deadline: r } = t;
|
|
178
|
+
r === null ? await n() : t.timedOut = await s(n, Math.max(0, r - M.now()), M);
|
|
179
|
+
}
|
|
180
|
+
onAfterRunFiles(e) {
|
|
181
|
+
for (let e of this.records.values()) this.finishTest(e);
|
|
182
|
+
if (this.loadError === null) for (let t of e) this.hookError ??= d(t);
|
|
183
|
+
this.filesEnded = !0, this.endsInTeardown || this.finishUnit(), super.onAfterRunFiles(e);
|
|
184
|
+
}
|
|
185
|
+
async onAfterRetryTask(e, t) {
|
|
186
|
+
let n = this.records.get(e)?.current;
|
|
187
|
+
n && (n.state = e.result.state), await super.onAfterRetryTask?.(e, t);
|
|
188
|
+
}
|
|
189
|
+
async onBeforeRunSuite(e) {
|
|
190
|
+
this.finishEnded(), this.bailed && (e.mode = "skip"), await super.onBeforeRunSuite(e);
|
|
191
|
+
}
|
|
192
|
+
onAfterRunTask(e) {
|
|
193
|
+
this.finishTest(this.records.get(e)), super.onAfterRunTask(e);
|
|
194
|
+
}
|
|
195
|
+
startTry(e) {
|
|
196
|
+
if (this.finishTry(e), this.abandoned) return;
|
|
197
|
+
let { runtime: t } = this, { mode: n } = this.options, { test: r } = e, i = e.next;
|
|
198
|
+
e.next += 1;
|
|
199
|
+
let a = M.now(), o = {
|
|
200
|
+
attempt: r.result.errors?.length ?? 0,
|
|
201
|
+
covers: n === "dry" ? /* @__PURE__ */ new Set() : null,
|
|
202
|
+
retries: r.result.retryCount ?? 0,
|
|
203
|
+
outcome: void 0,
|
|
204
|
+
hits: t.hits,
|
|
205
|
+
state: void 0,
|
|
206
|
+
timedOut: !1,
|
|
207
|
+
watch: a,
|
|
208
|
+
repetitions: 0,
|
|
209
|
+
deadline: null,
|
|
210
|
+
errors: [],
|
|
211
|
+
strays: [],
|
|
212
|
+
started: a,
|
|
213
|
+
test: r
|
|
214
|
+
};
|
|
215
|
+
if (n === "batch" ? (this.outsideHits += t.hits, t.hits = 0, t.reached = !1, o.hits = 0) : n === "dry" && this.listActive().length === 0 && (this.inside.from = t.hits), e.current = o, n === "dry") this.routeCoverage();
|
|
216
|
+
else if (n === "batch") {
|
|
217
|
+
let n = this.planned.get(r.id);
|
|
218
|
+
t.active = e.plan[i], t.hitLimit = n?.hitLimit ?? Infinity, n !== void 0 && (o.deadline = a + n.timeout, this.beat(n.timeout, r));
|
|
219
|
+
} else o.deadline = this.started + this.budget;
|
|
220
|
+
}
|
|
221
|
+
finishTry(e) {
|
|
222
|
+
let { current: t } = e;
|
|
223
|
+
if (t === null) return;
|
|
224
|
+
e.current = null, P(t);
|
|
225
|
+
let { runtime: n } = this, { mode: r } = this.options, { test: i } = t, a = p(i, n, {
|
|
226
|
+
covers: t.covers === null ? null : [...t.covers].toSorted(),
|
|
227
|
+
duration: M.now() - t.started,
|
|
228
|
+
hits: n.hits - t.hits,
|
|
229
|
+
timedOut: t.timedOut,
|
|
230
|
+
strays: t.strays,
|
|
231
|
+
errors: t.errors,
|
|
232
|
+
state: t.outcome
|
|
233
|
+
});
|
|
234
|
+
e.tries.push(a), this.lastTest = i.id, this.lastMutant = n.active, r !== "dry" && a.timedOut && (this.abandoned = !0), r === "isolated" && a.failed && a.reached && (this.bailed = !0), r === "batch" ? (n.active !== null && (a.failed || a.timedOut) && this.killed.add(n.active), n.active = null, n.hitLimit = this.batch.limits.load.hitLimit, n.hits = 0, n.reached = !1) : r === "dry" && (this.routeCoverage(), this.activeCovers.length === 0 && (this.inside.hits += n.hits - this.inside.from));
|
|
235
|
+
}
|
|
236
|
+
finishUnit() {
|
|
237
|
+
let { runtime: e } = this, { mode: t } = this.options;
|
|
238
|
+
if (this.out !== null && this.filesEnded) {
|
|
239
|
+
let { hits: n } = e;
|
|
240
|
+
t === "batch" ? n += this.outsideHits : t === "dry" && (n -= this.inside.hits);
|
|
241
|
+
let { dependencies: r, ...i } = this.stopTracking();
|
|
242
|
+
c(this.out, {
|
|
243
|
+
covers: [...this.loadCovers].toSorted(),
|
|
244
|
+
duration: M.now() - this.started,
|
|
245
|
+
loadDuration: this.loadDuration,
|
|
246
|
+
environment: i.environment,
|
|
247
|
+
concurrent: this.concurrent,
|
|
248
|
+
loadError: this.loadError,
|
|
249
|
+
hookError: this.hookError,
|
|
250
|
+
abandoned: this.abandoned,
|
|
251
|
+
reached: e.reached,
|
|
252
|
+
modified: i.modified,
|
|
253
|
+
strays: this.loadStrays,
|
|
254
|
+
unit: this.unitIndex,
|
|
255
|
+
booted: this.booted,
|
|
256
|
+
dependencies: r,
|
|
257
|
+
kind: "end",
|
|
258
|
+
hits: n
|
|
259
|
+
}), C(w(D.join(this.options.directory, "done", this.outName), "w"));
|
|
260
|
+
}
|
|
261
|
+
this.beatDescriptor !== null && (C(this.beatDescriptor), this.beatDescriptor = null), T(this.beatFile, { force: !0 }), e.hitLimit = Infinity, e.coverage = null, e.active = null;
|
|
262
|
+
}
|
|
263
|
+
async aroundTry(e, t) {
|
|
264
|
+
let n = this.records.get(e), { current: r } = n, i = e.result.retryCount ?? 0;
|
|
265
|
+
if (r === null || r.timedOut ? this.startTry(n) : i > r.retries ? (r.attempt = e.result.errors.length, r.state = void 0, r.retries = i) : r.repetitions + 1 === n.group ? this.startTry(n) : P(r), this.options.mode === "dry") {
|
|
266
|
+
let t = e.timeout > 0 ? e.timeout : Infinity, r = M.now();
|
|
267
|
+
n.current.watch = r + this.options.timeouts.test + t + this.hookBudgets.get(e.id), this.beatDry(r);
|
|
268
|
+
}
|
|
269
|
+
await t(), await new Promise((e) => {
|
|
270
|
+
M.setImmediate(e);
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
startTracking(e) {
|
|
274
|
+
let { directory: t, root: n } = this.options, r = h({
|
|
275
|
+
directory: t,
|
|
276
|
+
root: n
|
|
277
|
+
}, {
|
|
278
|
+
holder: Reflect.get(this, "workerState"),
|
|
279
|
+
ignored: i
|
|
280
|
+
});
|
|
281
|
+
if (this.inputs = r, e) {
|
|
282
|
+
let e = {};
|
|
283
|
+
for (let [t, n = ""] of Object.entries(r.real)) e[t] = O("sha256").update(n).digest("hex");
|
|
284
|
+
try {
|
|
285
|
+
E(D.join(t, "env", `${g("", this.config.name ?? "")}.json`), JSON.stringify({
|
|
286
|
+
project: this.config.name ?? "",
|
|
287
|
+
variables: e
|
|
288
|
+
}), { flag: "wx" });
|
|
289
|
+
} catch {}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
stopTracking() {
|
|
293
|
+
let e = /* @__PURE__ */ new Set([...this.dependencies ?? [], ...this.listDependencies(void 0)]), { environment: t, modified: n } = this.inputs.stop();
|
|
294
|
+
this.inputs = null;
|
|
295
|
+
let r = Reflect.get(this, "workerState"), i = [...e].toSorted();
|
|
296
|
+
return {
|
|
297
|
+
dependencies: Object.hasOwn(k, r.ctx.environment.name) ? i : null,
|
|
298
|
+
environment: t,
|
|
299
|
+
modified: n
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
beat(e, t) {
|
|
303
|
+
this.sequence += 1, this.beatDescriptor ??= w(this.beatFile, "w"), this.beatLength = u(this.beatDescriptor, {
|
|
304
|
+
budget: Math.min(Math.max(0, e), j) + 1e3,
|
|
305
|
+
name: t?.fullTestName ?? null,
|
|
306
|
+
mutant: this.runtime.active,
|
|
307
|
+
sequence: this.sequence,
|
|
308
|
+
test: t?.id ?? null,
|
|
309
|
+
unit: this.unitIndex,
|
|
310
|
+
pid: process.pid,
|
|
311
|
+
file: this.file
|
|
312
|
+
}, this.beatLength);
|
|
313
|
+
}
|
|
314
|
+
finishTest(e) {
|
|
315
|
+
this.finishTry(e);
|
|
316
|
+
let { test: t } = e;
|
|
317
|
+
this.records.delete(t), c(this.out, {
|
|
318
|
+
line: t.location?.line ?? null,
|
|
319
|
+
name: t.fullTestName,
|
|
320
|
+
tries: e.tries,
|
|
321
|
+
kind: "test"
|
|
322
|
+
}), delete t.result.errors, this.options.mode === "dry" ? this.beatDry() : this.beat(this.budget - (M.now() - this.started), null);
|
|
323
|
+
}
|
|
324
|
+
routeCoverage() {
|
|
325
|
+
let { runtime: e } = this;
|
|
326
|
+
this.activeCovers = this.listActive().map((e) => e.covers);
|
|
327
|
+
let [t] = this.activeCovers;
|
|
328
|
+
e.coverage = t === void 0 ? this.loadCovers : this.activeCovers.length === 1 ? t : this.coverSink;
|
|
329
|
+
}
|
|
330
|
+
beatDry(e = M.now()) {
|
|
331
|
+
let t = null;
|
|
332
|
+
for (let e of this.listActive()) (t === null || e.watch > t.watch) && (t = e);
|
|
333
|
+
t === null ? this.beat(this.outsideBudget, null) : this.beat(t.watch - e, t.test);
|
|
334
|
+
}
|
|
335
|
+
listDependencies(e) {
|
|
336
|
+
return n(Reflect.get(this, "workerState"), [...Object.keys(S(import.meta.url).cache), ...this.inputs.files], e);
|
|
337
|
+
}
|
|
338
|
+
async tearDown(e) {
|
|
339
|
+
try {
|
|
340
|
+
await e();
|
|
341
|
+
} catch (e) {
|
|
342
|
+
throw this.hookError ??= r(e), e;
|
|
343
|
+
} finally {
|
|
344
|
+
this.endsOnClose || this.finishUnit();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
listActive() {
|
|
348
|
+
let e = [];
|
|
349
|
+
for (let { current: t } of this.records.values()) t !== null && e.push(t);
|
|
350
|
+
return e;
|
|
351
|
+
}
|
|
352
|
+
finishEnded() {
|
|
353
|
+
for (let e of this.records.values()) (this.sequential || e.test.mode === "skip") && this.finishTest(e);
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
function P(e) {
|
|
357
|
+
let t = e.test.result.errors ?? [];
|
|
358
|
+
e.errors.push(...t.slice(e.attempt)), (e.state === "fail" || e.state === "skip") && (e.outcome = e.state), e.repetitions += 1, e.attempt = t.length, e.state = void 0;
|
|
359
|
+
}
|
|
360
|
+
export { N as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DetectionScore } from '../../types/adapter/built-in-adapters.js';
|
|
2
|
+
/**
|
|
3
|
+
* Tells how surely a project runs its tests with Vitest: a script it runs its
|
|
4
|
+
* tests with calls Vitest (2), Vitest is installed in any version (1), or
|
|
5
|
+
* neither (0). Starting the session reports a version mootant does not support
|
|
6
|
+
* or a Vitest that is missing.
|
|
7
|
+
*
|
|
8
|
+
* @param root - Project root.
|
|
9
|
+
* @returns Score of the detection.
|
|
10
|
+
*/
|
|
11
|
+
export declare function scoreVitest(root: string): Promise<DetectionScore>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { readTestScripts as e } from "../shared/read-test-scripts.js";
|
|
2
|
+
import { detectVitest as t } from "./detect-vitest.js";
|
|
3
|
+
const n = /(?:^|[\s"&'(/;|])vitest(?=$|[\s"&');|])/u;
|
|
4
|
+
async function r(r) {
|
|
5
|
+
return (await e(r)).some((e) => n.test(e)) ? 2 : (await t(r)).version === null ? 0 : 1;
|
|
6
|
+
}
|
|
7
|
+
export { r as scoreVitest };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VitestAdapterOptions } from './types/vitest-adapter-options.js';
|
|
2
|
+
import { AdapterSession } from '../../types/adapter/adapter-session.js';
|
|
3
|
+
import { AdapterContext } from '../../types/adapter/adapter-context.js';
|
|
4
|
+
/**
|
|
5
|
+
* Starts one Vitest instance for a mootant run: the project's own Vitest,
|
|
6
|
+
* resolved from the root, with the user's configuration, mootant's plugin and
|
|
7
|
+
* worker runner, no coverage, result cache or module cache on disk, and no
|
|
8
|
+
* reporters: what the tests print, their console calls with their test file and
|
|
9
|
+
* what Vitest and its workers write, such as process warnings, goes to the
|
|
10
|
+
* context's `onOutput` when there is one. Its sequencer spreads out the units
|
|
11
|
+
* of one test file (`createInterleavedSequencer`). The mutant runtime of this
|
|
12
|
+
* process records the mutant sites switched code evaluates here, outside the
|
|
13
|
+
* workers, such as in a `globalSetup` file, until the session closes.
|
|
14
|
+
*
|
|
15
|
+
* @param context - Switched files, work directory, concurrency and root.
|
|
16
|
+
* @param options - Options of the adapter.
|
|
17
|
+
* @returns Session whose methods run the tests.
|
|
18
|
+
* @throws {Error} When Vitest is missing or not version 5, when mootant would
|
|
19
|
+
* load another copy of Vitest, when a project uses an unsupported setting, or
|
|
20
|
+
* when no test file matches the include patterns, which Vitest itself would
|
|
21
|
+
* pass, since mootant runs it with `passWithNoTests` for the units it
|
|
22
|
+
* filters.
|
|
23
|
+
*/
|
|
24
|
+
export declare function startVitestSession(context: AdapterContext, options: VitestAdapterOptions): Promise<AdapterSession>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { installMutantRuntime as e } from "../../core/runtime/install-mutant-runtime.js";
|
|
2
|
+
import { createInterleavedSequencer as t } from "./create-interleaved-sequencer.js";
|
|
3
|
+
import { createOutputReporter as n } from "./create-output-reporter.js";
|
|
4
|
+
import { createMootantPlugin as r } from "./create-mootant-plugin.js";
|
|
5
|
+
import { createOutputStream as i } from "./create-output-stream.js";
|
|
6
|
+
import { createForksPool as a } from "./create-forks-pool.js";
|
|
7
|
+
import { checkVitestCopy as o } from "./check-vitest-copy.js";
|
|
8
|
+
import { getCacheInputs as s } from "./get-cache-inputs.js";
|
|
9
|
+
import { getRunnerPath as c } from "./get-runner-path.js";
|
|
10
|
+
import { detectVitest as l } from "./detect-vitest.js";
|
|
11
|
+
import { runIsolated as u } from "./run-isolated.js";
|
|
12
|
+
import { runBatch as d } from "./run-batch.js";
|
|
13
|
+
import { runDry as f } from "./run-dry.js";
|
|
14
|
+
import p from "node:path";
|
|
15
|
+
import { pathToFileURL as m } from "node:url";
|
|
16
|
+
async function h(h, g) {
|
|
17
|
+
let { root: _ } = h, v = await l(_);
|
|
18
|
+
if (!v.available) throw Error(v.version === null ? `Vitest is not installed in ${_}.` : `mootant runs Vitest 5, but ${_} has Vitest ${v.version}.`);
|
|
19
|
+
let y = c(), b = o(_, y);
|
|
20
|
+
if (b !== null) throw Error(b);
|
|
21
|
+
let x = await import(m(v.node).href), S = /* @__PURE__ */ new Map(), C = {
|
|
22
|
+
pool: a(x.ForksPoolWorker, S),
|
|
23
|
+
mismatched: /* @__PURE__ */ new Set(),
|
|
24
|
+
instrumented: !0,
|
|
25
|
+
outside: /* @__PURE__ */ new Set(),
|
|
26
|
+
served: /* @__PURE__ */ new Set(),
|
|
27
|
+
environment: {},
|
|
28
|
+
keys: /* @__PURE__ */ new Map(),
|
|
29
|
+
diagnostics: [],
|
|
30
|
+
error: null,
|
|
31
|
+
files: null,
|
|
32
|
+
runnerPath: y,
|
|
33
|
+
spawns: S
|
|
34
|
+
}, { onOutput: w } = h, T = null, E = await x.createVitest({
|
|
35
|
+
...g.config !== void 0 && { config: p.resolve(_, g.config) },
|
|
36
|
+
...h.concurrency !== null && { maxWorkers: h.concurrency },
|
|
37
|
+
reporters: w === void 0 ? [] : [n(w, () => T)],
|
|
38
|
+
coverage: { enabled: !1 },
|
|
39
|
+
includeTaskLocation: !0,
|
|
40
|
+
passWithNoTests: !0,
|
|
41
|
+
fsModuleCache: !1,
|
|
42
|
+
watch: !1,
|
|
43
|
+
cache: !1,
|
|
44
|
+
bail: 0,
|
|
45
|
+
root: _
|
|
46
|
+
}, { plugins: [r(h, C)] }, w === void 0 ? {} : {
|
|
47
|
+
stderr: i((e) => w(e, null)),
|
|
48
|
+
stdout: i((e) => w(e, null))
|
|
49
|
+
});
|
|
50
|
+
if (T = E, C.error !== null) throw await E.close(), Error(C.error);
|
|
51
|
+
if ((await E.globTestSpecifications()).length === 0) {
|
|
52
|
+
await E.close();
|
|
53
|
+
let e = new Set(E.projects.flatMap((e) => e.config.include));
|
|
54
|
+
throw Error(`No test files match the include patterns of Vitest (${[...e].map((e) => `"${e}"`).join(", ")}); set vitestAdapter({ config }) or fix the patterns.`);
|
|
55
|
+
}
|
|
56
|
+
let { sequence: D } = E.config;
|
|
57
|
+
D.sequencer = t(D.sequencer);
|
|
58
|
+
let O = e(), { coverage: k } = O;
|
|
59
|
+
O.coverage = C.outside;
|
|
60
|
+
let A = {
|
|
61
|
+
context: h,
|
|
62
|
+
vitest: E,
|
|
63
|
+
state: C
|
|
64
|
+
}, j = null;
|
|
65
|
+
async function M() {
|
|
66
|
+
try {
|
|
67
|
+
await E.close();
|
|
68
|
+
} finally {
|
|
69
|
+
O.coverage === C.outside && (O.coverage = k);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
listTestFiles: async () => {
|
|
74
|
+
let e = new Set((await E.globTestSpecifications()).map(({ moduleId: e }) => e));
|
|
75
|
+
for (let t of E.projects) for (let n of [...t.config.setupFiles, ...t.config.globalSetup]) e.add(n);
|
|
76
|
+
return [...e];
|
|
77
|
+
},
|
|
78
|
+
cacheInputs: () => Promise.resolve(s(E, C.environment)),
|
|
79
|
+
close: () => (j ??= M(), j),
|
|
80
|
+
runIsolated: (e) => u(A, e),
|
|
81
|
+
dryRun: (e) => f(A, e),
|
|
82
|
+
runBatch: (e) => d(A, e),
|
|
83
|
+
workers: E.config.maxWorkers,
|
|
84
|
+
diagnostics: C.diagnostics,
|
|
85
|
+
version: E.version
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export { h as startVitestSession };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stops a hung worker process with `SIGKILL`, but only when the process is
|
|
3
|
+
* still alive and, outside Windows, is a child of this process: a process id
|
|
4
|
+
* may have been reused by an unrelated process.
|
|
5
|
+
*
|
|
6
|
+
* @param pid - Process id of the worker.
|
|
7
|
+
* @returns Whether the worker was stopped.
|
|
8
|
+
* @throws {Error} When the signal fails for another reason than a process that
|
|
9
|
+
* is gone.
|
|
10
|
+
*/
|
|
11
|
+
export declare function stopHungWorker(pid: number): Promise<boolean>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { execFile as e } from "node:child_process";
|
|
2
|
+
async function t(e) {
|
|
3
|
+
try {
|
|
4
|
+
process.kill(e, 0);
|
|
5
|
+
} catch {
|
|
6
|
+
return !1;
|
|
7
|
+
}
|
|
8
|
+
if (process.platform !== "win32" && await n(e) !== process.pid) return !1;
|
|
9
|
+
try {
|
|
10
|
+
process.kill(e, "SIGKILL");
|
|
11
|
+
} catch (e) {
|
|
12
|
+
if (e.code === "ESRCH") return !1;
|
|
13
|
+
throw e;
|
|
14
|
+
}
|
|
15
|
+
return !0;
|
|
16
|
+
}
|
|
17
|
+
function n(t) {
|
|
18
|
+
return new Promise((n) => {
|
|
19
|
+
e("ps", [
|
|
20
|
+
"-o",
|
|
21
|
+
"ppid=",
|
|
22
|
+
"-p",
|
|
23
|
+
String(t)
|
|
24
|
+
], (e, t) => {
|
|
25
|
+
n(e === null ? Number(t.trim()) : null);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export { t as stopHungWorker };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the main process decided for the unhandled errors workers recorded in a
|
|
3
|
+
* run (`readStrays`): the first line of an error that counts, or null for one
|
|
4
|
+
* that does not, by the number of the error (`VitestStray.id`), by the path of
|
|
5
|
+
* its out file. Each error is decided once, however often its out file is read
|
|
6
|
+
* and however many tries recorded it.
|
|
7
|
+
*/
|
|
8
|
+
export type StrayDecisions = Map<string, Map<number, string | null>>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VitestOutRecord, VitestHeartbeat } from './vitest-worker.js';
|
|
2
|
+
/**
|
|
3
|
+
* What one unit of a Vitest run left behind.
|
|
4
|
+
*/
|
|
5
|
+
export interface UnitOutcome {
|
|
6
|
+
/**
|
|
7
|
+
* Last heartbeat of the worker the watchdog stopped, or null.
|
|
8
|
+
*/
|
|
9
|
+
hung: VitestHeartbeat | null
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Records the worker wrote, in order, as the main process reads them
|
|
13
|
+
* (`readOutRecords`).
|
|
14
|
+
*/
|
|
15
|
+
records: VitestOutRecord[]
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Process id of the worker that claimed the unit, or null when no worker
|
|
19
|
+
* claimed it.
|
|
20
|
+
*/
|
|
21
|
+
pid: number | null
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Whether a worker claimed the unit.
|
|
25
|
+
*/
|
|
26
|
+
claimed: boolean
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings of `vitestAdapter()`, which runs mutants with the project's Vitest.
|
|
3
|
+
*/
|
|
4
|
+
export interface VitestAdapterOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Path of the Vitest configuration file, relative to the project root; Vitest
|
|
7
|
+
* finds it when omitted.
|
|
8
|
+
*/
|
|
9
|
+
config?: string
|
|
10
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { PoolRunnerInitializer, Vitest } from 'vitest/node';
|
|
2
|
+
import { AdapterContext } from '../../../types/adapter/adapter-context.js';
|
|
3
|
+
import { SwitchedFile } from '../../../types/adapter/switched-file.js';
|
|
4
|
+
import { Diagnostic } from '../../../types/mutant/diagnostic.js';
|
|
5
|
+
/**
|
|
6
|
+
* State shared by the Vitest session, its Vite plugin and the project
|
|
7
|
+
* configuration hook.
|
|
8
|
+
*/
|
|
9
|
+
export interface VitestSessionState {
|
|
10
|
+
/**
|
|
11
|
+
* Hashes of the environment variables the workers of each project saw in the
|
|
12
|
+
* last dry run, by name, by project name.
|
|
13
|
+
*/
|
|
14
|
+
environment: Record<string, Record<string, string>>
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Switched files by real path, or null until the plugin or a dry run reads
|
|
18
|
+
* `AdapterContext.files`.
|
|
19
|
+
*/
|
|
20
|
+
files: Map<string, SwitchedFile> | null
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Epoch milliseconds at which the pool started each worker process of the
|
|
24
|
+
* current run, by process id (`createForksPool`).
|
|
25
|
+
*/
|
|
26
|
+
spawns: Map<number, number>
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Pool the projects run with (`createForksPool`).
|
|
30
|
+
*/
|
|
31
|
+
pool: PoolRunnerInitializer
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Real paths of the module ids the plugin has seen, by id.
|
|
35
|
+
*/
|
|
36
|
+
keys: Map<string, string>
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* `config-overridden` warnings about the projects.
|
|
40
|
+
*/
|
|
41
|
+
diagnostics: Diagnostic[]
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Switched files whose loaded text differed from the listed one.
|
|
45
|
+
*/
|
|
46
|
+
mismatched: Set<string>
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Whether the plugin serves switched texts; false while a dry run checks the
|
|
50
|
+
* tests without them.
|
|
51
|
+
*/
|
|
52
|
+
instrumented: boolean
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Ids of the mutants whose sites switched code evaluated in the main process,
|
|
56
|
+
* outside the workers, such as in a `globalSetup` file.
|
|
57
|
+
*/
|
|
58
|
+
outside: Set<string>
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* First unsupported project configuration, as a sentence, or null.
|
|
62
|
+
*/
|
|
63
|
+
error: string | null
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Switched files the plugin served.
|
|
67
|
+
*/
|
|
68
|
+
served: Set<string>
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Absolute path of mootant's worker runner.
|
|
72
|
+
*/
|
|
73
|
+
runnerPath: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Live Vitest instance of a session with what the session methods share.
|
|
78
|
+
*/
|
|
79
|
+
export interface VitestHandle {
|
|
80
|
+
/**
|
|
81
|
+
* State shared with the plugin.
|
|
82
|
+
*/
|
|
83
|
+
state: VitestSessionState
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Context the core started the session with.
|
|
87
|
+
*/
|
|
88
|
+
context: AdapterContext
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Vitest instance of the session.
|
|
92
|
+
*/
|
|
93
|
+
vitest: Vitest
|
|
94
|
+
}
|