Releases: voodoocreation/react-test-wrapper
Add `HookWrapper` class + add `updateProps` function to `Wrapper` classes
Changes
This version includes a new HookWrapper
abstract class (docs), as well as adds support for all Wrapper
classes to return an updateProps
function with the rest of the return values of the .render()
method.
Update to React 18 + remove Enzyme support
Changes
This version upgrades React to support version 18, and removes Enzyme support.
Update dependencies + fix RTL id query
3.0.5 update deps + fix id query function
Update documentation
3.0.4 fix docs
Fix busted package
Changes
The previous versions resulted in busted package contents - this version fixes that.
Remove `dist` from import paths
Changes
The previous version accidentally included dist
in the package contents - this version removes that to fix the import paths.
Add support for `react-testing-library`
Changes
This version adds variants of the Wrapper
classes, with some additional tools for react-testing-library
.
To cater for one or the other, the import paths had to be changed, so now instead of this:
import { Wrapper } from "react-test-wrapper";
You now have to use one of these depending on which tooling you'd like to use:
// For enzyme
import { Wrapper } from "react-test-wrapper/enzyme";
// For react-testing-library
import { Wrapper } from "react-test-wrapper/react-testing-library";
For more details, please refer to the documentation in the README.
Update dependencies
2.1.1 bump version
Update dependencies
2.1.0 update dependencies
Update dependencies
2.0.3 update dependencies