mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
31061a1d23
93 tests for react-native: streaming-fetch (36), provider (17), polyfills (20), headless integration (9 provider + error boundary). Update react-core test vi.mock paths from providers/CopilotKitProvider to context module. Update useAgent throttle tests for batched forceUpdate.
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
import { afterEach } from "vitest";
|
|
import { cleanup } from "@testing-library/react";
|
|
|
|
// React Native global — always true in test environment
|
|
(globalThis as any).__DEV__ = true;
|
|
|
|
afterEach(() => {
|
|
cleanup();
|
|
});
|