Skip to content

Commit fada389

Browse files
coderabbitai[bot]CodeRabbit
andauthored
fix: apply CodeRabbit auto-fixes
Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
1 parent 8baf533 commit fada389

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/__tests__/context.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { describe, expect, test, mock, afterEach } from 'bun:test';
1+
import { describe, expect, test, mock, afterEach, afterAll } from 'bun:test';
22

33
// Must set __DEV__ before importing context.ts
4+
const _origDEV = (globalThis as any).__DEV__;
45
(globalThis as any).__DEV__ = true;
56

67
const mockUseContext = mock(() => ({}));
@@ -17,6 +18,10 @@ const { useUpdate } = await import('../context');
1718
const { default: i18n } = await import('../i18n');
1819

1920
describe('context', () => {
21+
afterAll(() => {
22+
(globalThis as any).__DEV__ = _origDEV;
23+
});
24+
2025
afterEach(() => {
2126
mockUseContext.mockClear();
2227
});

0 commit comments

Comments
 (0)