Skip to content

Stabalise __internalSetGlobalContext as a public API #95

Description

@bcheidemann

__internalSetGlobalContext is currently reserved for internal use. This API would be useful for third party developers, specifically for testing. For example, if a developer wishes to publish a third party typed action which published diagnostic events, they may wish to register a MockDiagnosticsReporter to assert that diagnostic messages are correctly emitted.

This API should probably not be used in workflow files, and currently is only needed for diagnostics messages. So I'd propose keeping __internalSetGlobalContext internal for now, and exposing a mockDiagnosticsReporter function, with a JSDoc comment explaining that this is for testing only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions