File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 "postinstall" : " node node_modules/fbjs-scripts/node/check-dev-engines.js package.json && node ./scripts/flow/createFlowConfigs.js" ,
100100 "debug-test" : " cross-env NODE_ENV=development node --inspect-brk node_modules/.bin/jest --config ./scripts/jest/config.source.js --runInBand" ,
101101 "test" : " cross-env NODE_ENV=development jest --config ./scripts/jest/config.source.js" ,
102+ "test-fire" : " cross-env NODE_ENV=development jest --config ./scripts/jest/config.source-fire.js" ,
102103 "test-prod" : " cross-env NODE_ENV=production jest --config ./scripts/jest/config.source.js" ,
104+ "test-fire-prod" : " cross-env NODE_ENV=production jest --config ./scripts/jest/config.source-fire.js" ,
103105 "test-prod-build" : " yarn test-build-prod" ,
104106 "test-build" : " cross-env NODE_ENV=development jest --config ./scripts/jest/config.build.js" ,
105107 "test-build-prod" : " cross-env NODE_ENV=production jest --config ./scripts/jest/config.build.js" ,
Original file line number Diff line number Diff line change 1919
2020if [ $(( 1 % CIRCLE_NODE_TOTAL)) -eq " $CIRCLE_NODE_INDEX " ]; then
2121 COMMANDS_TO_RUN+=(' yarn test-prod --maxWorkers=2' )
22+ # React Fire:
23+ COMMANDS_TO_RUN+=(' yarn test-fire --maxWorkers=2' )
24+ COMMANDS_TO_RUN+=(' yarn test-fire-prod --maxWorkers=2' )
2225fi
2326
2427if [ $(( 2 % CIRCLE_NODE_TOTAL)) -eq " $CIRCLE_NODE_INDEX " ]; then
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ const baseConfig = require ( './config.base' ) ;
4+
5+ module . exports = Object . assign ( { } , baseConfig , {
6+ setupFiles : [
7+ ...baseConfig . setupFiles ,
8+ require . resolve ( './setupFire.js' ) ,
9+ require . resolve ( './setupHostConfigs.js' ) ,
10+ ] ,
11+ } ) ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ jest . mock ( 'shared/ReactFeatureFlags' , ( ) => {
4+ const ReactFeatureFlags = require . requireActual ( 'shared/ReactFeatureFlags' ) ;
5+ // TODO: Set feature flags for Fire
6+ return ReactFeatureFlags ;
7+ } ) ;
You can’t perform that action at this time.
0 commit comments