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 48689eb0_f5ad_0fc4_4d27_196a84407fdf["default.test()"] b9fbe9b6_0541_f449_c593_1b231cd2cbfe["_config.js"] 48689eb0_f5ad_0fc4_4d27_196a84407fdf -->|defined in| b9fbe9b6_0541_f449_c593_1b231cd2cbfe style 48689eb0_f5ad_0fc4_4d27_196a84407fdf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/document-event/_config.js lines 4–14
test({ assert, component, window }) {
assert.deepEqual(component.events, []);
const event1 = new window.Event('mouseenter');
window.document.body.dispatchEvent(event1);
assert.deepEqual(component.events, ['enter']);
const event2 = new window.Event('mouseleave');
window.document.body.dispatchEvent(event2);
assert.deepEqual(component.events, ['enter', 'leave']);
}
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/document-event/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/document-event/_config.js at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free