-
Notifications
You must be signed in to change notification settings - Fork 0
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
#9 - CRUD get all data types #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great can you remove these .ds_store files for me though
{ id: 2, dataType: 'int' } | ||
]; | ||
const prismaMock = require('../prisma/prisma-client'); | ||
prismaMock.dataType.findMany.mockResolvedValue(expected); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no you dont need to mock these because were using an sqlite db which is included in github so we actually wanna test our prisma calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w
Changes
Added the service function which will return all the data types in the base.
Notes
I had a few issues but I think what I'm submitting here is much better than what I was submitting yesterday. Yesterday, for some reason my vs code was not updating the ncode so I wasn't updating the map correctly. However, once this was figured out my other issue was just submitting. Apologies in advance for creating another pull request rather than committing on the other one. I was having an issue actually getting these new changes to that other ticket. However, the creation of this new ticket allowed me to get my changes to go through so if possible could ticket #28 perhaps be deleted? Ok I also am not sure what on earth those 3200 changes are.
Update: I think I fixed it.
To Do
Any remaining things that need to get done
Checklist
It can be helpful to check the
Checks
andFiles changed
tabs.Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
package-lock.json
changes (unless dependencies have changed)Closes #9