Skip to content

Commit ab022bc

Browse files
committed
fixup! types
1 parent 596094e commit ab022bc

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

packages/wrangler/e2e/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
"module": "esnext",
66
"jsx": "preserve" // not used, but required for import of types (which transitively import jsx)
77
},
8-
"include": ["vitest.config.mts", "**/*.ts", "../src/*.d.ts", "**/*.js"],
9-
"exclude": ["unenv-preset"]
8+
"include": ["vitest.config.mts", "**/*.ts", "../src/*.d.ts", "**/*.js"]
109
}

packages/wrangler/e2e/unenv-preset/tsconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/wrangler/e2e/unenv-preset/worker/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import assert from "node:assert";
22

33
// List all the test functions.
44
// The test can be executing by fetching the `/${testName}` url.
5-
export const TESTS = {
5+
export const TESTS: Record<string, () => void> = {
66
testCryptoGetRandomValues,
77
testImplementsBuffer,
88
testNodeCompatModules,
@@ -185,11 +185,12 @@ export async function testTls() {
185185
}
186186

187187
export async function testDebug() {
188+
// @ts-expect-error Typescript can not resolve this with e2e/tsconfig.json but works on workers.
188189
const debug = await import("@cloudflare/unenv-preset/npm/debug");
189190
const logs: string[] = [];
190191

191192
// Append all logs to the array instead of logging to console
192-
debug.default.log = (...args) =>
193+
debug.default.log = (...args: string[]) =>
193194
logs.push(args.map((arg) => arg.toString()).join(" "));
194195

195196
const exampleLog = debug.default("example");

0 commit comments

Comments
 (0)