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 5f276cdf_993b_9d90_558f_a2851d63d766["default.test()"] 3a1e7729_6115_05e2_79ef_a451f51ad962["_config.js"] 5f276cdf_993b_9d90_558f_a2851d63d766 -->|defined in| 3a1e7729_6115_05e2_79ef_a451f51ad962 style 5f276cdf_993b_9d90_558f_a2851d63d766 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/binding-input-with-event/_config.js lines 8–20
test({ assert, component, target, window }) {
const input = target.querySelector('input');
ok(input);
assert.equal(input.value, '42');
const event = new window.Event('input');
input.value = '43';
input.dispatchEvent(event);
assert.equal(input.value, '43');
assert.equal(component.a, 43);
}
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/binding-input-with-event/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/binding-input-with-event/_config.js at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free