Skip to content

Commit 5bec505

Browse files
committed
chore: improve codecov
1 parent 28add87 commit 5bec505

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/__tests__/screen.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ test('screen works with nested re-mounting rerender', () => {
5252
});
5353

5454
test('screen throws without render', () => {
55+
expect(() => screen.root).toThrow('`render` method has not been called');
56+
expect(() => screen.UNSAFE_root).toThrow(
57+
'`render` method has not been called'
58+
);
5559
expect(() => screen.container).toThrow('`render` method has not been called');
5660
expect(() => screen.debug()).toThrow('`render` method has not been called');
5761
expect(() => screen.debug.shallow()).toThrow(

0 commit comments

Comments
 (0)