Home / Function/ resetFlags() — astro Function Reference

resetFlags() — astro Function Reference

Architecture documentation for the resetFlags() function in astro-get-static-paths.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e5a4c3eb_4fcc_d875_d57b_e01e7c93c96a["resetFlags()"]
  96aac543_b8cb_46ab_6862_2327c22c3dce["astro-get-static-paths.test.js"]
  e5a4c3eb_4fcc_d875_d57b_e01e7c93c96a -->|defined in| 96aac543_b8cb_46ab_6862_2327c22c3dce
  style e5a4c3eb_4fcc_d875_d57b_e01e7c93c96a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/astro-get-static-paths.test.js lines 29–35

function resetFlags() {
	// reset the flag used by [...calledTwiceTest].astro between each test
	globalThis.isCalledOnce = false;

	// reset the flag used by [...invalidParamsTypeTest].astro between each test
	globalThis.getStaticPathsParamsType = undefined;
}

Subdomains

Frequently Asked Questions

What does resetFlags() do?
resetFlags() is a function in the astro codebase, defined in packages/astro/test/astro-get-static-paths.test.js.
Where is resetFlags() defined?
resetFlags() is defined in packages/astro/test/astro-get-static-paths.test.js at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free