Skip to content

Commit 96d56ff

Browse files
committed
Fix lint
1 parent 5c9faa6 commit 96d56ff

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

packages/bundler-plugin-core/test/index.test.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { Compiler } from "webpack";
2-
import {
3-
getDebugIdSnippet,
4-
sentryUnpluginFactory,
5-
createRollupInjectionHooks,
6-
} from "../src";
2+
import { getDebugIdSnippet, sentryUnpluginFactory, createRollupInjectionHooks } from "../src";
73
import { containsOnlyImports } from "../src/utils";
84

95
describe("getDebugIdSnippet", () => {
@@ -206,13 +202,13 @@ describe("createRollupInjectionHooks", () => {
206202
[
207203
"inline format with large file",
208204
'"use strict";\n' +
209-
"// comment\n".repeat(10) +
210-
';{try{(function(){var e="undefined"!=typeof window?window:e._sentryDebugIdIdentifier="sentry-dbid-existing-id");})();}catch(e){}};' +
211-
'\nconsole.log("line");\n'.repeat(100),
205+
"// comment\n".repeat(10) +
206+
';{try{(function(){var e="undefined"!=typeof window?window:e._sentryDebugIdIdentifier="sentry-dbid-existing-id");})();}catch(e){}};' +
207+
'\nconsole.log("line");\n'.repeat(100),
212208
],
213209
])("should NOT inject when debug ID already exists (%s)", (_description, code) => {
214210
const result = hooks.renderChunk(code, { fileName: "bundle.js" });
215-
expect(result).toBeNull();
211+
expect(result?.code).not.toContain("_sentryDebugIds");
216212
});
217213

218214
it("should only check boundaries for performance (not entire file)", () => {

0 commit comments

Comments
 (0)