k6-node
Version:
CLI tool that enables k6 installation via npm packages
17 lines (16 loc) • 587 B
TypeScript
import { K6TestBuilder } from '../builders/k6-builder';
import { Step } from '../types/request-types';
import { Stage, Threshold } from '../types/test-types';
/**
* Create a simple load test with stages for k6
* In k6, load tests typically use ramping VUs to simulate realistic traffic patterns
*
* @param config - Configuration object with stages, steps, and thresholds
* @returns Configured K6TestBuilder instance
*/
export declare function createK6LoadTest(config: {
stages: Stage[];
steps: Step[];
thresholds?: Threshold;
imports?: string[];
}): K6TestBuilder;