You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. I tried to follow the example found here to build a simple Jest test for my project. Running the test gives the following error message:
To be honest, I just started using fastify and decorators, so I honestly have no idea what information might be needed to assist. Attached are the controller file and the service file (note for the services my team decided to split the service into a service file and a repo file (holds only database logic), but I think both are just service objects).
Repository
Service (uses Repository)
Controller
Controller Test:
If you need anything else I will do my best to provide it.
Thanks!
The text was updated successfully, but these errors were encountered:
I had the same issue of TypeError: classLoader is not a function when executing Jest Test. In my case I was using fastify-decoratos v3.15.0 but the jest configuration I followed was for v4. After I updated to fastify-decoratos v4.0.0-next.4 the test work and the error went away.
Test doc for v3.15.0 can be found here
Test doc for v4 can be found here
Hi there. I tried to follow the example found here to build a simple Jest test for my project. Running the test gives the following error message:
To be honest, I just started using fastify and decorators, so I honestly have no idea what information might be needed to assist. Attached are the controller file and the service file (note for the services my team decided to split the service into a service file and a repo file (holds only database logic), but I think both are just service objects).
Repository
Service (uses Repository)
Controller
Controller Test:
If you need anything else I will do my best to provide it.
Thanks!
The text was updated successfully, but these errors were encountered: