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

Enable test mode #7

Open
fmonper1 opened this issue Apr 28, 2022 · 0 comments
Open

Enable test mode #7

fmonper1 opened this issue Apr 28, 2022 · 0 comments

Comments

@fmonper1
Copy link

I need to run some tests on a frontend application against a strapi backend.

In order to do this I have to enable the testMode in my frontend's magic client as such

export const magiclink = new Magic(process.env.REACT_APP_MAGICLINK_PUBLIC as string, {
  extensions: {
    algorand: new AlgorandExtension({
      rpcUrl: process.env.REACT_APP_ALGORAND_RPC_URL as string,
    }),
  },
  testMode: process.env.NODE_ENV === "test",
});

But there is no way to enable the testmode in the strapi plugin so that my JWT gets validated when using the test account.

Are there any workarounds for this?

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

No branches or pull requests

1 participant