Home / Class/ FakeOperatingSystemProvider Class — astro Architecture

FakeOperatingSystemProvider Class — astro Architecture

Architecture documentation for the FakeOperatingSystemProvider class in utils.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  4c44a7e7_d557_5a60_a2f4_42bf0e95a9b8["FakeOperatingSystemProvider"]
  dc38b823_10e6_0080_9a8c_08dc7cc3e0eb["utils.js"]
  4c44a7e7_d557_5a60_a2f4_42bf0e95a9b8 -->|defined in| dc38b823_10e6_0080_9a8c_08dc7cc3e0eb
  0ab7d830_eea4_51e8_bc70_d9cd2231a553["constructor()"]
  4c44a7e7_d557_5a60_a2f4_42bf0e95a9b8 -->|method| 0ab7d830_eea4_51e8_bc70_d9cd2231a553
  b1c105ea_8d35_f0e6_4066_5f314fed8ae4["name()"]
  4c44a7e7_d557_5a60_a2f4_42bf0e95a9b8 -->|method| b1c105ea_8d35_f0e6_4066_5f314fed8ae4
  482990da_0d95_0f03_a923_f6327d831df6["displayName()"]
  4c44a7e7_d557_5a60_a2f4_42bf0e95a9b8 -->|method| 482990da_0d95_0f03_a923_f6327d831df6

Relationship Graph

Source Code

packages/astro/test/units/cli/utils.js lines 108–126

export class FakeOperatingSystemProvider {
	/** @type {NodeJS.Platform} */
	#name;

	/**
	 * @param {NodeJS.Platform} name
	 */
	constructor(name) {
		this.#name = name;
	}

	get name() {
		return this.#name;
	}

	get displayName() {
		return this.#name;
	}
}

Frequently Asked Questions

What is the FakeOperatingSystemProvider class?
FakeOperatingSystemProvider is a class in the astro codebase, defined in packages/astro/test/units/cli/utils.js.
Where is FakeOperatingSystemProvider defined?
FakeOperatingSystemProvider is defined in packages/astro/test/units/cli/utils.js at line 108.

Analyze Your Own Codebase

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

Try Supermodel Free