Home / Function/ resetExample() — astro Function Reference

resetExample() — astro Function Reference

Architecture documentation for the resetExample() function in check.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  34c517d7_e696_dc4f_c74f_44acfd958e7a["resetExample()"]
  6e63560f_8c71_c453_90bf_78fa760e9716["check.js"]
  34c517d7_e696_dc4f_c74f_44acfd958e7a -->|defined in| 6e63560f_8c71_c453_90bf_78fa760e9716
  cba20645_62bd_70c0_caff_f96cee1c8243["checkExamples()"]
  cba20645_62bd_70c0_caff_f96cee1c8243 -->|calls| 34c517d7_e696_dc4f_c74f_44acfd958e7a
  style 34c517d7_e696_dc4f_c74f_44acfd958e7a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/smoke/check.js lines 92–95

function resetExample(examplePath, originalConfig) {
	const tsconfigPath = path.join('./examples/', examplePath, 'tsconfig.json');
	writeFileSync(tsconfigPath, originalConfig);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does resetExample() do?
resetExample() is a function in the astro codebase, defined in scripts/smoke/check.js.
Where is resetExample() defined?
resetExample() is defined in scripts/smoke/check.js at line 92.
What calls resetExample()?
resetExample() is called by 1 function(s): checkExamples.

Analyze Your Own Codebase

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

Try Supermodel Free