From 2f6225f6e7cb70f1fd083a5b26143f5c8c2776c5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 31 Oct 2022 20:28:28 +0100 Subject: taler-util: fix config utils for ESM --- packages/taler-wallet-cli/src/integrationtests/testrunner.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-cli/src/integrationtests') diff --git a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts index e4a2193bb..c75cff7c0 100644 --- a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts +++ b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts @@ -19,6 +19,7 @@ import * as child_process from "child_process"; import * as fs from "fs"; import * as os from "os"; import * as path from "path"; +import url from "url"; import { GlobalTestState, runTestWithState, @@ -287,7 +288,9 @@ export async function runTests(spec: TestRunSpec) { testRootDir, }; - currentChild = child_process.fork(__filename, ["__TWCLI_TESTWORKER"], { + const myFilename = url.fileURLToPath(import.meta.url); + + currentChild = child_process.fork(myFilename, ["__TWCLI_TESTWORKER"], { env: { TWCLI_RUN_TEST_INSTRUCTION: JSON.stringify(testInstr), ...process.env, -- cgit v1.2.3