Skip to content

Provide custom Jest environment with mocked console

Inactive Account requested to merge winh-jest-console into master

What does this MR do?

Make sure that console.warn() and console.error() fail the corresponding test in Jest. This also catches Vue warnings like missing required props or props of wrong type (https://github.com/vuejs/vue/blob/v2.6.10/src/core/util/debug.js#L24) and Boostrap Vue warnings (https://github.com/bootstrap-vue/bootstrap-vue/blob/v2.0.0-rc.15/src/utils/warn.js#L7).

What are the relevant issue numbers?

closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58203

Does this MR meet the acceptance criteria?

Edited by Inactive Account

Merge request reports