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