I tried to follow guide of k6.io to import JS modules in the test:
My js tests can't load:
import { uuidv4 } from "https://ift.tt/jX3weka"
//@ts-check
import http from "k6/http";
import { check } from "k6";
import { Counter } from "k6/metrics";
import { jsonRequest } from "../data/createNode.js";
import { uuidv4 } from "https://jslib.k6.io/k6-utils/1.4.0/index.j"
//counter for http codes
var http200 = new Counter("HTTP_200_counter")
var error400 = new Counter("HTTP_400_error_counter")
var error500 = new Counter("HTTP_500_error_counter")
Via Active questions tagged javascript - Stack Overflow https://ift.tt/hZ6BbJY
Comments
Post a Comment