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 6098e7b5_582e_7b8c_d2c0_d500602137cc["default.test()"] 4568f1e9_cd02_2cd2_87b2_98489c6c7328["_config.js"] 6098e7b5_582e_7b8c_d2c0_d500602137cc -->|defined in| 4568f1e9_cd02_2cd2_87b2_98489c6c7328 style 6098e7b5_582e_7b8c_d2c0_d500602137cc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-runes/samples/async-if/_config.js lines 7–46
async test({ assert, target }) {
const [shift, t, f] = target.querySelectorAll('button');
shift.click();
await tick();
assert.htmlEqual(
target.innerHTML,
'<button>shift</button><button>true</button><button>false</button><h1>yes</h1>'
);
f.click();
await tick();
t.click();
await tick();
f.click();
await tick();
shift.click();
await tick();
assert.htmlEqual(
target.innerHTML,
'<button>shift</button><button>true</button><button>false</button><h1>no</h1>'
);
shift.click();
await tick();
assert.htmlEqual(
target.innerHTML,
'<button>shift</button><button>true</button><button>false</button><h1>yes</h1>'
);
shift.click();
await tick();
assert.htmlEqual(
target.innerHTML,
'<button>shift</button><button>true</button><button>false</button><h1>no</h1>'
);
}
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-runes/samples/async-if/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/async-if/_config.js at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free