diff options
author | kumavis <aaron@kumavis.me> | 2018-05-25 14:18:11 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-05-25 14:18:11 +0800 |
commit | 0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51 (patch) | |
tree | 25c360142c7d822c4600b9929b6f4b07a156092c | |
parent | afdefc58e99a14b26911fc5badcf983629b33179 (diff) | |
download | dexon-wallet-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.gz dexon-wallet-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.zst dexon-wallet-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.zip |
test - unit - run ganache-server in background
-rw-r--r-- | test/helper.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js index 6f1bc051..2225be37 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) |