Skip to content

Commit cfd825e

Browse files
committed
lint
1 parent d14ae19 commit cfd825e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/nextjs/test/serverSdk.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,13 @@ describe('Server init()', () => {
129129

130130
afterEach(() => {
131131
// Clean up the cloudflare context
132-
delete (GLOBAL_OBJ as Record<symbol, unknown>)[cloudflareContextSymbol];
132+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
133+
delete (GLOBAL_OBJ as unknown as Record<symbol, unknown>)[cloudflareContextSymbol];
133134
});
134135

135136
it('sets cloudflare runtime when OpenNext context is available', () => {
136137
// Mock the OpenNext Cloudflare context
137-
(GLOBAL_OBJ as Record<symbol, unknown>)[cloudflareContextSymbol] = {
138+
(GLOBAL_OBJ as unknown as Record<symbol, unknown>)[cloudflareContextSymbol] = {
138139
ctx: {
139140
waitUntil: vi.fn(),
140141
},
@@ -151,7 +152,7 @@ describe('Server init()', () => {
151152

152153
it('sets cloudflare in SDK metadata when OpenNext context is available', () => {
153154
// Mock the OpenNext Cloudflare context
154-
(GLOBAL_OBJ as Record<symbol, unknown>)[cloudflareContextSymbol] = {
155+
(GLOBAL_OBJ as unknown as Record<symbol, unknown>)[cloudflareContextSymbol] = {
155156
ctx: {
156157
waitUntil: vi.fn(),
157158
},

0 commit comments

Comments
 (0)