Skip to content

How to access globalstorage of extensionContext in extester? #1672

Open
@jitendra19

Description

Discussed in #1666

Originally posted by jitendra19 December 11, 2024
We are storing some information on ExtensionContext's global state. But while writing tests, not able to get context or global state.

In extension, while updating key in globalstate -
context.globalState.update('key', new Date());

and while getting -
context.globalState.get('key');

We want to test whether particular "key" has some value in global state. But seems like there is no option to get extensionContext's globalstate in extester lib.

Is there a way to access global state? TIA.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions