Skip to content

Commit 7ce625d

Browse files
committed
Fix the unit tests!
1 parent fd7eeb8 commit 7ce625d

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

packages/bundler-plugin-core/test/build-plugin-manager.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const { mockCliExecute, mockCliUploadSourceMaps, mockCliNewDeploy, mockCliConstr
1616
}));
1717

1818
vi.mock("@sentry/cli", () => ({
19-
default: class {
19+
SentryCli: class {
2020
constructor(...args: unknown[]) {
2121
mockCliConstructor(...args);
2222
}
@@ -301,7 +301,6 @@ describe("createSentryBuildPluginManager", () => {
301301
dist: "1",
302302
}),
303303
]),
304-
live: "rejectOnError",
305304
})
306305
);
307306
// Should not glob when prepareArtifacts is false
@@ -340,7 +339,6 @@ describe("createSentryBuildPluginManager", () => {
340339
dist: "1",
341340
}),
342341
]),
343-
live: "rejectOnError",
344342
})
345343
);
346344
expect(mockGlobFiles).not.toHaveBeenCalled();
@@ -420,7 +418,6 @@ describe("createSentryBuildPluginManager", () => {
420418
expect(mockCliUploadSourceMaps).toHaveBeenCalledWith("some-release-name", {
421419
include: [{ paths: ["/tmp/sentry-upload-xyz"], rewrite: false, dist: "1" }],
422420
projects: ["p"],
423-
live: "rejectOnError",
424421
});
425422
});
426423
});
@@ -471,7 +468,7 @@ describe("createSentryBuildPluginManager", () => {
471468

472469
expect(mockCliExecute).toHaveBeenCalledWith(
473470
["sourcemaps", "inject", "--ignore", "node_modules", "/path/to/bundle"],
474-
"rejectOnError"
471+
true
475472
);
476473
});
477474
});

packages/bundler-plugin-core/test/sentry/telemetry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { mockCliExecute } = vi.hoisted(() => ({
88
}));
99

1010
vi.mock("@sentry/cli", () => ({
11-
default: class {
11+
SentryCli: class {
1212
execute = mockCliExecute;
1313
},
1414
}));

0 commit comments

Comments
 (0)