Sqflite Common Ffi Testing

Use when writing or fixing unit tests, widget tests or CI runs for code that uses sqflite (Dart VM or Flutter, no device or emulator) with package:sqflite_common_ffi: sqfliteFfiInit in main or setUpAll, opening inMemoryDatabasePath with databaseFactoryFfi, replacing the global databaseFactory so existing openDatabase code runs in flutter test, databaseFactoryFfiNoIsolate for testWidgets, @TestOn('vm'), temporary database files and deleteDatabase, asserting on DatabaseException.

tekartik 8aeb24a 9.1 KB Updated

File contents

tekartik/sqflite/tree/main/sqflite_common_ffi/skills/sqflite-common-ffi-testing commit 8aeb24a6f0

Frequently asked questions

npx skillmds@latest add tekartik/sqflite-common-ffi-testing