Anyone know a good mock framework for unit-testing...
# suitescript
e
Anyone know a good mock framework for unit-testing RESTlet? I am using Jest, but not finding good mocks for N/record and N/query
c
Its probably going to be easier to just wrap the netsuite specific data and mock those functions rather than trying to mock netsuite modules. For example something like a "getData" function that does all of the netsuite calls. You just mock getData.
d
I assume you are already using this as a basis, but just wanted to throw out there if not: https://github.com/oracle/netsuite-suitecloud-sdk/tree/master/packages/unit-testing#suitecloud-unit-testing-examples only is for record and a few others currently though, no query unfortunately