We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79285fe commit 7bc6767Copy full SHA for 7bc6767
test/builtins/fetch.js
@@ -1,11 +1,12 @@
1
+import { URL } from "node:url";
2
import { createServer } from "node:net";
3
4
import { strictEqual, ok } from 'node:assert';
-import { getRandomPort } from "../util";
5
6
const FETCH_URL = 'http://localhost';
7
8
export const state = async () => {
9
+ const { getRandomPort } = await import(new URL("../util", import.meta.url));
10
const port = await getRandomPort();
11
return { port };
12
};
0 commit comments