react-children-utilities
Advanced tools
Comparing version 0.1.16 to 0.2.0
module.exports = { | ||
collectCoverageFrom: ['src/**'], | ||
setupFiles: [ | ||
require.resolve('raf/polyfill'), | ||
], | ||
setupTestFrameworkScriptFile: './node_modules/jest-enzyme/lib/index.js', | ||
}; |
{ | ||
"name": "react-children-utilities", | ||
"version": "0.1.16", | ||
"version": "0.2.0", | ||
"description": "Extended utils for React.Children opaque data structure", | ||
@@ -36,5 +36,6 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"react": "15.x" | ||
"peerDependencies": { | ||
"react": "15.x || 16.x" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -49,3 +50,4 @@ "babel-cli": "^6.26.0", | ||
"coveralls": "^2.13.1", | ||
"enzyme": "^2.9.1", | ||
"enzyme": "^3.0.0", | ||
"enzyme-adapter-react-16": "^1.0.0", | ||
"eslint": "^4.7.2", | ||
@@ -58,8 +60,9 @@ "eslint-config-airbnb": "^15.1.0", | ||
"jest": "^21.2.0", | ||
"jest-enzyme": "^3.8.3", | ||
"jest-enzyme": "^4.0.0", | ||
"prepare-commit-msg-angular": "^0.2.0", | ||
"prop-types": "^15.6.0", | ||
"react-addons-test-utils": "15.x", | ||
"react-dom": "15.x", | ||
"react-test-renderer": "15.x", | ||
"raf": "^3.3.2", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-test-renderer": "^16.0.0", | ||
"validate-commit-msg": "^2.14.0" | ||
@@ -66,0 +69,0 @@ }, |
@@ -25,4 +25,6 @@ # React Children Utilities | ||
This is a peer dependency so react must be present | ||
``` | ||
npm install --save react-children-utilities | ||
npm install --save react-children-utilities react | ||
``` | ||
@@ -29,0 +31,0 @@ |
import React, { cloneElement } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { shallow } from 'enzyme'; | ||
import Enzyme, { shallow } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import Children from '../src/'; | ||
Enzyme.configure({ adapter: new Adapter() }); | ||
describe('Children', () => { | ||
@@ -34,3 +37,3 @@ it('filter', () => { | ||
expect(wrapper.find('.rest strong')).toHaveLength(1); | ||
expect(wrapper.find('.empty *')).toBeEmpty(); | ||
expect(wrapper.find('.empty').children()).toBeEmpty(); | ||
}); | ||
@@ -37,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23022
229
98
25
+ Addedreact@16.14.0(transitive)
- Removedreact@15.x
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.39(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)