default.test() — svelte Function Reference
Architecture documentation for the default.test() function in _config.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0e974a7d_0349_bd0d_6f40_fd5ba743b842["default.test()"] d82a085c_0fec_ca1f_1c00_4afaebeae5ea["_config.js"] 0e974a7d_0349_bd0d_6f40_fd5ba743b842 -->|defined in| d82a085c_0fec_ca1f_1c00_4afaebeae5ea style 0e974a7d_0349_bd0d_6f40_fd5ba743b842 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/hydration/samples/raw-mismatch/_config.js lines 12–16
test(assert, target) {
// We deliberately don't slow down hydration just for supporting this edge case mismatch.
// If someone really needs this and workarounds are insufficient we could add something like {@html dynamic ...}
assert.htmlEqual(target.innerHTML, 'Server');
},
Domain
Subdomains
Source
Frequently Asked Questions
What does default.test() do?
default.test() is a function in the svelte codebase, defined in packages/svelte/tests/hydration/samples/raw-mismatch/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/hydration/samples/raw-mismatch/_config.js at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free