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 8245352 commit 38deeb8Copy full SHA for 38deeb8
test/test_utils.ts
@@ -18,7 +18,9 @@ export interface DenoJson {
18
* So we need to deifnefpr test context.
19
*/
20
if (isMainThread && "register" in module) {
21
- const __dirname = path.dirname(new URL(import.meta.url).pathname);
+ const __dirname = path.dirname(
22
+ module.createRequire(import.meta.url).resolve("./test_utils.ts"),
23
+ );
24
globalThis.__dirname = __dirname;
25
}
26
0 commit comments