Files
Maxim 31061a1d23 test: add react-native tests and update react-core test imports
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.
2026-05-06 16:42:15 -07:00

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();
});