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 22b1f38f_9749_90f4_671c_a024c4f8a8c9["default.test()"] ef2f9475_dc60_cc53_e202_a226197b4b9b["_config.js"] 22b1f38f_9749_90f4_671c_a024c4f8a8c9 -->|defined in| ef2f9475_dc60_cc53_e202_a226197b4b9b style 22b1f38f_9749_90f4_671c_a024c4f8a8c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/raw-anchor-first-child/_config.js lines 8–19
test({ assert, component, target, variant }) {
const span = target.querySelector('span');
ok(span);
if (variant === 'dom') {
assert.ok(!span.previousSibling);
} else {
assert.equal(span.previousSibling?.textContent, '1tbe2lq'); // hash of the value
}
component.raw = '<span>bar</span>';
assert.htmlEqual(target.innerHTML, '<div><span>bar</span></div>');
}
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/raw-anchor-first-child/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/raw-anchor-first-child/_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