import { Compiler } from "webpack"; //#region src/index.d.ts interface InflightTestPluginOptions { /** Glob(s) for discovering test files. Default: `**\/*.test.{ts,tsx,js,jsx}`. */ include?: string | string[]; /** Glob(s) to exclude. `node_modules` / build dirs are always excluded. */ exclude?: string | string[]; /** Root directory to scan. Default: the webpack `context`. */ cwd?: string; /** * Enable the plugin. Default `true` — inflight-test is meant to ship with the * activity (including production), that's the point. Set `false` to opt out. */ enabled?: boolean; /** The inflight-test runtime package the generated runner imports. */ runtimeImport?: string; /** * The subpath specifier the activity imports the runner from. Default * `${runtimeImport}/runner` (i.e. `@pixui-dev/inflight-test/runner`). */ runnerImport?: string; /** * Default activity bridge wired into `start()` so the activity needs no * options for screenshots: * - `'gamelet'` (default): wire a bridge over `gamelet-pixui-frame` * (`GameletAPI.callGame` + `addOnGameCommandListener`). All normal PixUI * activities use this SDK, so the bridge lives here — no per-repo file. * - `'none'`: wire nothing (caller passes their own `activityBridge`); use * for non-gamelet hosts. */ bridge?: 'gamelet' | 'none'; /** The SDK package the `'gamelet'` bridge imports. Default `gamelet-pixui-frame`. */ gameletImport?: string; /** * Default text file reporter baked into the generated `start()`. * `'minimal'` (default) for ordinary activities; `'tree'` for hosts that are * themselves under test (e.g. drawcard) so every collected case is listed. * Callers can still override per-invocation via `start({ textReporter })`. */ textReporter?: 'minimal' | 'tree'; } declare class InflightTestPlugin { private readonly _opts; constructor(options?: InflightTestPluginOptions); apply(compiler: Compiler): void; /** * Point the runner specifier at the generated module via `resolve.alias`. * Works identically on webpack 4 and 5 (object or array alias forms). */ private _aliasRunner; /** * webpack 4 doesn't support package.json `exports`. Alias the runtime's main * entry to its dist file so `import … from '@pixui-dev/inflight-test'` resolves. * On webpack 5 the alias is redundant but harmless. */ private _aliasRuntimeForWebpack4; private _discover; private _writeRunnerModule; } //#endregion export { InflightTestPlugin, InflightTestPlugin as default, InflightTestPluginOptions }; //# sourceMappingURL=index.d.mts.map