Skip to content

Commit ea898ff

Browse files
author
Luca Forstner
committed
Remove tests that no longer apply
1 parent 4a20be7 commit ea898ff

File tree

2 files changed

+0
-74
lines changed

2 files changed

+0
-74
lines changed

packages/rollup-plugin/test/public-api.test.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,41 +31,4 @@ describe("sentryRollupPlugin", () => {
3131
"sentry-file-deletion-plugin",
3232
]);
3333
});
34-
35-
it("doesn't include release management and debug id upload plugins if NODE_ENV is 'development'", () => {
36-
const originalNodeEnv = process.env["NODE_ENV"];
37-
process.env["NODE_ENV"] = "development";
38-
39-
const consoleSpy = jest.spyOn(console, "debug").mockImplementation(() => {
40-
/* avoid test output pollution */
41-
});
42-
43-
const plugins = sentryRollupPlugin({
44-
authToken: "test-token",
45-
org: "test-org",
46-
project: "test-project",
47-
debug: true,
48-
}) as Plugin[];
49-
50-
expect(Array.isArray(plugins)).toBe(true);
51-
52-
const pluginNames = plugins.map((plugin) => plugin.name);
53-
54-
expect(pluginNames).toEqual([
55-
"sentry-telemetry-plugin",
56-
"sentry-rollup-release-injection-plugin",
57-
"sentry-rollup-debug-id-injection-plugin",
58-
"sentry-file-deletion-plugin",
59-
]);
60-
61-
expect(consoleSpy).toHaveBeenCalledWith(
62-
expect.stringContaining("Running in development mode. Will not create release.")
63-
);
64-
65-
expect(consoleSpy).toHaveBeenCalledWith(
66-
expect.stringContaining("Running in development mode. Will not upload sourcemaps.")
67-
);
68-
69-
process.env["NODE_ENV"] = originalNodeEnv;
70-
});
7134
});

packages/vite-plugin/test/public-api.test.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,41 +31,4 @@ describe("sentryVitePlugin", () => {
3131
"sentry-file-deletion-plugin",
3232
]);
3333
});
34-
35-
it("doesn't include release management and debug id upload plugins if NODE_ENV is 'development'", () => {
36-
const originalNodeEnv = process.env["NODE_ENV"];
37-
process.env["NODE_ENV"] = "development";
38-
39-
const consoleSpy = jest.spyOn(console, "debug").mockImplementation(() => {
40-
/* avoid test output pollution */
41-
});
42-
43-
const plugins = sentryVitePlugin({
44-
authToken: "test-token",
45-
org: "test-org",
46-
project: "test-project",
47-
debug: true,
48-
}) as VitePlugin[];
49-
50-
expect(Array.isArray(plugins)).toBe(true);
51-
52-
const pluginNames = plugins.map((plugin) => plugin.name);
53-
54-
expect(pluginNames).toEqual([
55-
"sentry-telemetry-plugin",
56-
"sentry-vite-release-injection-plugin",
57-
"sentry-vite-debug-id-injection-plugin",
58-
"sentry-file-deletion-plugin",
59-
]);
60-
61-
expect(consoleSpy).toHaveBeenCalledWith(
62-
expect.stringContaining("Running in development mode. Will not create release.")
63-
);
64-
65-
expect(consoleSpy).toHaveBeenCalledWith(
66-
expect.stringContaining("Running in development mode. Will not upload sourcemaps.")
67-
);
68-
69-
process.env["NODE_ENV"] = originalNodeEnv;
70-
});
7134
});

0 commit comments

Comments
 (0)