_config.js — svelte Source File
Architecture documentation for _config.js, a javascript file in the svelte codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 20163148_7d09_72da_2936_52abdc3256bd["_config.js"] 2a2d28a9_d1e5_6b47_9375_279552e7c7f8["assert.js"] 20163148_7d09_72da_2936_52abdc3256bd --> 2a2d28a9_d1e5_6b47_9375_279552e7c7f8 07d76165_84db_aa3e_f8fc_c7c9c3a10163["test"] 20163148_7d09_72da_2936_52abdc3256bd --> 07d76165_84db_aa3e_f8fc_c7c9c3a10163 4ead6623_c53e_ab40_5690_64903d5addf1["svelte"] 20163148_7d09_72da_2936_52abdc3256bd --> 4ead6623_c53e_ab40_5690_64903d5addf1 style 20163148_7d09_72da_2936_52abdc3256bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { flushSync } from 'svelte';
import { test } from '../../assert';
const tick = () => Promise.resolve();
// Check that rendering a custom element and setting a property before it is registered
// does not break the "when to set this as a property" logic
export default test({
async test({ assert, target }) {
target.innerHTML = '<custom-element></custom-element>';
await tick();
await tick();
const ce_root = target.querySelector('custom-element').shadowRoot;
ce_root.querySelector('button')?.click();
flushSync();
await tick();
await tick();
const inner_ce_root = ce_root.querySelectorAll('set-property-before-mounted');
assert.htmlEqual(inner_ce_root[0].shadowRoot.innerHTML, 'object|{"foo":"bar"}');
assert.htmlEqual(inner_ce_root[1].shadowRoot.innerHTML, 'object|{"foo":"bar"}');
}
});
Domain
Subdomains
Functions
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 2 function(s): default.test, tick.
What does _config.js depend on?
_config.js imports 3 module(s): assert.js, svelte, test.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-browser/custom-elements-samples/late-ce-mount/_config.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/runtime-browser/custom-elements-samples/late-ce-mount).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free