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

Relationship Graph

Source Code

packages/svelte/tests/runtime-runes/samples/error-boundary-24/_config.js lines 6–12

	test({ assert, target }) {
		flushSync();

		// When exception is set by onerror, the {#if !exception} block should hide
		// and only the {#if exception} block should be visible
		assert.htmlEqual(target.innerHTML, '<p>caught error: child error</p>');
	}

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/error-boundary-24/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-runes/samples/error-boundary-24/_config.js at line 6.

Analyze Your Own Codebase

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

Try Supermodel Free