From c026f45a2ed988c1234fb8b3009cf2f482db3fce Mon Sep 17 00:00:00 2001 From: Jared Wray Date: Tue, 17 Mar 2026 15:50:21 -0700 Subject: [PATCH 1/2] fix: port issue with local mockhttp --- docker-compose.yml | 2 +- packages/net/package.json | 4 ++-- packages/net/test/fetch.test.ts | 2 +- packages/net/test/index.test.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 81e0cfb0..e8458465 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,4 @@ services: image: jaredwray/mockhttp platform: linux/amd64 ports: - - '3000:3000' + - '3737:3000' diff --git a/packages/net/package.json b/packages/net/package.json index b4a2230c..73e6afa6 100644 --- a/packages/net/package.json +++ b/packages/net/package.json @@ -30,8 +30,8 @@ "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean", "prepublish": "pnpm build", "lint": "biome check --write --error-on-warnings", - "test": "pnpm lint && TEST_URL=http://localhost:3000 vitest run --coverage", - "test:ci": "biome check --error-on-warnings && TEST_URL=http://localhost:3000 vitest run --coverage", + "test": "pnpm lint && TEST_URL=http://localhost:3737 vitest run --coverage", + "test:ci": "biome check --error-on-warnings && TEST_URL=http://localhost:3737 vitest run --coverage", "clean": "rimraf ./dist ./coverage ./node_modules" }, "devDependencies": { diff --git a/packages/net/test/fetch.test.ts b/packages/net/test/fetch.test.ts index 4a054693..357f805d 100644 --- a/packages/net/test/fetch.test.ts +++ b/packages/net/test/fetch.test.ts @@ -11,7 +11,7 @@ import { post, } from "../src/fetch.js"; -const testUrl = process.env.TEST_URL ?? "https://mockhttp.org"; +const testUrl = process.env.TEST_URL ?? "http://localhost:3737"; const testTimeout = 10_000; // 10 seconds describe("Fetch", () => { diff --git a/packages/net/test/index.test.ts b/packages/net/test/index.test.ts index ba53d6d8..b3a5d1d1 100644 --- a/packages/net/test/index.test.ts +++ b/packages/net/test/index.test.ts @@ -15,7 +15,7 @@ import { post, } from "../src/index.js"; -const testUrl = process.env.TEST_URL ?? "https://mockhttp.org"; +const testUrl = process.env.TEST_URL ?? "http://localhost:3737"; const testTimeout = 10_000; // 10 seconds describe("Cacheable Net", () => { From 26a844ae1713d483167a414831e04ca13828aa39 Mon Sep 17 00:00:00 2001 From: Jared Wray Date: Tue, 17 Mar 2026 15:59:19 -0700 Subject: [PATCH 2/2] fixing fall back --- packages/net/test/fetch.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/net/test/fetch.test.ts b/packages/net/test/fetch.test.ts index 357f805d..4a054693 100644 --- a/packages/net/test/fetch.test.ts +++ b/packages/net/test/fetch.test.ts @@ -11,7 +11,7 @@ import { post, } from "../src/fetch.js"; -const testUrl = process.env.TEST_URL ?? "http://localhost:3737"; +const testUrl = process.env.TEST_URL ?? "https://mockhttp.org"; const testTimeout = 10_000; // 10 seconds describe("Fetch", () => {