Anyone using TypeScript and running unit tests? Cu...
# suitescript
r
Anyone using TypeScript and running unit tests? Curious how you got it to work.
e
@darrenhillconsulting or @Shawn Talbert maybe?
d
@Robert Vice, I've tried and failed to incorporate jest into our TS projects (but its not a lack of trying ... and made
some
headway).
s
clone NFT, npm install, npm test
then take a look at some of the tests
or just look at the config for the tests, if you prefer
the tests are for NFT, but since NFT is just a library for SuiteScript, it mocks and asserts against underlying SuiteScript calls in the tests. For example, https://github.com/ExploreConsulting/netsuite-fasttrack-toolkit-ss2/blob/master/test/nsdal.test.ts#L95