Skip to content

Commit 057416d

Browse files
committed
Fix lint and type errors
- Fix unused imports in dev-registry.test.ts - Fix RequestInfo type to Request | string | URL - Exclude vitest.config.mts from tsconfig type checking
1 parent 713172d commit 057416d

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

packages/edge-preview-authenticated-proxy/tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function removeUUID(str: string) {
1414

1515
// Mock implementation for the remote worker
1616
function createMockFetchImplementation() {
17-
return async (input: RequestInfo | URL, init?: RequestInit) => {
17+
return async (input: Request | string | URL, init?: RequestInit) => {
1818
const request = new Request(input, init);
1919
const url = new URL(request.url);
2020

packages/edge-preview-authenticated-proxy/tests/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lib": ["esnext"],
55
"module": "esnext",
66
"moduleResolution": "bundler",
7-
"types": ["@cloudflare/vitest-pool-workers/latest"],
7+
"types": ["@cloudflare/vitest-pool-workers"],
88
"allowJs": true,
99
"checkJs": false,
1010
"noEmit": true,

packages/edge-preview-authenticated-proxy/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"strict": true /* Enable all strict type-checking options. */,
1919
"skipLibCheck": true /* Skip type checking all .d.ts files. */
2020
},
21-
"exclude": ["**/*.test.ts"]
21+
"exclude": ["**/*.test.ts", "vitest.config.mts"]
2222
}

packages/wrangler/e2e/dev-registry.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { execSync } from "node:child_process";
21
import getPort from "get-port";
32
import dedent from "ts-dedent";
43
import { fetch, Request } from "undici";
@@ -7,8 +6,7 @@ import { WranglerE2ETestHelper } from "./helpers/e2e-wrangler-test";
76
import { fetchText } from "./helpers/fetch-text";
87
import { generateResourceName } from "./helpers/generate-resource-name";
98
import { normalizeOutput } from "./helpers/normalize";
10-
import { seed as baseSeed, makeRoot, seed } from "./helpers/setup";
11-
import { WRANGLER_IMPORT } from "./helpers/wrangler";
9+
import { seed as baseSeed, makeRoot } from "./helpers/setup";
1210
import type { RequestInit } from "undici";
1311

1412
async function fetchJson<T>(url: string, info?: RequestInit): Promise<T> {

0 commit comments

Comments
 (0)