_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 c1867e23_9656_74c7_4966_cbe528a4af9b["_config.js"] 2a2d28a9_d1e5_6b47_9375_279552e7c7f8["assert.js"] c1867e23_9656_74c7_4966_cbe528a4af9b --> 2a2d28a9_d1e5_6b47_9375_279552e7c7f8 07d76165_84db_aa3e_f8fc_c7c9c3a10163["test"] c1867e23_9656_74c7_4966_cbe528a4af9b --> 07d76165_84db_aa3e_f8fc_c7c9c3a10163 style c1867e23_9656_74c7_4966_cbe528a4af9b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { test } from '../../assert';
export default test({
// Test that template with sole script tag does execute when instantiated in the client.
// Needs to be in this test suite because JSDOM does not quite get this right.
mode: ['client'],
async test({ target, assert }) {
// In here to give effects etc time to execute
assert.htmlEqual(target.querySelector('div')?.innerHTML || '', 'this should be executed');
// Check that the script tag is properly removed
target.querySelector('button')?.click();
await new Promise((r) => setTimeout(r, 100));
assert.equal(target.querySelector('script'), null);
}
});
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 1 function(s): default.test.
What does _config.js depend on?
_config.js imports 2 module(s): assert.js, test.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-browser/samples/sole-script-tag/_config.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/runtime-browser/samples/sole-script-tag).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free