Skip to content

Commit f2cbba1

Browse files
committed
remove test
1 parent 0b1cccf commit f2cbba1

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

packages/core/test/lib/baseclient.test.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -87,44 +87,6 @@ describe('BaseClient', () => {
8787
expect(consoleWarnSpy).toHaveBeenCalledTimes(0);
8888
consoleWarnSpy.mockRestore();
8989
});
90-
91-
describe.each(['tracesSampleRate', 'tracesSampler', 'enableTracing'])('%s', key => {
92-
it('warns when set to undefined', () => {
93-
const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
94-
95-
const options = getDefaultTestClientOptions({ dsn: PUBLIC_DSN, [key]: undefined });
96-
new TestClient(options);
97-
98-
expect(consoleWarnSpy).toHaveBeenCalledTimes(1);
99-
expect(consoleWarnSpy).toBeCalledWith(
100-
`[Sentry] Deprecation warning: \`${key}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
101-
);
102-
consoleWarnSpy.mockRestore();
103-
});
104-
105-
it('warns when set to null', () => {
106-
const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
107-
108-
const options = getDefaultTestClientOptions({ dsn: PUBLIC_DSN, [key]: null });
109-
new TestClient(options);
110-
111-
expect(consoleWarnSpy).toHaveBeenCalledTimes(1);
112-
expect(consoleWarnSpy).toBeCalledWith(
113-
`[Sentry] Deprecation warning: \`${key}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
114-
);
115-
consoleWarnSpy.mockRestore();
116-
});
117-
118-
it('does not warn when set to 0', () => {
119-
const consoleWarnSpy = jest.spyOn(console, 'warn').mockImplementation(() => undefined);
120-
121-
const options = getDefaultTestClientOptions({ dsn: PUBLIC_DSN, [key]: 0 });
122-
new TestClient(options);
123-
124-
expect(consoleWarnSpy).toHaveBeenCalledTimes(0);
125-
consoleWarnSpy.mockRestore();
126-
});
127-
});
12890
});
12991

13092
describe('getOptions()', () => {

0 commit comments

Comments
 (0)