_config.js — svelte Source File
Architecture documentation for _config.js, a javascript file in the svelte codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 0935eaf0_cb5c_9231_9fb5_e355d3143042["_config.js"] 654af6d6_2570_6860_f8dd_6b6131e1eec4["test.ts"] 0935eaf0_cb5c_9231_9fb5_e355d3143042 --> 654af6d6_2570_6860_f8dd_6b6131e1eec4 style 0935eaf0_cb5c_9231_9fb5_e355d3143042 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { test } from '../../test';
export default test({
get props() {
return {
todos: [
{
id: 123,
description: 'implement keyed each blocks'
},
{
id: 234,
description: 'implement client-side hydration'
}
]
};
},
html: `
<p>1: implement keyed each blocks</p>
<p>2: implement client-side hydration</p>
`,
test({ assert, component, target }) {
const [p1, p2] = target.querySelectorAll('p');
component.todos = [{ id: 234, description: 'implement client-side hydration' }];
assert.htmlEqual(target.innerHTML, '<p>1: implement client-side hydration</p>');
const [p3] = target.querySelectorAll('p');
assert.ok(!target.contains(p1), 'first `<p>` element should be removed');
assert.equal(p2, p3, 'second `<p>` element should be retained');
}
});
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does _config.js do?
_config.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain, MessageProcessor subdomain.
What functions are defined in _config.js?
_config.js defines 2 function(s): default.props, default.test.
What does _config.js depend on?
_config.js imports 1 module(s): test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-legacy/samples/each-block-keyed/_config.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/runtime-legacy/samples/each-block-keyed).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free