context-provider
Framework-neutral context provider for integration test state.
Each framework adapter (vitest, jest) registers resolvers via setTransportOptionsResolver, setVaultPathResolver and setSetupErrorResolver during module initialization. Core modules call the corresponding getters to retrieve state without depending on any specific test framework.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| setSetupErrorResolver | Registers a resolver function for this project’s setup failure. Called by framework adapters at module load time to bridge their native injection mechanisms — most importantly in the per-worker setup file, which is where the failure has to be seen (see vitest/setup.ts). |
| setTransportOptionsResolver | Registers a resolver function for transport options. Called by framework adapters at module load time to bridge their native injection mechanisms. |
| setVaultPathResolver | Registers a resolver function for the vault path. Called by framework adapters at module load time to bridge their native injection mechanisms. |
| Type | Description |
|---|---|
| SetupErrorResolver | A function that resolves the failure of this project’s global setup, if it failed. |
| TransportOptionsResolver | A function that resolves the current transport options. |
| VaultPathResolver | A function that resolves the current vault path. |