_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 ce525b5a_0b46_1a65_3dcc_e2e24baf28bf["_config.js"] d952c6b0_fdc4_6752_d5aa_0b4adfa256ee["test.ts"] ce525b5a_0b46_1a65_3dcc_e2e24baf28bf --> d952c6b0_fdc4_6752_d5aa_0b4adfa256ee 4ead6623_c53e_ab40_5690_64903d5addf1["svelte"] ce525b5a_0b46_1a65_3dcc_e2e24baf28bf --> 4ead6623_c53e_ab40_5690_64903d5addf1 style ce525b5a_0b46_1a65_3dcc_e2e24baf28bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
test({ assert, target }) {
assert.htmlEqual(
target.innerHTML,
// The buz fallback does not propagate back up
`
<button>reset</button> foo baz
<div><button>update</button> foo bar baz buz</div>
<div><button>update</button> foo bar baz buz</div>
`
);
const [btn1, btn2, btn3] = target.querySelectorAll('button');
btn2.click();
btn3.click();
flushSync();
assert.htmlEqual(
target.innerHTML,
// bar is not set in the parent because it's a readonly property
// baz is not set in the parent because while it's a bindable property,
// it wasn't set initially so it's treated as a readonly property
`
<button>reset</button> foo 3
<div><button>update</button> 1 2 3 4</div>
<div><button>update</button> 1 2 3 4</div>
`
);
btn1.click();
flushSync();
assert.htmlEqual(
target.innerHTML,
// Because foo is a readonly property, component.svelte diverges locally from it,
// and the passed in property keeps the initial value of foo. This is why it stays
// at 1, because foo is not updated to a different value.
`
<button>reset</button> foo bar baz buz
<div><button>update</button> 1 bar baz buz</div>
<div><button>update</button> 1 bar baz buz</div>
`
);
}
});
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, QualityControl subdomain.
What functions are defined in _config.js?
_config.js defines 1 function(s): 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-runes/samples/mount-props-updates/_config.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/runtime-runes/samples/mount-props-updates).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free