mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-27 14:54:55 +00:00
Fix for failed test stopping tests in ReactTestsApp
This commit is contained in:
parent
3307bf0a26
commit
030807e2b9
10
tests/react-test-app/tests/index.js
vendored
10
tests/react-test-app/tests/index.js
vendored
@ -52,14 +52,22 @@ export function getTestNames() {
|
||||
|
||||
export async function runTests() {
|
||||
let testNames = getTestNames();
|
||||
let passed = true;
|
||||
|
||||
for (let suiteName in testNames) {
|
||||
console.log('Starting ' + suiteName);
|
||||
|
||||
for (let testName of testNames[suiteName]) {
|
||||
await runTest(suiteName, testName);
|
||||
try {
|
||||
await runTest(suiteName, testName);
|
||||
}
|
||||
catch (e) {
|
||||
passed = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return passed;
|
||||
}
|
||||
|
||||
export async function runTest(suiteName, testName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user