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

Relationship Graph

Source Code

packages/svelte/tests/runtime-runes/samples/hydratable-unused-keys/_config.js lines 17–25

	async test({ assert, target }) {
		// make sure the hydratable promise on the client has a chance to run and reject (it shouldn't, because the server data should be used)
		await tick();

		assert.htmlEqual(
			target.innerHTML,
			'<div>did you ever hear the tragedy of darth plagueis the wise?</div>'
		);
	}

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/hydratable-unused-keys/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/hydratable-unused-keys/_config.js at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free