-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'react-test-renderer' and snapshot tests – not compatible with…
… 'react-dom' loaded by 'enzyme'. See facebook/react#7386 for more info
- Loading branch information
Mathew Hawley
committed
Sep 30, 2016
1 parent
b75213a
commit 7f6bb7d
Showing
3 changed files
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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('<App />', () => { | ||
describe('Snapshots', () => { | ||
it('should render as expected', () => { | ||
const component = renderer.create(<App />); | ||
const tree = component.toJSON(); | ||
describe('Shallow Rendering', () => { | ||
it('should render an <h1>', () => { | ||
const wrapper = shallow(<App />); | ||
|
||
expect( | ||
tree | ||
).toMatchSnapshot(); | ||
wrapper.contains(<h1>Hello, world</h1>) | ||
).toBeTruthy(); | ||
}); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.