What is the Best Practice for Unit Testing Custom "My Action" Code?

This topic was automatically generated from Slack. You can find the original thread here.

Dear all - I have a silly question. What’s the best practice when it comes to unit testing the my custom “My Action” code? If someone can share some pointers/code samples, I would be super grateful for your help!

Hi , unfortunately there’s no action unit test natively available in pipedream, you can manually extract your code to your local and unit test that part of your code only

Thanks for the response ! Do you have any sample code of how you are extracting your code and doing unit tests on them? I’m fairly new to javascript and I’m not as familiar with the frameworks unfortunately. Many thanks in advance!

Hi I think our bot @U05A7KLNALC might be able to answer code question you might have, maybe even generating simple test for your code. Could you try asking it?

Sure, I’d be happy to help with your code questions or generate simple tests for your code. Please provide the code you’re working with or let me know the specific question you have, and I’ll do my best to assist you.