over_react_test 2.10.0 over_react_test: ^2.10.0 copied to clipboard
A library for testing OverReact components
OverReact Test Changelog #
2.9.7 #
- Only expect
propTypes
errors 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.values
shim for MSIE 11.
2.9.4 #
- Normalize the behavior of the
render()
utility function betweenUiComponent
andUiComponent2
components. - Un-deprecate the
throwsPropError*
matchers.
2.9.3 #
- Fix typo in
logsPropError
matcher to ensure consumers can easily migrate fromthrowsPropError
when appropriate.
2.9.2 #
- Move
isComponent2
call inside atest
block to address consumer issues when the provided factory accesses values that are initialized withinsetUp
.
2.9.1 #
- Move
getPropsMeta
call inside atest
block 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
print
statements from being swallowed and some failingexpect
s 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
react
to allow 5.x,over_react
to 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, theshouldTestPropForwarding
parameter 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_react
when the library was first created.
1.0.0 #
Initial public release of library.