Skip to content

Commit c8362a3

Browse files
fix(load-tests): replace JSON import with k6 open() in baseline.js
1 parent 58bbb8d commit c8362a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

load-tests/utils/baseline.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
// configured tolerance). Returned data is embedded in the generated report and
66
// printed to stdout so CI surfaces regressions even when raw thresholds pass.
77

8-
import baseline from '../baseline.json';
8+
// k6 does not support ES module JSON imports — use the built-in open() instead.
9+
const baseline = JSON.parse(open('../baseline.json'));
910

1011
function pct(measured, base) {
1112
if (base === 0) return measured === 0 ? 0 : 100;

0 commit comments

Comments
 (0)