Home / Function/ createSession() — astro Function Reference

createSession() — astro Function Reference

Architecture documentation for the createSession() function in astro-session.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  aea46d5c_9ab3_fe61_2478_4cbbf91f1848["createSession()"]
  59fdd39b_c3d9_1764_1781_991844bc7d77["astro-session.test.js"]
  aea46d5c_9ab3_fe61_2478_4cbbf91f1848 -->|defined in| 59fdd39b_c3d9_1764_1781_991844bc7d77
  style aea46d5c_9ab3_fe61_2478_4cbbf91f1848 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/units/sessions/astro-session.test.js lines 23–36

function createSession(
	config = defaultConfig,
	cookies = defaultMockCookies,
	mockStorage,
	runtimeMode = 'production',
) {
	return new AstroSession({
		cookies,
		config,
		runtimeMode,
		driverFactory,
		mockStorage,
	});
}

Subdomains

Frequently Asked Questions

What does createSession() do?
createSession() is a function in the astro codebase, defined in packages/astro/test/units/sessions/astro-session.test.js.
Where is createSession() defined?
createSession() is defined in packages/astro/test/units/sessions/astro-session.test.js at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free