ide/stores/actions/project_spec.js fails locally on current master
Running Karma tests locally on this spec alone (yarn karma-start -f spec/javascripts/ide/stores/actions/project_spec.js
) throws
Expected Error: [vuex] actions should be function or object with "handler" function but "actions.redirectToUrl" is undefined. to be null
According to https://docs.gitlab.com/ee/development/fe_guide/vuex.html#testing-vuex-actions-and-getters this error should be fixed by adding the following to a corresponding getters or actions file (ide/stores/actions/project.js
in this case):
export default () => {};
but it doesn't solve the issue.
NOTE: Running tests on the whole spec/javascripts/ide/stores/actions/
folder doesn't throw an error and is all green.