Run Jasmine tests inside LockerService

I am trying to run our JavaScript tests (written with Jasmine) inside LockerService. I know Salesforce did the same with jQuery in the past because they mentioned it during the last Dreamforce event.

What would be the best way to achieve this? Anyway I could use the Aura framework Github project and hook it to my CI?

Answer

There is a POC for using jasmine for component level functional tests at,
https://github.com/esalman-sfdc/lighning-test-service-poc

Safe Harbor:
We (salesforce) are planning to showcase a more elaborate locker service compliant version of this soon via an official repo (e.g. a repo under github.com/forcedotcom) with more examples soon.

I can update this thread once that happens if you are interested.

Attribution
Source : Link , Question Author : Marc-Antoine Veilleux , Answer Author : Emad Salman

Leave a Comment