The DataGrid component can be considered as the core one, which provides a full controlled component, but more complicated than SimpleDataGrid which is based on DataGrid. SimpleDataGrid is intended to give a simple ready-to-use data grid for client side data for example.
8 lines
220 B
TypeScript
8 lines
220 B
TypeScript
import createFetchMock from "vitest-fetch-mock";
|
|
import { vi } from "vitest";
|
|
|
|
const fetchMocker = createFetchMock(vi);
|
|
|
|
// sets globalThis.fetch and globalThis.fetchMock to our mocked version
|
|
fetchMocker.enableMocks();
|