Closed alexandraleah closed 6 years ago
Yeah. Can you try to figure out why? It started happening recently.
My guess is that something's going on with await
calls in those tests. I know they don't await a Promise so maybe that's the reason? cc @acdlite
hi @gaearon & @acdlite hello from Boston! We hosting and mentoring a HactoberFest in Boston and we just filed this bug. A special message from us -- thanks for hopping on this so quickly- we will investigate:
This should fix it (I tested in Node 10 and 8): https://github.com/facebook/react/commit/b753f76a74644dd19e7a29f8aa4e8c759190f9ef
As a follow-up we should rewrite those tests to be less flaky, like using timers instead of a microtask.
I'm guessing that there was some change to async/await and microtasks in Node 10.
Might be related to this: https://github.com/nodejs/node/issues/22257
When running
yarn test
on node v10.5.0, the following 3 tests fail:On node v8.12.0 and node v9.11.2 all tests passed
Below is the output for these 3 tests:
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? React version 16.6.0-alpha.8af6728 Node v10.5.0 Mac OS 10.13.6 Also reproduced on Ubuntu 18.04 (bionic)
Note: I had an error when attempting to run
yarn build
based on an unrelated issue.