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 e760d6e7_97b9_01e9_6eb9_917787bd5476["default.test()"] 63f249ee_b67a_f402_e765_0fdb4379c594["_config.js"] e760d6e7_97b9_01e9_6eb9_917787bd5476 -->|defined in| 63f249ee_b67a_f402_e765_0fdb4379c594 style e760d6e7_97b9_01e9_6eb9_917787bd5476 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/transition-js-aborted-bidi/_config.js lines 8–26
test({ assert, component, target, raf, logs }) {
component.visible = true;
const span = /** @type {HTMLSpanElement & { foo: number }} */ (target.querySelector('span'));
raf.tick(50);
assert.equal(span.foo, 0.5);
component.visible = false;
assert.equal(span.foo, 0.5);
raf.tick(75);
assert.equal(span.foo, 0.25);
component.visible = true;
raf.tick(100);
assert.equal(span.foo, 0.5);
assert.deepEqual(logs, ['transition']); // should only run once
}
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/transition-js-aborted-bidi/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/transition-js-aborted-bidi/_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