Skip to content

Commit 0720f2d

Browse files
yangshunmmissey
authored andcommitted
Fix isHTMLBRElement test (facebookarchive#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: facebookarchive#2278 Differential Revision: D18874041 Pulled By: yangshun fbshipit-source-id: 282c137934dea27259a2b52741c749fb6c332323
1 parent bd45476 commit 0720f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/component/utils/__tests__/isHTMLBRElement-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
'use strict';
1313

14+
jest.disableAutomock();
15+
1416
const isHTMLBRElement = require('isHTMLBRElement');
1517

1618
test('isHTMLBRElement recognizes null', () => {

0 commit comments

Comments
 (0)