Skip to content

Commit 124f4d9

Browse files
committed
feat: remove reduntant test | increase size limit
1 parent 6ff3fc1 commit 124f4d9

2 files changed

Lines changed: 1 addition & 25 deletions

File tree

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ module.exports = [
437437
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
438438
gzip: false,
439439
brotli: false,
440-
limit: '414 KiB',
440+
limit: '420 KiB',
441441
disablePlugins: ['@size-limit/webpack'],
442442
webpack: false,
443443
modifyEsbuildConfig: function (config) {

packages/cloudflare/test/instrumentations/instrumentWorkerEntrypoint.test.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -317,30 +317,6 @@ describe('instrumentWorkerEntrypoint', () => {
317317
expect(constructorEnv).not.toBe(mockEnv);
318318
});
319319

320-
it('passes original env to the constructor when enableRpcTracePropagation is disabled', () => {
321-
const mockContext = createMockExecutionContext();
322-
const mockEnv = { SENTRY_DSN: 'dsn' };
323-
324-
let constructorEnv: unknown;
325-
const TestClass = class extends WorkerEntrypoint {
326-
constructor(ctx: ExecutionContext, env: typeof mockEnv) {
327-
super();
328-
constructorEnv = env;
329-
}
330-
fetch() {
331-
return new Response('ok');
332-
}
333-
};
334-
335-
const instrumented = instrumentWorkerEntrypoint(
336-
() => ({ enableRpcTracePropagation: false }),
337-
TestClass as unknown as WorkerEntrypointConstructor,
338-
);
339-
Reflect.construct(instrumented, [mockContext, mockEnv]);
340-
341-
expect(constructorEnv).toStrictEqual(mockEnv);
342-
});
343-
344320
it('exposes instrumented DurableObjectNamespace via this.env when enableRpcTracePropagation is enabled', async () => {
345321
vi.spyOn(SentryCore, 'getTraceData').mockReturnValue({
346322
'sentry-trace': '12345678901234567890123456789012-1234567890123456-1',

0 commit comments

Comments
 (0)