Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/health_export_finalized_churn_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:path/path.dart' as p;
import 'package:shared_preferences/shared_preferences.dart';
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
import 'package:openstrap_edge/data/db.dart';
import 'package:openstrap_edge/health/health_export.dart';
Expand All @@ -24,6 +25,11 @@ void main() {
}

setUpAll(() async {
// The Apple nap writer reads its settings from here. Unmocked, it threw
// MissingPluginException on a macOS host (where the exporter takes the
// Apple path), every day reported "export incomplete", and the first
// pass exported 0 instead of 2.
SharedPreferences.setMockInitialValues({});
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
sqfliteFfiInit();
databaseFactory = databaseFactoryFfi;
LocalDb.dbName = 'openstrap_health_churn_test.db';
Expand Down
Loading