mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
parent
d90cfb168e
commit
5391c1fdab
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user