@routineless/nx-aws-cdk
Version:
Nx plugin for AWS CDK
21 lines (20 loc) • 777 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import type { ExecutorContext } from '@nx/devkit';
import type * as child_process from 'child_process';
import type { Readable, Writable } from 'stream';
import { MockProjectGraphOptions } from './project-graph';
type MockExeutorOptions = {
root?: string;
targetOptions?: Record<string, unknown>;
mockProjectGraphOptions?: MockProjectGraphOptions;
};
export declare const mockExecutorContext: (executorName: string, options?: MockExeutorOptions) => ExecutorContext;
export declare const mockChildProcess: () => MockChildProcess;
export interface MockChildProcess extends child_process.ChildProcess {
stdout: Readable;
stderr: Readable;
stdin: Writable;
spawnargs: string[];
}
export {};