diff options
author | Florian Dold <florian@dold.me> | 2022-10-31 20:28:28 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-31 20:28:28 +0100 |
commit | 2f6225f6e7cb70f1fd083a5b26143f5c8c2776c5 (patch) | |
tree | 55dde36dd5f63354d5d640141592f347ed26af40 /packages/taler-wallet-cli | |
parent | e80e3f28fe48390212ec5607648eaadc1fb1d5ea (diff) |
taler-util: fix config utils for ESM
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/testrunner.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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, |