UNPKG

k6-node

Version:

CLI tool that enables k6 installation via npm packages

18 lines (17 loc) 662 B
import { Check } from '../types/request-types'; /** * Create a status code check for k6 responses * k6 will validate that responses match the expected HTTP status * * @param expectedStatus - Expected HTTP status code * @returns Check configuration for status validation */ export declare function statusCheck(expectedStatus: number): Check; /** * Create a response time check for k6 * k6 will validate that response times are within the specified limit * * @param maxTime - Maximum allowed response time in milliseconds * @returns Check configuration for response time validation */ export declare function responseTimeCheck(maxTime: number): Check;