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 9a3cb9d4_cbfc_269d_4b85_1a30e04c75ee["default.test()"] 602586e6_1ea1_da5d_4e09_6a15b2333541["_config.js"] 9a3cb9d4_cbfc_269d_4b85_1a30e04c75ee -->|defined in| 602586e6_1ea1_da5d_4e09_6a15b2333541 style 9a3cb9d4_cbfc_269d_4b85_1a30e04c75ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-runes/samples/async-each-keyed/_config.js lines 17–40
async test({ assert, target }) {
const [reset, one, two, three] = target.querySelectorAll('button');
one.click();
await tick();
const [div] = target.querySelectorAll('div');
assert.htmlEqual(div.innerHTML, '<p>a</p><p>b</p><p>c</p>');
reset.click();
await tick();
assert.htmlEqual(div.innerHTML, '<p>a</p><p>b</p><p>c</p>');
two.click();
await tick();
assert.htmlEqual(div.innerHTML, '<p>d</p><p>e</p><p>f</p><p>g</p>');
reset.click();
await tick();
three.click();
await tick();
assert.include(target.innerHTML, '<p>each_key_duplicate');
}
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/async-each-keyed/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/async-each-keyed/_config.js at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free