Browse Source

TST: hope to improve CI tests

tradermain
Overtorment 5 years ago
parent
commit
5cf55b1f5f
  1. 2
      .circleci/config.yml
  2. 2
      package.json
  3. 2
      tests/integration/hd-segwit-bech32-wallet.test.js

2
.circleci/config.yml

@ -20,4 +20,4 @@ jobs:
- node_modules
# run tests!
- run: npm t || npm t
- run: npm t || npm t || npm t

2
package.json

@ -39,7 +39,7 @@
"ios": "react-native run-ios",
"postinstall": "./node_modules/.bin/rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path --hack; npm run releasenotes2json; npm run podinstall; npx jetify",
"test": "npm run unit && npm run jest && npm run lint",
"jest": "node node_modules/jest/bin/jest.js tests/integration/*",
"jest": "node node_modules/jest/bin/jest.js -b -w 1 tests/integration/*",
"e2e:release": "detox build -c android.emu.release; detox test -c android.emu.release --record-videos all --take-screenshots all --headless",
"e2e:debug": "(test -f android/app/build/outputs/apk/debug/app-debug.apk && test -f android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk) || detox build -c android.emu.debug; detox test -c android.emu.debug",
"lint": "./node_modules/.bin/eslint *.js screen/**/*.js screen/ class/ models/ loc/ tests/integration/ tests/e2e/ tests/unit/",

2
tests/integration/hd-segwit-bech32-wallet.test.js

@ -6,7 +6,7 @@ global.net = require('net'); // needed by Electrum client. For RN it is proviced
global.tls = require('tls'); // needed by Electrum client. For RN it is proviced in shim.js
let BlueElectrum = require('../../BlueElectrum'); // so it connects ASAP
jasmine.DEFAULT_TIMEOUT_INTERVAL = 200 * 1000;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 300 * 1000;
afterAll(async () => {
// after all tests we close socket so the test suite can actually terminate

Loading…
Cancel
Save