_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 5e47c0c4_4765_07ff_f15d_d868c10a9782["_config.js"] 654af6d6_2570_6860_f8dd_6b6131e1eec4["test.ts"] 5e47c0c4_4765_07ff_f15d_d868c10a9782 --> 654af6d6_2570_6860_f8dd_6b6131e1eec4 style 5e47c0c4_4765_07ff_f15d_d868c10a9782 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { test } from '../../test';
export default test({
get props() {
return {
/** @type {Array<Record<string, any>>} */
animalEntries: [
{
animal: 'raccoon',
class: 'mammal',
species: 'P. lotor',
kilogram: 25,
bmi: 0.04
},
{
animal: 'eagle',
class: 'bird',
kilogram: 5.4
},
{
animal: 'tiger',
class: 'mammal',
kilogram: 10,
pound: 30
},
{
animal: 'lion',
class: 'mammal',
kilogram: 10,
height: 50
},
{
animal: 'leopard',
class: 'mammal',
kilogram: 30,
height: 50,
bmi: 10
}
]
};
},
html: `
<p class="mammal">raccoon - P. lotor - 25kg (55 lb) - 30cm - 0.04</p>
<p class="bird">eagle - unknown - 5.4kg (12 lb) - 30cm - 0.006</p>
<p class="mammal">tiger - unknown - 10kg (30 lb) - 30cm - 0.011111111111111112</p>
<p class="mammal">lion - unknown - 10kg (22 lb) - 50cm - 0.004</p>
<p class="mammal">leopard - unknown - 30kg (66 lb) - 50cm - 10</p>
`,
test({ assert, component, target }) {
component.animalEntries = [{ animal: 'cow', class: 'mammal', species: 'B. taurus' }];
assert.htmlEqual(
target.innerHTML,
`
<p class="mammal">cow - B. taurus - 50kg (110 lb) - 30cm - 0.05555555555555555</p>
`
);
}
});
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-destructured-default/_config.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/runtime-legacy/samples/each-block-destructured-default).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free