expo / expo/eas-tests-example

`testFailed` does not work with detox@20

Open
#7 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
34
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Thanks for the example application.
Currently I am facing the error ReferenceError: testFailed is not defined while running my tests
If I comment testFailed flag in the below code everything is working fine but missing the feature of only taking screenshot for failed test cases.

here is my code, please suggest how to solve this issue.

ReferenceError: testFailed is not defined

1 |
2 | afterEach(async () => {
> 3 | if (testFailed) {
| ^
4 | await device.takeScreenshot('screenshot');
5 | }
6 | });

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.