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
creece
11/25/2025, 7:09 PM
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
Christopher Quackenbush
11/25/2025, 8:40 PM
Good point there. I really need to get better at separating those two out things out.
s
Shawn Talbert
11/25/2025, 11:50 PM
we used playwright heavily for integration testing of APIs (Restlet/Suitelet)
Shawn Talbert
11/25/2025, 11:51 PM
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.