bloomBUILD•SHIP•BLOOM
.md
Test Architecture

Bloom Testing Harness

Build isolated test environments with mock dependencies and deterministic state resets.

Test Container Harness

test/test_helper.dart
dart
// test/test_helper.dart
import 'package:flutter_test/flutter_test.dart';
import 'package:bloom_framework/bloom.dart';

BloomContainer createTestContainer({
  AuthService? mockAuth,
  ApiService? mockApi,
}) {
  final container = BloomContainer();
  if (mockAuth != null) container.provideInstance<AuthService>(mockAuth);
  if (mockApi != null) container.provideInstance<ApiService>(mockApi);
  return container;
}