inline_snapshot 1.0.2 copy "inline_snapshot: ^1.0.2" to clipboard
inline_snapshot: ^1.0.2 copied to clipboard

Inline snapshot testing for Dart. Allows updating expected results based on actual results.

example/inline_snapshot_example.dart

import 'package:test/test.dart';
import 'package:inline_snapshot/inline_snapshot.dart';

void main() {
  tearDownAll(() async {
    await Expect.apply();
  });

  group('A group of tests', () {
    test('First Test', () {
      var e = Expect();
      //             ^replace "actual string" when run `UPDATE_EXPECT dart test`
      e.eq("actual string");
    });
  });
}
0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Inline snapshot testing for Dart. Allows updating expected results based on actual results.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

analyzer, codemod, stack_trace, test

More

Packages that depend on inline_snapshot