MCPcopy
hub / github.com/streamlit/streamlit / MockStreamlitConfigState

Interface MockStreamlitConfigState

frontend/test-globals.d.ts:28–38  ·  view source on GitHub ↗

* Type for the shared mock StreamlitConfig state used in tests. * This allows tests to control StreamlitConfig values.

Source from the content-addressed store, hash-verified

26 * This allows tests to control StreamlitConfig values.
27 */
28interface MockStreamlitConfigState {
29 BACKEND_BASE_URL?: string
30 HOST_CONFIG_BASE_URL?: string
31 DOWNLOAD_ASSETS_BASE_URL?: string
32 MAIN_PAGE_BASE_URL?: string
33 CUSTOM_COMPONENT_CLIENT_ID?: string
34 LIGHT_THEME?: unknown
35 DARK_THEME?: unknown
36 ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION?: boolean
37 HOST_CONFIG?: HostWindowConfig
38}
39
40declare global {
41 var __mockStreamlitConfig: MockStreamlitConfigState

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…