Closed araujoarthur0 closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 57.85%. Comparing base (
3a4e99f
) to head (be788cd
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Related issue
Helps #1037
Context / Background
Continues from #1061
This one is adding the renderer version of the mocha run. It has to be in a separate npm script because the --renderer switch has to be passed to electron-mocha.
Also, mocha needed a patch because it was getting stuck while opening the tests.
I used themes.js as a sample. I added the
sinon
package which allows us to add stub functions with call counts, something we used to rely on jest to have. Then I replaced the jquery in the test with stubbed functions since we are not really testing the jquery effects.