Skip to content

context-provider

Framework-neutral context provider for integration test state.

Each framework adapter (vitest, jest) registers resolvers via setTransportOptionsResolver and setVaultPathResolver during module initialization. Core modules call the corresponding getters to retrieve state without depending on any specific test framework.

FunctionDescription
setTransportOptionsResolverRegisters a resolver function for transport options. Called by framework adapters at module load time to bridge their native injection mechanisms.
setVaultPathResolverRegisters a resolver function for the vault path. Called by framework adapters at module load time to bridge their native injection mechanisms.
TypeDescription
TransportOptionsResolverA function that resolves the current transport options.
VaultPathResolverA function that resolves the current vault path.