I’m trying to create a small test suite for where I work, in this it means there will be quite a lot of copy pasted code when it comes to things like user authorisation or checking responses. To cut down on this I want to barrel some functions but doing this just leads to this:
ERRO[0000] read C:\Users\XX\Desktop\loadTesting\src\buildingBlocks: The handle is invalid.
at reflect.methodValueCall (native)
at file:///C:/Users/XX/Desktop/loadTesting/src/testsJavascript/UserJourney.js:119:130(33) hint=“script exception”
This is what I’m trying to do in the script:
import http from “k6/http”;
import { check, group, sleep } from “k6”;
import { graphql } from “…/buildingBlocks”;
Any help would be massively appreciated.