RemoteTestEnvironment
@midnight-ntwrk/testkit-js v3.1.0
Base class for remote test environments that connect to external network services. Provides functionality for managing walletProviders and a proof server container.
Extends
Extended by
Constructors
Constructor
new RemoteTestEnvironment(
logger):RemoteTestEnvironment
Creates a new TestEnvironment instance.
Parameters
logger
Logger
Logger instance for recording operations
Returns
RemoteTestEnvironment
Inherited from
Methods
getEnvironmentConfiguration()
abstractgetEnvironmentConfiguration():EnvironmentConfiguration
Abstract method that must be implemented by subclasses to provide environment configuration.
Returns
Configuration object containing service URLs and endpoints
Overrides
TestEnvironment.getEnvironmentConfiguration
getMidnightWalletProvider()
getMidnightWalletProvider():
Promise<MidnightWalletProvider>
Starts a single wallet instance.
Returns
Promise<MidnightWalletProvider>
A promise that resolves to the started wallet
Throws
If no wallet could be started
Inherited from
TestEnvironment.getMidnightWalletProvider
healthCheck()
healthCheck():
Promise<void>
Performs a health check for the environment. Checks the health of the node, indexer, and optionally the faucet services.
Returns
Promise<void>
A promise that resolves when the health check is complete.