Add FLIPPER_PORTS env var to desktop app
Summary: Part 3 and final part of adding customizable ports. To use this, the iOS / Android apps have to also be started with the same custom ports. Example usage: `FLIPPER_PORTS=8189,8188 yarn start` Reviewed By: passy Differential Revision: D13801761 fbshipit-source-id: 3dd80a3001ed0855e54cc568fa94eb6fac5fc7f1
This commit is contained in:
committed by
Facebook Github Bot
parent
e558d8a01a
commit
dbb723f8a5
@@ -5,8 +5,8 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import Server, {SECURE_PORT, INSECURE_PORT} from '../server.js';
|
||||
import {init as initLogger} from '../fb-stubs/Logger';
|
||||
import Server from '../server';
|
||||
import reducers from '../reducers/index.js';
|
||||
import configureStore from 'redux-mock-store';
|
||||
import path from 'path';
|
||||
@@ -28,7 +28,8 @@ beforeAll(() => {
|
||||
});
|
||||
|
||||
test('servers starting at ports', done => {
|
||||
const serversToBeStarted = new Set([SECURE_PORT, INSECURE_PORT]);
|
||||
const ports = mockStore.getState().application.serverPorts;
|
||||
const serversToBeStarted = new Set([ports.secure, ports.insecure]);
|
||||
|
||||
// Resolve promise when we get a listen event for each port
|
||||
const listenerPromise = new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user