We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 717ec90 commit a496028Copy full SHA for a496028
src/__tests__/render.test.tsx
@@ -2,6 +2,7 @@ import * as React from 'react';
2
import { Text, View } from 'react-native';
3
4
import { render, screen } from '..';
5
+import { logger } from '../helpers/logger';
6
7
test('renders a simple component', async () => {
8
const TestComponent = () => (
@@ -203,6 +204,14 @@ describe('toJSON', () => {
203
204
});
205
206
describe('debug', () => {
207
+ beforeEach(() => {
208
+ jest.spyOn(logger, 'info').mockImplementation(() => {});
209
+ });
210
+
211
+ afterEach(() => {
212
+ jest.restoreAllMocks();
213
214
215
test('debug outputs formatted component tree', async () => {
216
217
<View testID="container">
0 commit comments