@robby-rabbitman/nx-plus-web-test-runner
Version:
Web Test Runner integration for Nx workspaces.
31 lines • 1.34 kB
TypeScript
import { type TargetConfiguration } from '@nx/devkit';
export declare const DEFAULT_WEB_TEST_RUNNER_TARGET_NAME = "test";
/**
* TODO: '@web/test-runner' does not export the `TestRunnerCliArgs` type - add
* it when its exported from their public api.
*
* https://github.com/modernweb-dev/web/blob/17cfc0d70f46b321912e4506b2cccae1b16b1534/packages/test-runner/src/config/readCliArgs.ts#L7-L34
*/
type WebTestRunnerTargetConfiguration = TargetConfiguration;
interface WebTestRunnerPluginSchema {
/**
* The name of the `Web Test Runner` test target e.g. `'test'` or
* `'web-test-runner'`.
*/
testTargetName?: string;
/**
* The configuration of the `Web Test Runner` target identified by
* {@link WebTestRunnerPluginSchema.testTargetName testTargetName}.
*
* @example
* {
* "watch": true
* }
*
* @see https://modern-web.dev/docs/test-runner/cli-and-configuration/
*/
testTargetConfig?: WebTestRunnerTargetConfiguration;
}
export declare const createNodesV2: [string, (webTestRunnerConfigPaths: readonly string[], schema: WebTestRunnerPluginSchema | undefined, context: import("@nx/devkit").CreateNodesContextV2) => Promise<[file: string, value: import("@nx/devkit").CreateNodesResult][]>];
export {};
//# sourceMappingURL=web-test-runner.plugin.d.ts.map