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 fa06fc55_e552_d752_1ead_87513aa10bc6["default.test()"] 16b40027_e7c1_1003_2c3c_dcd1db6a15d7["_config.js"] fa06fc55_e552_d752_1ead_87513aa10bc6 -->|defined in| 16b40027_e7c1_1003_2c3c_dcd1db6a15d7 style fa06fc55_e552_d752_1ead_87513aa10bc6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-runes/samples/hydrate-modified-input-group/_config.js lines 7–19
test({ assert, target, hydrate }) {
const inputs = /** @type {NodeListOf<HTMLInputElement>} */ (target.querySelectorAll('input'));
inputs[1].checked = true;
inputs[1].dispatchEvent(new window.Event('change'));
// Hydration shouldn't reset the value to 1
hydrate();
flushSync();
assert.htmlEqual(
target.innerHTML,
'<input name="foo" type="radio" value="1"><input name="foo" type="radio" value="2"><input name="foo" type="radio" value="3">\n2'
);
}
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/runtime-runes/samples/hydrate-modified-input-group/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/hydrate-modified-input-group/_config.js at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free