Created
September 16, 2019 15:52
-
-
Save stoneboyindc/887e7c6c042f248fa3dbe202da2664d5 to your computer and use it in GitHub Desktop.
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
Watch Usage | |
› Press a to run all tests. | |
› Press f to run only failed tests. | |
› Press q to quit watch mode. | |
› Press p to filter by a filename regex pattern. | |
› Press t to filter by a test name regex pattern. | |
› Press Enter to trigger a test run. | |
PASS src/App.test.js | |
FAIL src/SearchBar/SearchBar.test.js | |
● SearchBar Component › triggers onChange event | |
Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none. | |
To configure an adapter, you should call `Enzyme.configure({ adapter: new Adapter() })` | |
before using any of Enzyme's top level APIs, where `Adapter` is the adapter | |
corresponding to the library currently being tested. For example: | |
import Adapter from 'enzyme-adapter-react-15'; | |
To find out more about this, see http://airbnb.io/enzyme/docs/installation/index.html | |
13 | | |
14 | it('triggers onChange event', () => { | |
> 15 | const wrapper = mount(<SearchBar />); | |
| ^ | |
16 | const input = wrapper.find('input'); | |
17 | input.simulate('change', { target: {value: 'changed'} }); | |
18 | console.log(input.value); | |
at validateAdapter (node_modules/enzyme/src/validateAdapter.js:5:11) | |
at getAdapter (node_modules/enzyme/src/getAdapter.js:10:3) | |
at new ReactWrapper (node_modules/enzyme/src/ReactWrapper.js:108:23) | |
at mount (node_modules/enzyme/src/mount.js:10:10) | |
at Object.it (src/SearchBar/SearchBar.test.js:15:21) | |
Test Suites: 1 failed, 1 passed, 2 total | |
Tests: 1 failed, 2 passed, 3 total | |
Snapshots: 0 total | |
Time: 3.98s | |
Ran all test suites. | |
Watch Usage: Press w to show more. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment