Add kludge to make testing-library work properly from test-utils package

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2023-03-17 08:50:30 +02:00
1 parent d90cfb168e
commit 5391c1fdab
1 file changed
+5
@@ -4,3 +4,8 @@
*/
import "@testing-library/jest-dom";
// Note: This is a kludge to prevent "Hooks cannot be defined inside tests" error
// when importing a test util inside a test suite.
import { render } from "@testing-library/react";
void render;