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

Relationship Graph

Source Code

packages/svelte/tests/runtime-runes/samples/media-query/_config.js lines 5–13

	async test({ window }) {
		expect(window.matchMedia).toHaveBeenCalledWith('(max-width: 599px), (min-width: 900px)');
		expect(window.matchMedia).toHaveBeenCalledWith('(min-width: 900px)');
		expect(window.matchMedia).toHaveBeenCalledWith('screen');
		expect(window.matchMedia).toHaveBeenCalledWith('not print');
		expect(window.matchMedia).toHaveBeenCalledWith('screen,print');
		expect(window.matchMedia).toHaveBeenCalledWith('screen,      print');
		expect(window.matchMedia).toHaveBeenCalledWith('screen,      random');
	}

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

Analyze Your Own Codebase

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

Try Supermodel Free