From 0720f2dfe66e2738bc51087573b55130fd84a51c Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 7 Dec 2019 03:25:55 -0800 Subject: [PATCH] Fix isHTMLBRElement test (#2278) Summary: **Summary** In the Facebook repo mirror, modules in Jest tests are not mocked, but on GitHub they are (as seen from `package.json`). That led to D18831442 passing internally in Sandcastle but failing on Travis. Not a huge deal, we can just add `jest.disableAutomock()`. We might want to see if we can remove `"automock": true,` from the Jest config in `package.json` to have a more similar environment to Facebook's Jest config. **Test Plan** Travis CI should pass now. Pull Request resolved: https://github.com/facebook/draft-js/pull/2278 Differential Revision: D18874041 Pulled By: yangshun fbshipit-source-id: 282c137934dea27259a2b52741c749fb6c332323 --- src/component/utils/__tests__/isHTMLBRElement-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/component/utils/__tests__/isHTMLBRElement-test.js b/src/component/utils/__tests__/isHTMLBRElement-test.js index 4a88b8e805..028b651ccd 100644 --- a/src/component/utils/__tests__/isHTMLBRElement-test.js +++ b/src/component/utils/__tests__/isHTMLBRElement-test.js @@ -11,6 +11,8 @@ 'use strict'; +jest.disableAutomock(); + const isHTMLBRElement = require('isHTMLBRElement'); test('isHTMLBRElement recognizes null', () => {