flutter_hooks_test 2.0.0 copy "flutter_hooks_test: ^2.0.0" to clipboard
flutter_hooks_test: ^2.0.0 copied to clipboard

Simple and complete Flutter hooks testing utilities that encourage good testing practices.

2.0.0 #

BREAKING CHANGES

  • Remove debug() methods from HookResult and _HookTestingAction classes
  • Internal implementation restructured with new base classes

Features

  • Add type-safe API with separate buildHook() and buildHookWithProps() functions
  • Implement build history tracking with result.all and result.buildCount properties
  • Add waitFor utilities for async testing scenarios
    • waitFor(condition) - Wait for condition to become true
    • waitForValueToChange(getValue) - Wait for value to change
    • result.waitForNextUpdate() - Wait for hook rebuild
    • result.waitForValueToMatch(predicate) - Wait for specific condition

Improvements

  • Improve DartDoc accuracy and clarity
  • Update documentation with Flutter terminology (widget vs component)
  • Better error messages and examples in documentation

1.0.0 #

Feature

  • Update flutter_hooks to "^0.21.2"

Development

  • Update to Melos 6.3.3

0.0.7+1 #

Development

  • Update some documents

0.0.6, 0.0.7 #

Feature

  • #40 Add a parameter "wrapper" to allow adding providers to hooks. by @KalSat

    final result = await buildHook(
      (_) {
        buildCount++;
        return useUpdate();
      },
      wrapper: (child) => Container(child: child), // this
    );
    
  • Update Flutter to ">=3.20.0"

  • Update flutter_hooks to ">=0.20.0"

0.0.5 #

Feature

  • #35 Support Flutter 3.16.0.

0.0.3, 0.0.4 #

Feature

  • Update Dart to ">=2.17.0 <4.0.0"
  • Update Flutter to ">=3.0.0"
  • Update flutter_hooks to ">=0.18.0"

Development

  • Update to Melos 3.0.1

0.0.1, 0.0.2 #

initial release.

9
likes
160
points
2.29k
downloads

Publisher

verified publisherwasabeef.jp

Weekly Downloads

Simple and complete Flutter hooks testing utilities that encourage good testing practices.

Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_hooks, flutter_test

More

Packages that depend on flutter_hooks_test