Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-03-25 23:15:25 +0300
committerWinnie Hellmann <winnie@gitlab.com>2019-03-29 13:53:17 +0300
commit0b68b17c3bf5d93fe942eed2ef0d16b6824f5499 (patch)
tree16cf6fd3545fbd0475bb4e28de3ec1a9d54006fa /spec/frontend/test_setup.js
parent0d26c48332e7c580946adbd41795d4817909e2ef (diff)
Fail for unhandled Promise rejections in Jest
Diffstat (limited to 'spec/frontend/test_setup.js')
-rw-r--r--spec/frontend/test_setup.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js
index 006fc60ef57..00d7873ab2b 100644
--- a/spec/frontend/test_setup.js
+++ b/spec/frontend/test_setup.js
@@ -3,6 +3,8 @@ import Translate from '~/vue_shared/translate';
import axios from '~/lib/utils/axios_utils';
import { initializeTestTimeout } from './helpers/timeout';
+process.on('unhandledRejection', global.promiseRejectionHandler);
+
// wait for pending setTimeout()s
afterEach(() => {
jest.runAllTimers();