import { DefaultGlobalScope } from "../configure.js"; import type { AsStrictExecutionContext, ChildConfiguration } from '@-xun/cli'; import type { GlobalCliArguments, GlobalExecutionContext } from "../configure.js"; /** * Which kind of test to run. */ export declare enum Test { /** * Include type tests from the chosen scope. * * Does not include code coverage results by default. */ Type = "type", /** * Include unit tests from the chosen scope. * * Does not include code coverage results by default. */ Unit = "unit", /** * Include integration tests from the chosen scope. * * Does not include code coverage results by default. */ Integration = "integration", /** * Include end-to-end tests from the chosen scope with the * `SYMBIOTE_TEST_E2E_MODE=${EndToEndMode.Real}` environment variable. This * will run any end-to-end tests by actually downloading the items under test * from the internet. * * Does not include code coverage results by default. */ EndToEnd = "e2e", /** * This option is identical to {@link Test.EndToEnd} except it runs end-to-end * tests with the `SYMBIOTE_TEST_E2E_MODE=${EndToEndMode.Simulated}` * environment variable. This will run any end-to-end tests by copying the * items under test from the local filesystem. * * Does not include code coverage results by default. */ EndToEndLocal = "e2e-local", /** * Include _all possible tests_ from the chosen scope, and runs end-to-end * tests with the `SYMBIOTE_TEST_E2E_MODE=${EndToEndMode.Real}` environment * variable. This will run any end-to-end tests by actually downloading the * items under test from the internet. * * Will also include code coverage results by default when scope is * {@link TesterScope.Unlimited}. */ All = "all", /** * This option is identical to {@link Test.All} except it runs end-to-end * tests with the `SYMBIOTE_TEST_E2E_MODE=${EndToEndMode.Simulated}` * environment variable. This will run any end-to-end tests by copying the * items under test from the local filesystem. * * Will also include code coverage results by default when scope is * {@link TesterScope.Unlimited}. */ AllLocal = "all-local", } export declare enum _TesterScope { /** * Limit the command to relevant _transpiled_ tests (aka "intermediates") * within `./.transpiled` (with respect to the current working directory). */ ThisPackageIntermediates = "this-package-intermediates", } /** * The possible valid values for the `process.env.SYMBIOTE_TEST_E2E_MODE` * environment variable (not including `undefined`). */ export declare enum EndToEndMode { Real = "real", Simulated = "simulated", } /** * The context in which to search for test files. */ export type TesterScope = DefaultGlobalScope | _TesterScope; /** * The context in which to search for test files. */ export declare const TesterScope: { /** * Limit the command to relevant _transpiled_ tests (aka "intermediates") * within `./.transpiled` (with respect to the current working directory). */ readonly ThisPackageIntermediates: _TesterScope.ThisPackageIntermediates; readonly ThisPackage: DefaultGlobalScope.ThisPackage; readonly Unlimited: DefaultGlobalScope.Unlimited; }; /** * @see {@link Test} */ export declare const tests: Test[]; /** * @see {@link TesterScope} */ export declare const testerScopes: (DefaultGlobalScope | _TesterScope.ThisPackageIntermediates)[]; export type CustomCliArguments = GlobalCliArguments & { tests: Test[]; testerOptions: string[]; nodeOptions: string[]; runtime: 'default' | `${string}@${string}`; baseline: boolean; repeat: number; collectCoverage: boolean; skipSlowTests: number; propagateDebugEnv: boolean; }; export default function command({ standardLog, standardDebug, state, projectMetadata: projectMetadata_, isUsingLocalInstallation }: AsStrictExecutionContext): ChildConfiguration;