Whats the best way/tool for Unit testing suitescri...
# suitescript
b
Whats the best way/tool for Unit testing suitescript?
d
i think that's the million dollar question
s
that's not even a $50,000 dollar question.
s
To summarize all of the potential options and methods: It's not a great use of time.
s
it depends on your needs. We selectively do unit tests as @suitedev is right - trying to unit test everything would be a giant waste of time
also, I just use
jest
for the most part
a
We (NetSuite) have something on the making for 20.1 for unit testing your scripts
šŸ‘ 4
s
@Albert Margarit (NS Eng Lead) to the rescue!
a
We are building a standard unit testing pipeline based on Jest so you have a standard and official configuration
s
great to hear it's based on jest! šŸ™‚
are you saying it will be in beta/preview mode for 20.1?
a
The version we are working on includes: • Jest (includes code coverage and mocking) • Compatibility AMD-ES6 import/export • Ability to provide SuiteScript API stubs/mocks to your script files • Hooked to the deploy pipeline in the tooling
@stalbert yes
s
woot! right on!
a
@stalbert By the way, I can send you my bank account for the $50k
🤣 2
šŸ˜›
s
you should ping @dbaghdanov - it's a $1 million question to him! šŸ™‚
šŸ‘ 1
a
hah, I missed that
šŸ’ø 1
b
this is great news, thanks guys!
will there be a demo at suiteworld?
a
for sure!