-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
It is not supported in TypeScript yet - Add support for URI style import.
You need to use ts-ignore
to skip the compiler error.
import { sleep, check } from 'k6';
import { Options } from 'k6/options';
/* @ts-ignore */
import { randomIntBetween } from 'https://jslib.k6.io/k6-utils/1.1.0/index.js';
import http from 'k6/http';
export let options:Options = {
vus: 50,
duration: '10s'
};
export default () => {
const res = http.post('https://httpbin.org/status/400');
check(res, {
'status is 400': () => res.status === 400,
});
sleep(randomIntBetween(1,5));
};
Dave-EMIS, raythurnvoid, JohnBatts418, tonivj5 and kahirokunn
Metadata
Metadata
Assignees
Labels
No labels