_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 95c121ea_b01c_b3e5_b8ed_b14ad5198889["_config.js"] 654af6d6_2570_6860_f8dd_6b6131e1eec4["test.ts"] 95c121ea_b01c_b3e5_b8ed_b14ad5198889 --> 654af6d6_2570_6860_f8dd_6b6131e1eec4 style 95c121ea_b01c_b3e5_b8ed_b14ad5198889 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { test } from '../../test';
const foo = '<script type="application/json">{ "foo": "true" }</script>';
const bar = '<script type="application/json">{ "bar": "true" }</script>';
export default test({
get props() {
return { condition: 1, foo, bar };
},
test({ assert, component, window }) {
assert.equal(window.document.head.innerHTML.includes(foo), true);
component.condition = 3;
assert.equal(window.document.head.innerHTML.includes(foo), false);
component.condition = 2;
assert.equal(window.document.title, 'bar!!!');
assert.equal(window.document.head.innerHTML.includes(bar), true);
assert.equal(Boolean(window.document.getElementById('meta')), true);
component.condition = 3;
assert.equal(window.document.head.innerHTML.includes(bar), false);
assert.equal(window.document.getElementById('meta'), null);
}
});
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, QualityControl 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/head-raw-dynamic/_config.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/runtime-legacy/samples/head-raw-dynamic).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free