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 4aa7e21a_fb11_7466_4359_3cfae20b5176["default.test()"] 3aac7344_a368_1d23_ca60_ab2068a995f7["_config.js"] 4aa7e21a_fb11_7466_4359_3cfae20b5176 -->|defined in| 3aac7344_a368_1d23_ca60_ab2068a995f7 style 4aa7e21a_fb11_7466_4359_3cfae20b5176 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/dynamic-component-bindings-recreated/_config.js lines 12–31
test({ assert, component, target }) {
component.x = false;
assert.htmlEqual(
target.innerHTML,
`
<p>red one</p>
`
);
component.foo = 'two';
component.x = true;
assert.htmlEqual(
target.innerHTML,
`
<p>green two</p>
`
);
}
Domain
Subdomains
Defined In
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-bindings-recreated/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/dynamic-component-bindings-recreated/_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