feat: adding unit/ui testing support
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { render } from "@testing-library/react";
|
||||
import type { ReactElement } from "react";
|
||||
|
||||
function customRender(ui: ReactElement, options = {}) {
|
||||
return render(ui, {
|
||||
// wrapper: ({ children }) => <MapProvider>{children}</MapProvider>,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
export * from "@testing-library/react";
|
||||
export { customRender as render };
|
||||
Reference in New Issue
Block a user