functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

Unit Testing

Open gyss opened this issue 9 years ago • 6 comments

Hi, could you give examples of how to unit test properly these functions?

gyss avatar Apr 05 '17 21:04 gyss

Have you seen this? https://firebase.google.com/docs/functions/unit-testing

CodingDoug avatar Apr 05 '17 22:04 CodingDoug

Yes, I'm going through that document. But I thought that maybe was a good idea to have the unit tests on these functions to culminate them.

gyss avatar Apr 06 '17 07:04 gyss

Do you accept PR for this issue?

gyss avatar Apr 22 '17 09:04 gyss

Were you able to do something with this? I was looking for a way of doing this and using ES6 at the same time.

martosoler avatar Oct 02 '17 21:10 martosoler

You can try out this library which I maintain: https://github.com/soumak77/firebase-mock

soumak77 avatar Mar 31 '18 04:03 soumak77

A new package for functions testing was released. Please take a look at https://firebase.google.com/docs/functions/unit-testing

nicolasgarnier avatar Apr 06 '18 00:04 nicolasgarnier