diff --git a/package.json b/package.json index 0362184..8e240c5 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "ncp": "^2.0.0", "pre-commit": "^1.1.3", "react-addons-test-utils": "^15.3.2", - "react-test-renderer": "^15.3.2", "webpack": "^1.13.2", "webpack-dev-server": "^1.16.1" }, diff --git a/src/components/App/App.spec.js b/src/components/App/App.spec.js index 8ad9b98..37b6fd8 100644 --- a/src/components/App/App.spec.js +++ b/src/components/App/App.spec.js @@ -1,19 +1,18 @@ /* eslint-env jest */ import React from 'react'; -import renderer from 'react-test-renderer'; +import { shallow } from 'enzyme'; import { App } from './App'; describe('', () => { - describe('Snapshots', () => { - it('should render as expected', () => { - const component = renderer.create(); - const tree = component.toJSON(); + describe('Shallow Rendering', () => { + it('should render an

', () => { + const wrapper = shallow(); expect( - tree - ).toMatchSnapshot(); + wrapper.contains(

Hello, world

) + ).toBeTruthy(); }); }); }); diff --git a/src/components/App/__snapshots__/App.spec.js.snap b/src/components/App/__snapshots__/App.spec.js.snap deleted file mode 100644 index a8f4fa2..0000000 --- a/src/components/App/__snapshots__/App.spec.js.snap +++ /dev/null @@ -1,5 +0,0 @@ -exports[` Snapshots should render as expected 1`] = ` -

- Hello, world -

-`;