cancel
Showing results for 
Search instead for 
Did you mean: 

Error upon running karma test "sap is not defined at unitTests.qunit.js"

maissa93
Participant
573

Hello everyone,

in the SAPUI5 app I changed the path in the bootstrap to src=“/resources/sap-ui-core.js”.
The OPA-Test after making some changes is working as expected but not karma test, which throws the following error:

Do you have an idea how I can fix it?

Any help would be much appreciated

Accepted Solutions (1)

Accepted Solutions (1)

maissa93
Participant

The issue was in unitTests.qunit.html.

I set back the rsc path to "https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" and the karma test worked again.

So I adjusted all the .html test files except unitTests.qunit.html and now everything works as usual.

Answers (0)