Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access globalstorage of extensionContext in extester? #1672

Open
jitendra19 opened this issue Dec 13, 2024 · 0 comments
Open

How to access globalstorage of extensionContext in extester? #1672

jitendra19 opened this issue Dec 13, 2024 · 0 comments

Comments

@jitendra19
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

No branches or pull requests

1 participant