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 1eab7735_d1c4_6dfe_b269_460f88a0f475["default.test()"] 7cc2568e_f0a8_6ac5_c36c_898c3b6d60eb["_config.js"] 1eab7735_d1c4_6dfe_b269_460f88a0f475 -->|defined in| 7cc2568e_f0a8_6ac5_c36c_898c3b6d60eb style 1eab7735_d1c4_6dfe_b269_460f88a0f475 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-runes/samples/pre-effect-ordering/_config.js lines 5–26
async test({ assert, target, logs }) {
const [b1] = target.querySelectorAll('button');
flushSync(() => {
b1.click();
});
flushSync(() => {
b1.click();
});
assert.deepEqual(logs, [
'Outer Effect Start (0)',
'Inner Effect (0)',
'Outer Effect End (0)',
'Outer Effect Start (1)',
'Inner Effect (1)',
'Outer Effect End (1)',
'Outer Effect Start (2)',
'Inner Effect (2)',
'Outer Effect End (2)'
]);
}
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/pre-effect-ordering/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/pre-effect-ordering/_config.js at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free