From e49a0d62d22244c4ee13946c2e06500daff11c70 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Thu, 15 Feb 2024 13:20:58 +0100 Subject: [PATCH] fix: Export / import --- k6/performance-tests/{data.mjs => data.js} | 4 +++- k6/performance-tests/generate-github-actions.mjs | 2 +- k6/performance-tests/graphql/DataCubeObservations.js | 2 +- k6/performance-tests/graphql/PossibleFilters.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) rename k6/performance-tests/{data.mjs => data.js} (98%) diff --git a/k6/performance-tests/data.mjs b/k6/performance-tests/data.js similarity index 98% rename from k6/performance-tests/data.mjs rename to k6/performance-tests/data.js index ba7d470585..9fb67ade12 100644 --- a/k6/performance-tests/data.mjs +++ b/k6/performance-tests/data.js @@ -1,4 +1,4 @@ -export const cubes = [ +const cubes = [ { iri: "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9", label: "Photovoltaikanlagen/9", @@ -83,3 +83,5 @@ export const cubes = [ }, }, ]; + +module.exports = cubes; diff --git a/k6/performance-tests/generate-github-actions.mjs b/k6/performance-tests/generate-github-actions.mjs index c0c300f0a0..dc18a64bce 100644 --- a/k6/performance-tests/generate-github-actions.mjs +++ b/k6/performance-tests/generate-github-actions.mjs @@ -1,6 +1,6 @@ import fs from "fs"; -import { cubes } from "./data.mjs"; +import cubes from "./data.js"; const envs = ["test", "int", "prod"]; const queries = [ diff --git a/k6/performance-tests/graphql/DataCubeObservations.js b/k6/performance-tests/graphql/DataCubeObservations.js index f7c734d3c5..d68d893d31 100644 --- a/k6/performance-tests/graphql/DataCubeObservations.js +++ b/k6/performance-tests/graphql/DataCubeObservations.js @@ -2,7 +2,7 @@ import { check } from "k6"; import exec from "k6/execution"; import http from "k6/http"; -import { cubes } from "../data.mjs"; +import cubes from "../data.js"; const query = `query DataCubeObservations( $sourceType: String! diff --git a/k6/performance-tests/graphql/PossibleFilters.js b/k6/performance-tests/graphql/PossibleFilters.js index 7e274d641c..b2a3024433 100644 --- a/k6/performance-tests/graphql/PossibleFilters.js +++ b/k6/performance-tests/graphql/PossibleFilters.js @@ -2,7 +2,7 @@ import { check } from "k6"; import exec from "k6/execution"; import http from "k6/http"; -import { cubes } from "../data.mjs"; +import cubes from "./data.js"; const query = `query PossibleFilters( $iri: String!