Releases: rkotze/should-enzyme
Releases · rkotze/should-enzyme
Support latest version of Should JS 13.x
Update peerDependencies and tests to support the latest version of should 13.x.
Upgrade to the latest version of other dev dependencies: Reactjs, eslint, babel ...
Upgrade jsdom to latest to fix security vulnerability in nested dev dependency hapijs/hoek v4.2.0
Modification of Assumed-Immutable Data (MAID) vulnerability.
Works with Enzyme 3
Breaking change is using the cheerio v1, null components are not present otherwise the reset of the API behaves the same.
Disabled
Updates to dependencies
Note
Need to review breaking changes to:
- sinon
- react-element-to-jsx-string
prop support deepAssert
.prop(key, value)
value now supports deepAssert for the likes of objects and arrays.- updated dependencies
data attributes
Assert on data attributes with .data(key, [value])
Props and undefined value
- New
props(object)
feature added, assert on multiple props on a component. - Changes to
attr
,prop
,state
assertions if value argument is set to undefined then it will assert the props value. E.g.prop(key) === undefined
rather than saying the prop is missing.
Present
Form input value
Assert on form inputs: <input>
<select>
and <textarea>
using new .value(string)
feature.
Text and state
text()
and state(key,[value])
assertions add.