TestModeDetector

Helper class for detecting test environments. This provides multiple detection methods to ensure test environments are properly detected. Also supports explicit test mode enablement for more reliable test execution.

Functions

Link copied to clipboard

Explicitly disable test mode. This allows test classes to reset the test mode state.

Link copied to clipboard

Explicitly enable test mode. This allows test classes to force test mode when necessary.

Link copied to clipboard

Determine if the app is running in a test environment. This method uses multiple detection strategies for higher reliability.