Home / Function/ default.test() — svelte Function Reference

default.test() — svelte Function Reference

Architecture documentation for the default.test() function in _config.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  8606b87f_c6dd_fec9_3b73_3a4f92553cf1["default.test()"]
  7170968a_4f5a_3f61_c8de_ff819369cbe3["_config.js"]
  8606b87f_c6dd_fec9_3b73_3a4f92553cf1 -->|defined in| 7170968a_4f5a_3f61_c8de_ff819369cbe3
  style 8606b87f_c6dd_fec9_3b73_3a4f92553cf1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/runtime-runes/samples/await-resolve-2/_config.js lines 4–20

	async test({ assert, target, logs }) {
		const [b1, b2, b3, b4] = target.querySelectorAll('button');
		b1.click();
		await Promise.resolve();
		b2.click();
		await Promise.resolve();
		await Promise.resolve();
		await Promise.resolve();
		b3.click();
		await Promise.resolve();
		await Promise.resolve();
		await Promise.resolve();
		b4.click();
		await Promise.resolve();
		await Promise.resolve();
		assert.deepEqual(logs, ['pending', 'a', 'b', 'c', 'pending']);
	}

Domain

Subdomains

Frequently Asked Questions

What does default.test() do?
default.test() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-runes/samples/await-resolve-2/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/await-resolve-2/_config.js at line 4.

Analyze Your Own Codebase

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

Try Supermodel Free