You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: