How to access globalstorage of extensionContext in extester? #1666
Unanswered
jitendra19
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions