Member Junction
    Preparing search index...

    Aggregated diagnostic report produced by mj doctor or preflight checks.

    Collects individual DiagnosticCheck results along with environment metadata and optional last-install state. Provides convenience getters for filtering checks by severity.

    const diagnostics = new Diagnostics(environment);
    diagnostics.AddCheck({ Name: 'npm', Status: 'pass', Message: 'npm 10.9.0' });
    diagnostics.AddCheck({ Name: 'Disk space', Status: 'fail', Message: 'Only 0.5 GB free' });
    console.log(diagnostics.HasFailures); // true
    console.log(diagnostics.Failures.length); // 1
    Index

    Constructors

    Properties

    Checks: DiagnosticCheck[] = []

    All diagnostic checks collected during the run, in execution order.

    Environment: EnvironmentInfo

    Detected runtime environment metadata (OS, Node, npm, architecture).

    LastInstall?: LastInstallInfo

    Summary of the last install attempt, if a checkpoint state file exists.

    Accessors

    Methods