Do you guys use anything besides jest/mocks for te...
# suitescript
c
Do you guys use anything besides jest/mocks for testing? Anyone in here use anything else for a testing harness that's a bit easier to work with?
c
Jest/mocking is probably the way to go but you could pick any flavor of it that works. The biggest thing is just learning to separate your business logic from the netsuite logic to make it easier to just test the business logic and not netsuite itself.
☝️ 1
c
Good point there. I really need to get better at separating those two out things out.
s
we used playwright heavily for integration testing of APIs (Restlet/Suitelet)
One nice thing about NFT is the fact that it makes your data manipulation logic simply POJOs which are trivial to 'mock'. In other words, you don't have to mock a bunch of N/record methods in order to write meaningful unit tests.