Skip to content

Commit 55175be

Browse files
debug(test): print fetch url
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent 82fa90c commit 55175be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/builtins/fetch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ export const state = async () => {
1515

1616
export const source = (testState) => {
1717
let port = testState?.port ? ':' + testState.port : '';
18+
const url = FETCH_URL + port;
19+
console.error('[test] fetch.js visiting URL', url);
1820
return `
1921
export async function run () {
20-
const res = await fetch('${FETCH_URL}${port}');
22+
const res = await fetch('${url}');
2123
const source = await res.json();
2224
console.log(source.url);
2325
}

0 commit comments

Comments
 (0)