react/scripts/jest
Sebastian Markbåge c06a68a10b Mock ReactDOM for Fiber Tests (#7206)
We currently write all our tests against the DOM implementation.
I need a way to run the Fiber tests against it. But I don't want
to take on any package dependencies on Fiber modules yet.

There's a problem with jest right now where you can't globally
mock modules that already exist. So I have to add a global call
to jest.mock.

Luckily we already have a way to test the useCreateElement paths
using a feature flag. I won't activate this flag in travis until
it passes, but the idea is to run all three variants in travis.

I'm not sure that invoking rAF and rIC synchronously is the best
way to test this since it doesn't capture the backwards
compatibility aspect. I.e. the fact that people might be relying
on the synchronous nature in real apps too. It's a start.

Ideally, jest would have these built-in.
2016-08-10 17:44:36 -07:00
..
environment.js Mock ReactDOM for Fiber Tests (#7206) 2016-08-10 17:44:36 -07:00
jest.d.ts Upgrade to jest-cli@0.9 and use Jasmine2 2016-05-25 21:48:32 +01:00
preprocessor.js Add reactProdInvariant and corresponding babel rewrite pass (#6948) 2016-06-07 17:11:04 -07:00
test-framework-setup.js Mock ReactDOM for Fiber Tests (#7206) 2016-08-10 17:44:36 -07:00
ts-preprocessor.js match jest.d.ts by regex 2016-05-19 19:24:40 -07:00