you CAN write them you just have to separate your ...
# suitescript
c
you CAN write them you just have to separate your business logic from specific netsuite. Then you could use like mocha and the other frameworks/libraries to build some tests against the JS code.