_config.js — svelte Source File
Architecture documentation for _config.js, a javascript file in the svelte codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ea8bb942_f97c_5c4f_5843_134ff04da6f1["_config.js"] 654af6d6_2570_6860_f8dd_6b6131e1eec4["test.ts"] ea8bb942_f97c_5c4f_5843_134ff04da6f1 --> 654af6d6_2570_6860_f8dd_6b6131e1eec4 4ead6623_c53e_ab40_5690_64903d5addf1["svelte"] ea8bb942_f97c_5c4f_5843_134ff04da6f1 --> 4ead6623_c53e_ab40_5690_64903d5addf1 style ea8bb942_f97c_5c4f_5843_134ff04da6f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { ok, test } from '../../test';
import { flushSync } from 'svelte';
/** @type {Array<{ description: string, done: boolean }>} */
let tasks = [];
export default test({
mode: ['client', 'hydrate'], // unnecessary to test this in ssr mode
get props() {
tasks = [
{ description: 'put your left leg in', done: false },
{ description: 'your left leg out', done: false },
{ description: 'in, out, in, out', done: false },
{ description: 'shake it all about', done: false }
];
return { tasks, selected: tasks[0] };
},
ssrHtml: `
<select>
<option selected value='[object Object]'>put your left leg in</option>
<option value='[object Object]'>your left leg out</option>
<option value='[object Object]'>in, out, in, out</option>
<option value='[object Object]'>shake it all about</option>
</select>
<label>
<input type='checkbox'> put your left leg in
</label>
<h2>Pending tasks</h2>
<p>put your left leg in</p>
<p>your left leg out</p>
<p>in, out, in, out</p>
<p>shake it all about</p>
`,
async test({ assert, component, target, window, variant }) {
assert.htmlEqual(
target.innerHTML,
`
<select>
<option ${variant === 'hydrate' ? 'selected ' : ''}value='[object Object]'>put your left leg in</option>
<option value='[object Object]'>your left leg out</option>
<option value='[object Object]'>in, out, in, out</option>
<option value='[object Object]'>shake it all about</option>
</select>
<label>
<input type='checkbox'> put your left leg in
</label>
<h2>Pending tasks</h2>
<p>put your left leg in</p>
<p>your left leg out</p>
<p>in, out, in, out</p>
<p>shake it all about</p>
`
);
// ... (75 more lines)
Domain
Subdomains
Functions
Dependencies
- svelte
- test.ts
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 2 module(s): svelte, test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-legacy/samples/binding-indirect/_config.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/runtime-legacy/samples/binding-indirect).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free