From a8d195c2ea9de6d94603f28bb57deea14f1eaae5 Mon Sep 17 00:00:00 2001 From: Mason Date: Thu, 17 Dec 2020 08:41:53 -0800 Subject: [PATCH] suppress bootstrap warnings during unit testing --- client/tests/jest/jest.setup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/tests/jest/jest.setup.js b/client/tests/jest/jest.setup.js index 660c40d654e..e165b562fe6 100644 --- a/client/tests/jest/jest.setup.js +++ b/client/tests/jest/jest.setup.js @@ -2,4 +2,8 @@ import "@testing-library/jest-dom"; /* still don't understand what was invoking the following, but nothing should, and this makes the tag tests work correctly */ -global.XMLHttpRequest = undefined; \ No newline at end of file +global.XMLHttpRequest = undefined; + +// stops Bootstrap's warnings when components can't find a non-existent doc +// https://github.com/bootstrap-vue/bootstrap-vue/issues/3303 +process.env.BOOTSTRAP_VUE_NO_WARN = true;