Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Update to Jest 11.0.2.
Browse files Browse the repository at this point in the history
Summary:
I ran a codemod and broke draft-js. Updated to the latest version. Had to fix one test that in open source wasn't behaving. I think this fixes it properly, must have been a Jest bug before :)
Closes #341

Differential Revision: D3223859

fb-gh-sync-id: 03ea20ebcb14caa40103ffa06c3561c0faaa645d
fbshipit-source-id: 03ea20ebcb14caa40103ffa06c3561c0faaa645d
  • Loading branch information
cpojer authored and Facebook Github Bot 4 committed Apr 26, 2016
1 parent 0f75b02 commit e2949e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"gulp-header": "^1.7.1",
"gulp-uglify": "^1.2.0",
"gulp-util": "^3.0.6",
"jest-cli": "^0.9.0-fb1",
"jest-cli": "^11.0.2",
"object-assign": "^4.0.1",
"react": "^15.0.0-rc.1",
"react-dom": "^15.0.0-rc.1",
Expand Down Expand Up @@ -84,10 +84,10 @@
"testPathDirs": [
"<rootDir>/src/"
],
"testRunner": "node_modules/jest-cli/src/testRunners/jasmine/jasmine2.js",
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/fbjs/node_modules/",
"<rootDir>/node_modules/fbjs/lib/(?!(UserAgent.js$|UserAgentData.js$))",
"<rootDir>/node_modules/fbjs/lib/UserAgent.js",
"<rootDir>/node_modules/fbjs/lib/UserAgentData.js",
"<rootDir>/node_modules/fbjs-scripts/",
"<rootDir>/node_modules/immutable/",
"<rootDir>/node_modules/react/",
Expand Down
3 changes: 2 additions & 1 deletion src/component/contents/__tests__/DraftEditorTextNode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

'use strict';

jest.unmock('DraftEditorTextNode.react');
jest.unmock('DraftEditorTextNode.react')
.mock('UserAgent');

var BLOCK_DELIMITER_CHAR = '\n';
var TEST_A = 'Hello';
Expand Down

0 comments on commit e2949e4

Please sign in to comment.