Is there a way for me to test my suitescript (rest...
# suitescript
k
Is there a way for me to test my suitescript (restlet) outside of Netsuite? Currently I have to go to edit my script directly on Netsuite
m
You should use SuiteCloud Development Framework. When you start a new project in it you can include Jest unit testing to mock calls to the RESTlet.
a
@Ken You can use Postman to make HTTP calls to your Restlet.
☝🏻 1
r
For testing SuiteScript, the NetSuite debugger is great to see how code interacts within the NetSuite environment. For unit testing, Jest is a solid choice. I’ve got a GitHub project template that sets up a Jest testing environment for SuiteScript, which could streamline your testing process. Feel free to check it out and I hope it helps you as much as it’s helped others! NetSuite CustomModules Template: https://github.com/devnetkc/NetSuite-CustomModules-Template