Skip to content

Commit

Permalink
Jest bug repro
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 21, 2016
1 parent 77c890d commit 8a0e694
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"gulp-load-plugins": "^1.2.4",
"gulp-util": "^3.0.7",
"gzip-js": "~0.3.2",
"jest-cli": "17.0.2",
"jest-cli": "17.0.3",
"jest-config": "^17.0.2",
"jest-jasmine2": "^17.0.2",
"jest-runtime": "^17.0.2",
Expand Down
23 changes: 23 additions & 0 deletions src/addons/__tests__/JestBug-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-core
*/

'use strict';

var React = require('React');
var ReactDOM = require('ReactDOM');

describe('JestBug', () => {
it('should not stall', () => {
var container = document.createElement('div');
ReactDOM.render(<div />, container);
expect(container.firstChild).toBe(null);
});
});
51 changes: 22 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ [email protected]:
version "0.8.12"
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.12.tgz#a0d90e4351bb887716c83fd637ebf818af4adfcc"

[email protected]:
version "0.8.15"
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.15.tgz#8eef0827f04dff0ec8857ba925abe3fea6194e52"

astw@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/astw/-/astw-2.0.0.tgz#08121ac8288d35611c0ceec663f6cd545604897d"
Expand Down Expand Up @@ -3150,9 +3146,9 @@ jest-changed-files@^17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-17.0.2.tgz#f5657758736996f590a51b87e5c9369d904ba7b7"

[email protected].2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-17.0.2.tgz#beaf9e0315894bb95919b55db923502a66fd3c63"
[email protected].3, jest-cli@^17.0.3:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-17.0.3.tgz#700b8c02a9ea0ec9eab0cd5a9fd42d8a858ce146"
dependencies:
ansi-escapes "^1.4.0"
callsites "^2.0.0"
Expand All @@ -3163,16 +3159,16 @@ [email protected]:
istanbul-lib-coverage "^1.0.0"
istanbul-lib-instrument "^1.1.1"
jest-changed-files "^17.0.2"
jest-config "^17.0.2"
jest-config "^17.0.3"
jest-environment-jsdom "^17.0.2"
jest-file-exists "^17.0.0"
jest-haste-map "^17.0.2"
jest-jasmine2 "^17.0.2"
jest-haste-map "^17.0.3"
jest-jasmine2 "^17.0.3"
jest-mock "^17.0.2"
jest-resolve "^17.0.2"
jest-resolve-dependencies "^17.0.2"
jest-runtime "^17.0.2"
jest-snapshot "^17.0.2"
jest-resolve "^17.0.3"
jest-resolve-dependencies "^17.0.3"
jest-runtime "^17.0.3"
jest-snapshot "^17.0.3"
jest-util "^17.0.2"
json-stable-stringify "^1.0.0"
node-notifier "^4.6.1"
Expand Down Expand Up @@ -3225,7 +3221,7 @@ jest-file-exists@^17.0.0:
version "17.0.0"
resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-17.0.0.tgz#7f63eb73a1c43a13f461be261768b45af2cdd169"

jest-haste-map@^17.0.2, jest-haste-map@^17.0.3:
jest-haste-map@^17.0.3:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-17.0.3.tgz#5232783e70577217b6b17d2a1c1766637a1d2fbd"
dependencies:
Expand Down Expand Up @@ -3263,14 +3259,14 @@ jest-mock@^17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-17.0.2.tgz#3dfe9221afd9aa61b3d9992840813a358bb2f429"

jest-resolve-dependencies@^17.0.2:
jest-resolve-dependencies@^17.0.3:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-17.0.3.tgz#bbd37f4643704b97a980927212f3ab12b06e8894"
dependencies:
jest-file-exists "^17.0.0"
jest-resolve "^17.0.3"

jest-resolve@^17.0.2, jest-resolve@^17.0.3:
jest-resolve@^17.0.3:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-17.0.3.tgz#7692a79de2831874375e9d664bc782c29e4da262"
dependencies:
Expand All @@ -3279,7 +3275,7 @@ jest-resolve@^17.0.2, jest-resolve@^17.0.3:
jest-haste-map "^17.0.3"
resolve "^1.1.6"

jest-runtime@^17.0.2:
jest-runtime@^17.0.2, jest-runtime@^17.0.3:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-17.0.3.tgz#eff4055fe8c3e17c95ed1aaaf5f719c420b86b1f"
dependencies:
Expand All @@ -3299,7 +3295,7 @@ jest-runtime@^17.0.2:
multimatch "^2.1.0"
yargs "^6.3.0"

jest-snapshot@^17.0.2, jest-snapshot@^17.0.3:
jest-snapshot@^17.0.3:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-17.0.3.tgz#c8199db4ccbd5515cfecc8e800ab076bdda7abc0"
dependencies:
Expand All @@ -3321,6 +3317,12 @@ jest-util@^17.0.2:
jest-mock "^17.0.2"
mkdirp "^0.5.1"

jest@latest:
version "17.0.3"
resolved "https://registry.yarnpkg.com/jest/-/jest-17.0.3.tgz#89c43b30b0aaad42462e9ea701352dacbad4a354"
dependencies:
jest-cli "^17.0.3"

jodid25519@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967"
Expand Down Expand Up @@ -4436,7 +4438,7 @@ readline2@^1.0.1:
is-fullwidth-code-point "^1.0.0"
mute-stream "0.0.5"

[email protected]:
[email protected], recast@^0.10.0, recast@^0.10.10:
version "0.10.33"
resolved "https://registry.yarnpkg.com/recast/-/recast-0.10.33.tgz#942808f7aa016f1fa7142c461d7e5704aaa8d697"
dependencies:
Expand All @@ -4445,15 +4447,6 @@ [email protected]:
private "~0.1.5"
source-map "~0.5.0"

recast@^0.10.0, recast@^0.10.10:
version "0.10.43"
resolved "https://registry.yarnpkg.com/recast/-/recast-0.10.43.tgz#b95d50f6d60761a5f6252e15d80678168491ce7f"
dependencies:
ast-types "0.8.15"
esprima-fb "~15001.1001.0-dev-harmony-fb"
private "~0.1.5"
source-map "~0.5.0"

rechoir@^0.6.2:
version "0.6.2"
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
Expand Down

0 comments on commit 8a0e694

Please sign in to comment.