Home / File/ _config.js — svelte Source File

_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
  b7fff372_e9fa_3fa2_e7ca_34feb3829866["_config.js"]
  2a2d28a9_d1e5_6b47_9375_279552e7c7f8["assert.js"]
  b7fff372_e9fa_3fa2_e7ca_34feb3829866 --> 2a2d28a9_d1e5_6b47_9375_279552e7c7f8
  07d76165_84db_aa3e_f8fc_c7c9c3a10163["test"]
  b7fff372_e9fa_3fa2_e7ca_34feb3829866 --> 07d76165_84db_aa3e_f8fc_c7c9c3a10163
  4ead6623_c53e_ab40_5690_64903d5addf1["svelte"]
  b7fff372_e9fa_3fa2_e7ca_34feb3829866 --> 4ead6623_c53e_ab40_5690_64903d5addf1
  style b7fff372_e9fa_3fa2_e7ca_34feb3829866 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { flushSync } from 'svelte';
import { test } from '../../assert';

export default test({
	async test({ target, assert }) {
		const button = target.querySelector('button');
		const h1 = () =>
			/** @type {NodeListOf<HTMLHeadingElement>} */ (
				/** @type {Window} */ (
					target.querySelector('iframe')?.contentWindow
				).document.querySelectorAll('h1')
			);

		assert.equal(h1()[0].textContent, 'count: 0');
		assert.equal(getComputedStyle(h1()[0]).color, 'rgb(255, 0, 0)');
		assert.equal(getComputedStyle(h1()[1]).color, 'rgb(0, 0, 255)');

		flushSync(() => button?.click());

		assert.equal(h1()[0].textContent, 'count: 1');
		assert.equal(getComputedStyle(h1()[0]).color, 'rgb(255, 0, 0)');
		assert.equal(getComputedStyle(h1()[1]).color, 'rgb(0, 0, 255)');
	}
});

Domain

Subdomains

Functions

Dependencies

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 1 function(s): default.test.
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/samples/mount-in-iframe/_config.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/runtime-browser/samples/mount-in-iframe).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free