Skip to content

Commit 0e808b7

Browse files
committed
lint
1 parent 16a02d8 commit 0e808b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/bundler-plugin-core/test/debug-id-upload.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as path from "path";
44
import * as os from "os";
55
import { prepareBundleForDebugIdUpload } from "../src/debug-id-upload";
66
import type { RewriteSourcesHook } from "../src/types";
7+
import { Logger } from "../src";
78

89
describe("prepareBundleForDebugIdUpload", () => {
910
let tmpDir: string;
@@ -42,7 +43,7 @@ describe("prepareBundleForDebugIdUpload", () => {
4243
})
4344
);
4445

45-
const capturedContexts: Array<{ mapDir: string }> = [];
46+
const capturedContexts: Array<{ mapDir?: string } | undefined> = [];
4647
const rewriteHook: RewriteSourcesHook = (source, _map, context) => {
4748
capturedContexts.push(context);
4849
return source;
@@ -53,13 +54,13 @@ describe("prepareBundleForDebugIdUpload", () => {
5354
warn: vi.fn(),
5455
error: vi.fn(),
5556
debug: vi.fn(),
56-
};
57+
};
5758

5859
await prepareBundleForDebugIdUpload(
5960
bundlePath,
6061
uploadDir,
6162
0,
62-
logger as any,
63+
logger as Logger,
6364
rewriteHook,
6465
undefined
6566
);

0 commit comments

Comments
 (0)