detectTestRunner
Chooses the test runner from the configuration files at the project root.
The order is a vitest configuration, then a jest one (a file, or a jest key in package.json). A project with neither gets vitest, the runner every package on this toolchain used before jest was supported.
Import:
import { detectTestRunner } from '@mnaoumov/typescript-dev-toolkit/test-runners/auto';Signature:
function detectTestRunner(): Promise<TestRunner>Returns: Promise<TestRunner> — The runner to use.
Links to this page: