We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab9ce3 commit 7426245Copy full SHA for 7426245
packages/vault-sdk/tests/env-setup.ts
@@ -1,4 +1,6 @@
1
-import { join } from "node:path";
2
-import { cwd, loadEnvFile } from "node:process";
+import { dirname, join } from "node:path";
+import { loadEnvFile } from "node:process";
3
+import { fileURLToPath } from "node:url";
4
-loadEnvFile(join(cwd(), "tests", ".env"));
5
+const __dirname = dirname(fileURLToPath(import.meta.url));
6
+loadEnvFile(join(__dirname, ".env"));
0 commit comments