Skip to content

Commit a496028

Browse files
committed
.
1 parent 717ec90 commit a496028

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/__tests__/render.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from 'react';
22
import { Text, View } from 'react-native';
33

44
import { render, screen } from '..';
5+
import { logger } from '../helpers/logger';
56

67
test('renders a simple component', async () => {
78
const TestComponent = () => (
@@ -203,6 +204,14 @@ describe('toJSON', () => {
203204
});
204205

205206
describe('debug', () => {
207+
beforeEach(() => {
208+
jest.spyOn(logger, 'info').mockImplementation(() => {});
209+
});
210+
211+
afterEach(() => {
212+
jest.restoreAllMocks();
213+
});
214+
206215
test('debug outputs formatted component tree', async () => {
207216
const TestComponent = () => (
208217
<View testID="container">

0 commit comments

Comments
 (0)