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 128da11d_49b5_7a72_6a4c_78f4183b25b1["default.test()"] c83e1681_a26f_ba8e_b088_ea4641a6a479["_config.js"] 128da11d_49b5_7a72_6a4c_78f4183b25b1 -->|defined in| c83e1681_a26f_ba8e_b088_ea4641a6a479 style 128da11d_49b5_7a72_6a4c_78f4183b25b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/dynamic-component-spread-props/_config.js lines 12–38
test({ assert, window, target }) {
const button = target.querySelector('button');
// @ts-ignore
button.dispatchEvent(new window.Event('click'));
flushSync();
assert.htmlEqual(
target.innerHTML,
`
<p>value(2) = 2</p>
<p>foo=bar</p>
<p>typeof cb=function</p>
<button>Toggle Component</button>
`
);
// @ts-ignore
button.dispatchEvent(new window.Event('click'));
flushSync();
assert.htmlEqual(
target.innerHTML,
`
<p>value(1) = 1</p>
<p>foo=bar</p>
<p>typeof cb=function</p>
<button>Toggle Component</button>
`
);
}
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/dynamic-component-spread-props/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/dynamic-component-spread-props/_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