From 0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51 Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 24 May 2018 23:18:11 -0700 Subject: [PATCH] test - unit - run ganache-server in background --- test/helper.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/helper.js b/test/helper.js index 6f1bc051f..2225be37a 100644 --- a/test/helper.js +++ b/test/helper.js @@ -1,3 +1,4 @@ +const Ganache = require('ganache-core') import Enzyme from 'enzyme' import Adapter from 'enzyme-adapter-react-15' @@ -5,6 +6,12 @@ Enzyme.configure({ adapter: new Adapter() }) // disallow promises from swallowing errors enableFailureOnUnhandledPromiseRejection() +// ganache server +const server = Ganache.server() +server.listen(8545, () => { + console.log('Ganache Testrpc is running on "http://localhost:8545"') +}) + // logging util var log = require('loglevel') log.setDefaultLevel(5)