SpyHelpDisplay Class — astro Architecture
Architecture documentation for the SpyHelpDisplay class in utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1ca1cf9d_9383_6aa7_61a3_640f968801d7["SpyHelpDisplay"] dc38b823_10e6_0080_9a8c_08dc7cc3e0eb["utils.js"] 1ca1cf9d_9383_6aa7_61a3_640f968801d7 -->|defined in| dc38b823_10e6_0080_9a8c_08dc7cc3e0eb fc96b720_0e7f_ff38_8e43_3d038528c04f["constructor()"] 1ca1cf9d_9383_6aa7_61a3_640f968801d7 -->|method| fc96b720_0e7f_ff38_8e43_3d038528c04f 3f415062_12d7_087e_89e2_d732aac8d0d5["shouldFire()"] 1ca1cf9d_9383_6aa7_61a3_640f968801d7 -->|method| 3f415062_12d7_087e_89e2_d732aac8d0d5 d2db806c_2fab_5c91_e51e_f88b9d43581c["show()"] 1ca1cf9d_9383_6aa7_61a3_640f968801d7 -->|method| d2db806c_2fab_5c91_e51e_f88b9d43581c c4c89fb0_a5f9_2253_193e_a81fdb34ae4f["payloads()"] 1ca1cf9d_9383_6aa7_61a3_640f968801d7 -->|method| c4c89fb0_a5f9_2253_193e_a81fdb34ae4f
Relationship Graph
Source Code
packages/astro/test/units/cli/utils.js lines 44–71
export class SpyHelpDisplay {
/** @type {boolean} */
#shouldFire;
/** @type {Array<HelpPayload>} */
#payloads = [];
/**
* @param {boolean} shouldFire
*/
constructor(shouldFire) {
this.#shouldFire = shouldFire;
}
shouldFire() {
return this.#shouldFire;
}
/**
* @param {HelpPayload} payload
*/
show(payload) {
this.#payloads.push(payload);
}
get payloads() {
return this.#payloads;
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the SpyHelpDisplay class?
SpyHelpDisplay is a class in the astro codebase, defined in packages/astro/test/units/cli/utils.js.
Where is SpyHelpDisplay defined?
SpyHelpDisplay is defined in packages/astro/test/units/cli/utils.js at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free