TypeError: client.get(...).loginAs is not a function #4519
-
I am trying to create a test senarior for login and I got an error with the loginAs funstion From the Adonis doc https://docs.adonisjs.com/guides/http-tests#authenticating-users |
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Apr 16, 2024
Replies: 1 comment
-
Hey @AbdellM! 👋🏻 Have you registered the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AbdellM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @AbdellM! 👋🏻
Have you registered the
authApiClient()
Japa plugin in yourtests/bootstrap.ts
file?