Hi can jest be used for unit testing in SCA? Or I ...
# suitecommerce
p
Hi can jest be used for unit testing in SCA? Or I should stick with Jasmine?
f
we used Jasmine in the past but we are now actually using Jest for unit test, so I guess you should be good using it
👍🏻 1
p
Okay thank you so much @Flo Meilan
Hi, @Flo Meilan could you please help me a bit more with this. I have started with jest. What folder structure should I follow? Right now I have a UnitTests folder under SC_20.1_Live. Any basic test runs fine. But when I try importing files, it gives an error. For instance, I want to write tests for the address model. So I import the Address Model file. On running the test script, it starts pointing errors in the Address Model file's import section. I am using SCA 2020.1
f
I am not that familiar with this but let me check with the dev team to see if they can help
p
Thanks @Flo Meilan