You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,22 @@ To fix formatting errors, run the following:
61
61
yarn lint --fix
62
62
```
63
63
64
+
### Testing
65
+
64
66
Remember to add tests for your change if possible. Run the unit tests by:
65
67
68
+
For testing we use the example app which has a component [TestResults.tsx](./example/src/components/TestResults.tsx) that runs the tests.
69
+
70
+
If you add a new test, you need to add it to the [tests](./example/src/tests) folder and import it in the [TestResults.tsx](./example/src/components/TestResults.tsx) component.
71
+
72
+
Verify that the results are the same in the web, iOS and Android. Basically in all environments all tests should pass.
73
+
66
74
```sh
67
-
yarn test
75
+
# Web
76
+
yarn test:e2e:web
77
+
# iOS
78
+
maestro test e2e-tests/maestro-flow-ios.yml
79
+
# Android (see Github Actions workflow for more details)
0 commit comments