Skip to content

Commit 05f488c

Browse files
committed
Update dependencies and update unit tests for React 16
Add configure and adapter for react 16 in test scripts Remove unused packages in test scripts
1 parent 067fd6e commit 05f488c

File tree

13 files changed

+815
-1740
lines changed

13 files changed

+815
-1740
lines changed

__tests__/Tag-test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import React from 'react';
22
import renderer from 'react-test-renderer';
3-
import { shallow, mount } from 'enzyme';
3+
import { shallow, configure } from 'enzyme';
44
import toJson from 'enzyme-to-json';
55
import Tag from '../src/component/js/Tag';
6+
import Adapter from 'enzyme-adapter-react-16';
7+
8+
configure({ adapter: new Adapter() });
69

710
const TAG_NAME = 'foo';
811

__tests__/Tags-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { Simulate, renderIntoDocument } from 'react-dom/test-utils';
44
import { createRenderer } from 'react-test-renderer/shallow';
55
import Tags from '../src/component/js/Tags';
66
import App from './__fixtures__/App';
7+
import { configure } from 'enzyme';
8+
import Adapter from 'enzyme-adapter-react-16';
9+
10+
configure({ adapter: new Adapter() });
711

812
const TEST_TAGS = [
913
'foo',

dist/react-tags.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)