Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributemock_supabase_http_client

A mock Supabase client for unit testing API calls without network requests.

pub.devRemove
nock

HTTP requests mocking library for Dart and Flutter.

pub.devRemove
ScoresHealth71 (best)46
Maintenance66 (best)1
Quality96 (best)87
Popularity2962 (best)
Community74 (best)23
Compatibility100 (best)85
UsageDownloads (30 days)1.2k53k (best)
Likes2224 (best)
Pub points150 / 160 (best)130 / 160
GitHub stars1519 (best)
MaintenanceLatest release0.1.0, 2 months ago (best)1.2.3, 3 years ago
Major versions in 12 months00
Contributors7 (best)4
Publishersupabase.ioUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies22
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Allows testing database operations and filtering easily in memory
  • Supports custom edge function handlers and mock RPC functions
  • Provides error trigger callbacks to simulate postgrest exceptions
  • Supports multiple HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD).
  • Allows custom matchers for URLs, query parameters, and request bodies.
  • Supports persistent mocks and response delays.
Weaknesses
  • Discontinued in favor of supabase_test once supabase_flutter v3 is released
  • Does not support nested referenced table data or table schemas
  • Does not support auth, realtime, or storage
  • Throws `NetConnectionNotAllowed` if a request is not explicitly mocked, which might require careful setup in complex tests.
WarningsNoneNone
mock_supabase_http_client vs nock: which Flutter package should you use? | pubscout