How to access globalstorage of extensionContext in extester? #1672
Open
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
Labels
No labels
Type
Projects
Status
New