HydrationTest Type — svelte Architecture
Architecture documentation for the HydrationTest type/interface in test.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD d08c8f21_da10_f5a7_07ce_cb8387a33f4d["HydrationTest"] 241c2922_c732_530f_f92d_772220952a6f["test.ts"] d08c8f21_da10_f5a7_07ce_cb8387a33f4d -->|defined in| 241c2922_c732_530f_f92d_772220952a6f style d08c8f21_da10_f5a7_07ce_cb8387a33f4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/hydration/test.ts lines 14–39
interface HydrationTest extends BaseTest {
load_compiled?: boolean;
server_props?: Record<string, any>;
id_prefix?: string;
props?: Record<string, any>;
compileOptions?: Partial<CompileOptions>;
/**
* By default, whitespace between ssr comments is removed so the output looks a bit more readable.
* Some tests rely on the whitespace being there, so set this to false to disable the removal.
*/
trim_whitespace?: false;
expect_hydration_error?: true;
snapshot?: (target: HTMLElement) => any;
test?: (
assert: typeof import('vitest').assert & {
htmlEqual(a: string, b: string, description?: string): void;
},
target: HTMLElement,
snapshot: any,
component: any,
window: any
) => void | Promise<void>;
before_test?: () => void;
after_test?: () => void;
errors?: any[];
}
Defined In
Source
Frequently Asked Questions
What is the HydrationTest type?
HydrationTest is a type/interface in the svelte codebase, defined in packages/svelte/tests/hydration/test.ts.
Where is HydrationTest defined?
HydrationTest is defined in packages/svelte/tests/hydration/test.ts at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free