runtime_suite() — svelte Function Reference
Architecture documentation for the runtime_suite() function in shared.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD b45b5cf8_6c5d_e1ba_4b66_21708749a523["runtime_suite()"] 2cf8977f_8bb9_9ef1_6e90_d6eea1dac831["shared.ts"] b45b5cf8_6c5d_e1ba_4b66_21708749a523 -->|defined in| 2cf8977f_8bb9_9ef1_6e90_d6eea1dac831 7e6c10ed_ebce_38dd_93f1_ae54318f4bf5["common_setup()"] b45b5cf8_6c5d_e1ba_4b66_21708749a523 -->|calls| 7e6c10ed_ebce_38dd_93f1_ae54318f4bf5 1edde895_4b1f_7b83_74c8_3640bf220ca9["run_test_variant()"] b45b5cf8_6c5d_e1ba_4b66_21708749a523 -->|calls| 1edde895_4b1f_7b83_74c8_3640bf220ca9 style b45b5cf8_6c5d_e1ba_4b66_21708749a523 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/shared.ts lines 144–208
export function runtime_suite(runes: boolean) {
return suite_with_variants<RuntimeTest, 'hydrate' | 'ssr' | 'async-ssr' | 'dom', CompileOptions>(
['dom', 'hydrate', 'ssr', 'async-ssr'],
(variant, config, test_name) => {
if (!async_mode && (config.skip_no_async || test_name.startsWith('async-'))) {
return true;
}
if (async_mode && config.skip_async) {
return true;
}
if (variant === 'hydrate') {
if (config.mode && !config.mode.includes('hydrate')) return 'no-test';
if (config.skip_mode?.includes('hydrate')) return true;
}
if (
variant === 'dom' &&
(config.skip_mode?.includes('client') || (config.mode && !config.mode.includes('client')))
) {
return 'no-test';
}
if (variant === 'ssr') {
if (
(config.mode && !config.mode.includes('server')) ||
(!config.test_ssr &&
config.html === undefined &&
config.ssrHtml === undefined &&
config.error === undefined &&
config.runtime_error === undefined &&
!config.mode?.includes('server'))
) {
return 'no-test';
}
if (config.skip_mode?.includes('server')) return true;
}
if (variant === 'async-ssr') {
if (!runes || !async_mode) return 'no-test';
if (
(config.mode && !config.mode.includes('async-server')) ||
(!config.test_ssr &&
config.html === undefined &&
config.ssrHtml === undefined &&
config.error === undefined &&
config.runtime_error === undefined &&
!config.mode?.includes('async-server'))
) {
return 'no-test';
}
if (config.skip_mode?.includes('async-server')) return true;
}
return false;
},
(config, cwd) => {
return common_setup(cwd, runes, config);
},
async (config, cwd, variant, common) => {
await run_test_variant(cwd, config, variant, common, runes);
}
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does runtime_suite() do?
runtime_suite() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-legacy/shared.ts.
Where is runtime_suite() defined?
runtime_suite() is defined in packages/svelte/tests/runtime-legacy/shared.ts at line 144.
What does runtime_suite() call?
runtime_suite() calls 2 function(s): common_setup, run_test_variant.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free