jay !!
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
on line 10
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
update: i'm now getting this error, not a clue why or how to fix
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
upon supplying an id, it still errors but the expected object isn't the one i need - i want it to generate the id and return that object, am i thinking about this wrong?
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
The issue is the
mockResolvedValue
function expects my user object to have an ID, as specified in the model. I don't believe I should have to include an ID here, as it will be generated by Prisma. is there any way around this?10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
10 replies
PPrisma
•Created by jay !! on 10/28/2024 in #help-and-questions
unit testing with @default() value, using jest-mock-extended
10 replies