on 10-14-2021 3:17 AM
Hi Experts,
We have a requirement to write a unit test suite in sample-service.test.js (see attached sample-servicetest.txt) by calling functions from sample-service.js (see attached sample-service.txt) in SAP Web IDE. How should the functions from sample-service.js be called in sample-service.test.js so it will be covered by the test using JEST?
Best regards,
Jared
Hi ,
WebIDE uses OPA5 for Unit Tests:
https://blogs.sap.com/2018/10/03/testing-your-sapui5-application-with-opa5/
AFAIK, there is no support for JEST in WebIDE.
Furthermore, I would suggest checking out the Business Application Studio which will allow you to use other tools such as JEST as well as @sap/grunt-sapui5-bestpractice-test
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.