import { setup as setupDevServer } from 'jest-dev-server' ; const liveServers = [ { command : 'npm run start:server:live' , port : 9443 , } , ] ; const mockServers = [ { command : 'npm run start:server' , port : 9443 , } , ] ; const servers = process . env . LIVE === 'true' ? liveServers : mockServers ; module . exports = async ( ) => { await setupDevServer ( servers ) ; } ;