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 ea82eb8d_ef55_c117_833d_f3f64d626942["default.test()"] ae1c3702_9a13_450b_2e34_3e2ba10f630d["_config.js"] ea82eb8d_ef55_c117_833d_f3f64d626942 -->|defined in| ae1c3702_9a13_450b_2e34_3e2ba10f630d style ea82eb8d_ef55_c117_833d_f3f64d626942 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/dynamic-component-bindings/_config.js lines 13–39
async test({ assert, component, target, window }) {
let input = target.querySelector('input');
ok(input);
input.value = 'abc';
await input.dispatchEvent(new window.Event('input'));
assert.equal(component.y, 'abc');
component.x = false;
assert.htmlEqual(
target.innerHTML,
`
<p>bar</p>
<input type='checkbox'>
`
);
input = target.querySelector('input');
ok(input);
input.checked = true;
await input.dispatchEvent(new window.Event('change'));
assert.equal(component.z, true);
}
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-bindings/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/dynamic-component-bindings/_config.js at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free