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
  7b389197_2551_fa4f_f38b_22317d3674af["default.test()"]
  60899819_83a9_b7f9_a448_d3312ab26ec7["_config.js"]
  7b389197_2551_fa4f_f38b_22317d3674af -->|defined in| 60899819_83a9_b7f9_a448_d3312ab26ec7
  style 7b389197_2551_fa4f_f38b_22317d3674af fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/runtime-runes/samples/async-render-tag/_config.js lines 12–50

	async test({ assert, target }) {
		const [reset, hello, wheee] = target.querySelectorAll('button');

		hello.click();
		await tick();
		assert.htmlEqual(
			target.innerHTML,
			`
				<button>reset</button>
				<button>hello</button>
				<button>wheee</button>
				<h1>hello</h1>
			`
		);

		reset.click();
		await tick();
		assert.htmlEqual(
			target.innerHTML,
			`
				<button>reset</button>
				<button>hello</button>
				<button>wheee</button>
				<h1>hello</h1>
			`
		);

		wheee.click();
		await tick();
		assert.htmlEqual(
			target.innerHTML,
			`
				<button>reset</button>
				<button>hello</button>
				<button>wheee</button>
				<h1>wheee</h1>
			`
		);
	}

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/async-render-tag/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/async-render-tag/_config.js at line 12.

Analyze Your Own Codebase

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

Try Supermodel Free