genui_mock 0.1.1
genui_mock: ^0.1.1 copied to clipboard
Record, save, and replay GenUI streaming sessions as deterministic, git-diffable JSON fixtures. Test Catalog widgets against real recorded model output with zero network calls.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add genui_mockThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
genui_mock: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:genui_mock/genui_mock.dart';