Home / File/ _config.js — svelte Source File

_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
  d414961a_35c9_6b71_5f74_692884e5432a["_config.js"]
  d952c6b0_fdc4_6752_d5aa_0b4adfa256ee["test.ts"]
  d414961a_35c9_6b71_5f74_692884e5432a --> d952c6b0_fdc4_6752_d5aa_0b4adfa256ee
  4ead6623_c53e_ab40_5690_64903d5addf1["svelte"]
  d414961a_35c9_6b71_5f74_692884e5432a --> 4ead6623_c53e_ab40_5690_64903d5addf1
  style d414961a_35c9_6b71_5f74_692884e5432a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { tick } from 'svelte';
import { test } from '../../test';

export default test({
	skip: true,
	async test({ assert, target }) {
		const [add, shift] = target.querySelectorAll('button');

		add.click();
		await tick();
		add.click();
		await tick();
		add.click();
		await tick();

		// TODO pending count / number of pushes is off

		assert.htmlEqual(
			target.innerHTML,
			`
			<button>add</button>
			<button>shift</button>
			<p>pending=6 values.length=1 values=[1]</p>
			<div>not keyed:
				<div>1</div>
			</div>
			<div>keyed:
				<div>1</div>
			</div>
		`
		);

		shift.click();
		await tick();
		shift.click();
		await tick();
		assert.htmlEqual(
			target.innerHTML,
			`
			<button>add</button>
			<button>shift</button>
			<p>pending=4 values.length=2 values=[1,2]</p>
			<div>not keyed:
				<div>1</div>
				<div>2</div>
			</div>
			<div>keyed:
				<div>1</div>
				<div>2</div>
			</div>
		`
		);

		shift.click();
		await tick();
		shift.click();
		await tick();
		assert.htmlEqual(
			target.innerHTML,
			`
			<button>add</button>
			<button>shift</button>
			<p>pending=2 values.length=3 values=[1,2,3]</p>
			<div>not keyed:
				<div>1</div>
				<div>2</div>
				<div>3</div>
			</div>
			<div>keyed:
				<div>1</div>
				<div>2</div>
				<div>3</div>
			</div>
		`
		);

		shift.click();
		await tick();
		shift.click();
		await tick();
		assert.htmlEqual(
			target.innerHTML,
			`
			<button>add</button>
			<button>shift</button>
			<p>pending=0 values.length=4 values=[1,2,3,4]</p>
			<div>not keyed:
				<div>1</div>
				<div>2</div>
				<div>3</div>
				<div>4</div>
			</div>
			<div>keyed:
				<div>1</div>
				<div>2</div>
				<div>3</div>
				<div>4</div>
			</div>
		`
		);
	}
});

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 2 module(s): svelte, test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-runes/samples/async-each-overlap/_config.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/runtime-runes/samples/async-each-overlap).

Analyze Your Own Codebase

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

Try Supermodel Free