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
copied to clipboard

With Flutter:

 $ flutter pub add nock
copied to clipboard

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
copied to clipboard

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';
copied to clipboard
23
likes
130
points
99.4k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.08 - 2025.02.20

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, test

More

Packages that depend on nock