aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-25 14:18:11 +0800
committerkumavis <aaron@kumavis.me>2018-05-25 14:18:11 +0800
commit0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51 (patch)
tree25c360142c7d822c4600b9929b6f4b07a156092c
parentafdefc58e99a14b26911fc5badcf983629b33179 (diff)
downloadtangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar
tangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.gz
tangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.bz2
tangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.lz
tangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.xz
tangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.tar.zst
tangerine-wallet-browser-0b45810d4cdb6f5cfcf875b916b7dc52c4c6ef51.zip
test - unit - run ganache-server in background
-rw-r--r--test/helper.js7
1 files changed, 7 insertions, 0 deletions
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)