over_react_test 3.0.3
over_react_test: ^3.0.3 copied to clipboard
A library for testing OverReact components
OverReact Test Changelog #
3.0.0 #
- Add support for Dart null safety (#155)
- SDK / Dependency Versioning:
- Increase minimum Dart SDK version from
2.11.0to2.13.0. - Increase minimum
reactversion from6.0.1to7.0.0.
- Increase minimum Dart SDK version from
- SDK / Dependency Versioning:
2.11.6 #
- Remove usages of deprecated APIs that will be removed in react-dart 7.0.0
- Bump dependencies:
meta: ^1.8.0,test: ^1.21.1
2.11.5 #
- Unpin meta dependency
2.11.4 #
- Internal updates (dev_dependencies, CI)
2.11.3 #
- Internal updates (dev_dependencies, cleanup)
2.11.2 #
- Set minimum Dart SDK to 2.11.0
2.11.1 #
2.11.0 #
- Added support for searching within ShadowDOM roots to
queryByTestIdandqueryAllByTestId.
2.10.2 #
- Widen over_react and react version constraints in preparation for v4.0.0 and v6.0.0, respectively.
2.10.1 #
Re-tag of 2.10.0 release which was not released correctly
- Only expect
propTypeserrors in DDC runtime.
2.9.6 #
-
Fix prop forwarding tests false positives
Tests that had
commonComponentTests.getUnconsumedPropKeys()returning a list of keys that included keys within mixins that were actually being consumed by the component were not failing as expected.e.g. this situation should have resulted in test failures, but it did not:
Component's consumedProps:
@override get consumedProps => propsMeta.forMixins({ SomePropsMixin, });Component's commonComponentTests:
group('common component tests', () { commonComponentTests(ComponentFactory, getUnconsumedProps: (propsMeta) => [ ...propsMeta.forMixin(SomePropsMixin).keys, ]); });
2.9.5 #
- Add
Object.valuesshim for MSIE 11.
2.9.4 #
- Normalize the behavior of the
render()utility function betweenUiComponentandUiComponent2components. - Un-deprecate the
throwsPropError*matchers.
2.9.3 #
- Fix typo in
logsPropErrormatcher to ensure consumers can easily migrate fromthrowsPropErrorwhen appropriate.
2.9.2 #
- Move
isComponent2call inside atestblock to address consumer issues when the provided factory accesses values that are initialized withinsetUp.
2.9.1 #
- Move
getPropsMetacall inside atestblock to address consumer issues when the provided factory has required props that come fromsetUp-initialized variables.
2.9.0 #
- Add Component Version Auto Detection
- Re-instate prop forwarding tests for new over_react component boilerplate
2.8.0 #
- Update mount, render, and renderAttachedToDocument to automatically run component lifecycle in the same zone as the test.
- This fixes some
printstatements from being swallowed and some failingexpects from not failing tests properly
- This fixes some
2.7.0 #
- Add propTypes testing utilities
2.6.0 #
- Drop support for React 15
- Support Component2 in commonComponentTests
2.5.2 #
- Add support for React 16 (raise upper bound of
reactto allow 5.x,over_reactto allow 3.x) - Fix documentation link
2.5.1 #
- Accommodate findAllInRenderedTree being passed text nodes in React 16
2.5.0 #
- Update references to old JS interop helpers
- Update contributing docs
2.4.1 #
- Work around a bug in DDC where SvgElement className isn't String
2.3.0 #
- Widen over_react range to allow 2.0.0
2.2.0 #
- Update component boilerplate in preparation for over_react 2.0.0
2.1.0 #
- Update component boilerplate in preparation for over_react 2.0.0
New Features
- Dart 2 compatible!
Breaking Changes
-
The
getComponentPropKeys()andtestPropForwarding()functions have been removed, as they depended ondart:mirrors. Once there is a Dart-2-only release ofover_react, this function will be re-added and will rely on information generated by the builder rather than using mirrors. -
The
commonComponentTests()function no longer callstestPropForwarding()since it has been removed. In other words, theshouldTestPropForwardingparameter is effectively a no-op untiltestPropForwarding()can be re-added.
1.1.1 #
Bugs Fixed
- Sync common component test src with the lib it originated from.
1.1.0 #
New Features
- #11: Add some test utilities that were left in
over_reactwhen the library was first created.
1.0.0 #
Initial public release of library.