Add different types of mocking to frontend testing guidelines
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
We currently use
- Jasmine Spys
- rewire
- a handful of custom mocks (for example
spec/javascripts/helpers/vuex_action_helper.js)
and will soon use
- Vue Test Utils (https://gitlab.com/gitlab-org/gitlab-ce/issues/41069)
- Jest Mocks (https://gitlab.com/gitlab-org/gitlab-ce/issues/52483)
We need to document when to use which type of mocking.
Edited by 🤖 GitLab Bot 🤖