mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
b02bbfebe7
* Remove fixtures that only work with Fiber **what is the change?:** Removes three directories in the 'fixtures' directory. **why make this change?:** These fixtures were designed to work with Fiber, and were accidentally pulled into this branch. They were causing errors when we try to build the other fixtures. **test plan:** `cd react/fixtures && node ./build-all.js` no longer throws an error from `fiber-debugger/App.js` - although it still throws another error **issue:** https://github.com/facebook/react/issues/9900 * Add back the 'babel-standalone' fixture **what is the change?:** Add this fixture back to the 15.6 branch **why make this change?:** This fixture is not fiber specific **test plan:** `node ./build-all.js` inside of ./fixtures **issue:** https://github.com/facebook/react/issues/9900
Manual Testing Fixtures
This folder exists for React contributors only.
If you use React you don't need to worry about it.
These fixtures verify that the built React distributions are usable in different environments.
They are not running automatically. (At least not yet, feel free to contribute to automate them.)
Run them when you make changes to how we package React, ReactDOM, and addons.
How to Run
First, build React and the fixtures:
cd react
npm run build
cd fixtures
node build-all.js
Then run a local server at the root of the repo, e.g.
npm i -g pushstate-server
cd ..
pushstate-server .
(Too complicated? Send a PR to simplify this :-).
Then open the corresponding URLs, for example:
open http://localhost:9000/fixtures/globals.html
open http://localhost:9000/fixtures/requirejs.html
open http://localhost:9000/fixtures/systemjs.html
open http://localhost:9000/fixtures/browserify/index.html
open http://localhost:9000/fixtures/brunch/index.html
open http://localhost:9000/fixtures/rjs/index.html
open http://localhost:9000/fixtures/systemjs-builder/index.html
open http://localhost:9000/fixtures/webpack/index.html
open http://localhost:9000/fixtures/webpack-alias/index.html
You should see two things:
- "Hello World" fading in with an animation.
- No errors in the console.