nock 1.2.3 copy "nock: ^1.2.3" to clipboard
nock: ^1.2.3 copied to clipboard

HTTP requests mocking library for dart and flutter. Test your application in isolation.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add nock

With Flutter:

 $ flutter pub add nock

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  nock: ^1.2.3

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:nock/nock.dart';
23
likes
130
pub points
86%
popularity

Publisher

unverified uploader

HTTP requests mocking library for dart and flutter. Test your application in isolation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, test

More

Packages that depend on nock