import { normalize } from 'pathe'; import cac from 'cac'; import c from 'picocolors'; import { v as version, s as startVitest, d as divider } from './chunk-node-pkg.30d8b37e.js'; import './chunk-constants.bc18a549.js'; import './chunk-integrations-coverage.d93ee824.js'; import './chunk-env-node.affdd278.js'; import 'node:console'; import 'local-pkg'; import './chunk-utils-env.6b856dbf.js'; import 'std-env'; import '@vitest/runner/utils'; import './chunk-utils-global.fd174983.js'; import '@vitest/utils'; import 'vite'; import 'node:path'; import 'node:url'; import 'node:process'; import 'node:fs'; import 'path'; import 'os'; import 'util'; import 'stream'; import 'events'; import 'fs'; import './vendor-_commonjsHelpers.addc3445.js'; import 'vite-node/utils'; import 'vite-node/client'; import 'node:fs/promises'; import './vendor-index.2cbcdd1e.js'; import 'node:buffer'; import 'node:child_process'; import 'child_process'; import 'node:os'; import 'assert'; import 'buffer'; import 'source-map'; import 'module'; import 'acorn'; import 'acorn-walk'; import './chunk-utils-base.b5ddfcc9.js'; import 'crypto'; import './chunk-paths.e36446b4.js'; import 'node:v8'; import './vendor-index.783e7f3e.js'; import 'node:worker_threads'; import 'tinypool'; import 'perf_hooks'; import './chunk-utils-tasks.8781fd71.js'; import '@vitest/utils/diff'; import 'vite-node/server'; import './vendor-magic-string.es.b3bc5745.js'; import 'node:module'; import 'node:crypto'; import 'strip-literal'; import 'readline'; const cli = cac("vitest"); cli.version(version).option("-r, --root ", "Root path").option("-c, --config ", "Path to config file").option("-u, --update", "Update snapshot").option("-w, --watch", "Enable watch mode").option("-t, --testNamePattern ", "Run tests with full names matching the specified regexp pattern").option("--dir ", "Base directory to scan for the test files").option("--ui", "Enable UI").option("--open", "Open UI automatically (default: !process.env.CI))").option("--api [api]", "Serve API, available options: --api.port , --api.host [host] and --api.strictPort").option("--threads", "Enabled threads (default: true)").option("--single-thread", "Run tests inside a single thread, requires --threads (default: false)").option("--silent", "Silent console output from tests").option("--isolate", "Isolate environment for each test file (default: true)").option("--reporter ", "Specify reporters").option("--outputDiffMaxSize ", "Object diff output max size (default: 10000)").option("--outputDiffMaxLines ", "Max lines in diff output window (default: 50)").option("--outputTruncateLength ", "Diff output line length (default: 80)").option("--outputDiffLines ", "Number of lines in single diff (default: 15)").option("--outputFile ", "Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters").option("--coverage", "Enable coverage report").option("--run", "Disable watch mode").option("--mode ", "Override Vite mode (default: test)").option("--globals", "Inject apis globally").option("--dom", "Mock browser api with happy-dom").option("--browser [options]", "Run tests in the browser (default: false)").option("--environment ", "Specify runner environment, if not running in the browser (default: node)").option("--passWithNoTests", "Pass when no tests found").option("--logHeapUsage", "Show the size of heap for each test").option("--allowOnly", "Allow tests and suites that are marked as only (default: !process.env.CI)").option("--dangerouslyIgnoreUnhandledErrors", "Ignore any unhandled errors that occur").option("--shard ", "Test suite shard to execute in a format of /").option("--changed [since]", "Run tests that are affected by the changed files (default: false)").option("--sequence ", "Define in what order to run tests (use --sequence.shuffle to run tests in random order)").option("--segfaultRetry ", "Return tests on segment fault (default: 0)", { default: 0 }).option("--no-color", "Removes colors from the console output").option("--inspect", "Enable Node.js inspector").option("--inspect-brk", "Enable Node.js inspector with break").option("--test-timeout