SpyClipboard Class — astro Architecture
Architecture documentation for the SpyClipboard class in utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c8a5250b_5be4_1887_959a_a0f7c17b10c6["SpyClipboard"] dc38b823_10e6_0080_9a8c_08dc7cc3e0eb["utils.js"] c8a5250b_5be4_1887_959a_a0f7c17b10c6 -->|defined in| dc38b823_10e6_0080_9a8c_08dc7cc3e0eb 7dbabb1e_ffe1_6511_27da_1a8d0cabd01a["copy()"] c8a5250b_5be4_1887_959a_a0f7c17b10c6 -->|method| 7dbabb1e_ffe1_6511_27da_1a8d0cabd01a c4bd5b27_c01c_3490_3d28_2f3b677a9381["texts()"] c8a5250b_5be4_1887_959a_a0f7c17b10c6 -->|method| c4bd5b27_c01c_3490_3d28_2f3b677a9381
Relationship Graph
Source Code
packages/astro/test/units/cli/utils.js lines 184–198
export class SpyClipboard {
/** @type {Array<string>} */
#texts = [];
/**
* @param {string} text
*/
async copy(text) {
this.#texts.push(text);
}
get texts() {
return this.#texts;
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the SpyClipboard class?
SpyClipboard is a class in the astro codebase, defined in packages/astro/test/units/cli/utils.js.
Where is SpyClipboard defined?
SpyClipboard is defined in packages/astro/test/units/cli/utils.js at line 184.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free