isolatedScope method
Create an isolated test scope
This creates a new scope that's completely isolated from other scopes, useful for integration tests.
Example:
final testScope = Zen.testMode().isolatedScope();
testScope.put<AuthService>(FakeAuthService());
// Use testScope in your test
// ...
testScope.dispose(); // Clean up
Implementation
ZenScope isolatedScope({String? name}) {
final scopeName =
name ?? 'TestScope-${DateTime.now().millisecondsSinceEpoch}';
ZenLogger.logDebug('🧪 Test Mode: Creating isolated scope: $scopeName');
return Zen.createScope(name: scopeName);
}