sir-dunxalot / cypress-nextjs-auth0

Cypress commands to support Auth0 and Next.js
60 stars 24 forks source link

'login' and 'logout' types aren't recognized by my app #53

Open courtneyfay opened 2 years ago

courtneyfay commented 2 years ago

I was so happy to have found this library integrating Cypress, Next and Auth0. Great work! 🎉

(Also, I've never opened an issue on any library before, so please feel free to give me feedback on my request.)

Feature Request

Typescript isn't recognizing login or logout on my tests. I made a workaround that includes copy/pasting yalls types/index.d.ts file into my own cypress/support/types.d.ts file. I think it would be better if yall exported your types somehow so I could use those instead.

Basic example

Here are some examples from my tests: Screen Shot 2022-03-23 at 12 29 11 PM Screen Shot 2022-03-23 at 12 29 46 PM

Motivation

If you update your types file, it will break my app with the way I've currently set up the workaround. Would much prefer to just stay in sync with your types if possible.

sir-dunxalot commented 2 years ago

Thanks @courtneyfay. Your request is great and I appreciate the information. I'd say this is a bug as much as it is a feature since thing aren't working as expected. :)

I apologize for the slow response here. I can replicate this issue locally and will work identify a fix. In the meantime, I am glad you have found a workaround.