Skip to content

Provide custom Jest environment with mocked console (EE-port)

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

EE-port of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26577

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 Coung Ngo

Merge request reports