QanetTestEnvironment
For the complete documentation index, see llms.txt
@midnight-ntwrk/testkit-js v4.0.4
Test environment configuration for the Midnight QA network. Provides URLs and endpoints for QA network services.
Extends
Constructors
Constructor
new QanetTestEnvironment(
logger):QanetTestEnvironment
Creates a new TestEnvironment instance.
Parameters
logger
Logger
Logger instance for recording operations
Returns
QanetTestEnvironment
Inherited from
RemoteTestEnvironment.constructor
Methods
getEnvironmentConfiguration()
getEnvironmentConfiguration():
EnvironmentConfiguration
Returns the configuration for the QA network environment services.
Returns
Object containing URLs for QA network services:
- indexer: GraphQL API endpoint for the indexer
- indexerWS: WebSocket endpoint for the indexer
- node: RPC endpoint for the blockchain node
- faucet: API endpoint for requesting test tokens
- proofServer: URL for the proof generation server
Overrides
RemoteTestEnvironment.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
RemoteTestEnvironment.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.