Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 03306ca

Browse files
committed
update test renderer
1 parent 05cb407 commit 03306ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/containers/App/tests/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import ShallowRenderer from 'react-test-renderer/shallow';
2+
import { createRenderer } from 'react-test-renderer/shallow';
33

44
import App from '../index';
55

6-
const renderer = new ShallowRenderer();
6+
const renderer = createRenderer();
77

88
describe('<App />', () => {
99
it('should render and match the snapshot', () => {

internals/templates/containers/App/tests/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import ShallowRenderer from 'react-test-renderer/shallow';
2+
import { createRenderer } from 'react-test-renderer/shallow';
33

44
import App from '../index';
55

6-
const renderer = new ShallowRenderer();
6+
const renderer = createRenderer();
77

88
describe('<App />', () => {
99
it('should render and match the snapshot', () => {

0 commit comments

Comments
 (0)