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 83cf8c78_e4fc_5bf1_d514_5b9cb52aabaf["default.test()"] 0935eaf0_cb5c_9231_9fb5_e355d3143042["_config.js"] 83cf8c78_e4fc_5bf1_d514_5b9cb52aabaf -->|defined in| 0935eaf0_cb5c_9231_9fb5_e355d3143042 style 83cf8c78_e4fc_5bf1_d514_5b9cb52aabaf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/each-block-keyed/_config.js lines 24–34
test({ assert, component, target }) {
const [p1, p2] = target.querySelectorAll('p');
component.todos = [{ id: 234, description: 'implement client-side hydration' }];
assert.htmlEqual(target.innerHTML, '<p>1: implement client-side hydration</p>');
const [p3] = target.querySelectorAll('p');
assert.ok(!target.contains(p1), 'first `<p>` element should be removed');
assert.equal(p2, p3, 'second `<p>` element should be retained');
}
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-legacy/samples/each-block-keyed/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/each-block-keyed/_config.js at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free