Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
Prefer jest-circus/runner so we bail out when beforeAll explodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
randytarampi committed Apr 21, 2019
1 parent b712e65 commit 8f9e208
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/__tests__/appium-test-wd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import * as wd from 'wd';
import * as capabilities from '../capabilities';
import {DEVICE_TIMEOUT, JEST_TIMEOUT, TARGET_PLATFORM} from '../constants';

jest.setTimeout(JEST_TIMEOUT);

describe('Create Android session (wd)', () => {
let driver;

beforeAll(async () => {
jest.setTimeout(JEST_TIMEOUT);

const {capabilities: deviceConfig, ...serverConfig} = capabilities[TARGET_PLATFORM];

Expand Down
1 change: 1 addition & 0 deletions e2e/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"testRunner": "jest-circus/runner",
"verbose": true
}
1 change: 1 addition & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"/node_modules/",
"/e2e/"
],
"testRunner": "jest-circus/runner",
"verbose": true
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"emulator:android:kill": "if [ -f /tmp/$(node -p 'require(\"./package.json\").name').emulator.android.pid ]; then echo \"Killing Android emulator (`cat /tmp/$(node -p 'require(\"./package.json\").name').emulator.android.pid`) from /tmp/$(node -p 'require(\"./package.json\").name').emulator.android.pid\"; kill -9 `cat /tmp/$(node -p 'require(\"./package.json\").name').emulator.android.pid`; rm /tmp/$(node -p 'require(\"./package.json\").name').emulator.android.pid; fi;"
},
"dependencies": {
"jest-circus": "^24.7.1",
"react": "16.8.3",
"react-native": "0.59.4"
},
Expand Down
22 changes: 22 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4736,6 +4736,28 @@ jest-changed-files@^24.7.0:
execa "^1.0.0"
throat "^4.0.0"

jest-circus@^24.7.1:
version "24.7.1"
resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-24.7.1.tgz#f8dc4db5217eb010d71ad2f5b6e6f357590ccd01"
integrity sha512-zDNSS+7qQN0nSbR77qcOb+tOUWLcvZGzvXE1PjoV6xeHV5Vz7DPK9JkBIQF/n5Nz9yZbApDxq5NqGqmVCe0nnQ==
dependencies:
"@babel/traverse" "^7.1.0"
"@jest/environment" "^24.7.1"
"@jest/test-result" "^24.7.1"
"@jest/types" "^24.7.0"
chalk "^2.0.1"
co "^4.6.0"
expect "^24.7.1"
is-generator-fn "^2.0.0"
jest-each "^24.7.1"
jest-matcher-utils "^24.7.0"
jest-message-util "^24.7.1"
jest-snapshot "^24.7.1"
jest-util "^24.7.1"
pretty-format "^24.7.0"
stack-utils "^1.0.1"
throat "^4.0.0"

jest-cli@^24.7.1:
version "24.7.1"
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.7.1.tgz#6093a539073b6f4953145abeeb9709cd621044f1"
Expand Down

0 comments on commit 8f9e208

Please sign in to comment.