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 ecce705d_521a_d2ab_6d5f_e05dd54350b2["default.test()"] aae4f3e6_2e32_caf9_ce76_c9d5f1ebe631["_config.js"] ecce705d_521a_d2ab_6d5f_e05dd54350b2 -->|defined in| aae4f3e6_2e32_caf9_ce76_c9d5f1ebe631 style ecce705d_521a_d2ab_6d5f_e05dd54350b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/transition-js-if-else-block-intro/_config.js lines 6–24
test({ assert, component, target, raf }) {
assert.equal(target.querySelector('div'), component.no);
raf.tick(0);
assert.equal(component.no.foo, 0);
raf.tick(200);
assert.equal(component.no.foo, 0.5);
raf.tick(500);
component.x = true;
assert.equal(component.no, null);
assert.equal(component.yes.foo, 0);
raf.tick(700);
assert.equal(component.yes.foo, 0.5);
raf.tick(1000);
}
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/transition-js-if-else-block-intro/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/transition-js-if-else-block-intro/_config.js at line 6.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free