Expand my Community achievements bar.

Unit testing Javascript Use-API files that use java-backed objects

Avatar

Level 1

I have a need to write unit tests for several javascript use-api files that live within our components directory and am wondering what, if any, libraries/frameworks people are using for testing the JS use-api classes?

Currently, I can write tests against the javascript itself using Jasmine, but am having a hard time with mocking java-backed objects that are used within the JS use-api classes.  

Anybody have any tips they could share on how they're unit testing Javascript Use-API classes?

Thanks!

1 Reply