Code Monkey home page Code Monkey logo

expo-detox-test's Introduction

expo-detox-test

Sample project in React Native to try out Detox E2E tests.

This app is built with Expo managed workflow using Expo SDK 41 ๐Ÿ†•

Demo

How to run it?

  1. Install detox-cli as mentioned https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md#step-1-install-dependencies
  2. Install Expo Go client on your simulator by running yarn downloadExpoApp
  3. Install project dependencies by running yarn
  4. Start Expo Bundler by running yarn ios
  5. Open new terminal window and run GUI tests by yarn testGUI

Things to know about

Since Detox 18.0.0 there's some issue with Expo support. So till problem is resolved i stick to [email protected]. and apply patch proposed in this post expo/detox-tools#1 (comment)

This project uses patch-package to append some code to detox-expo-helpers, it's done automatically after installing dependencies in step #3 ('How to run it?' section)

Some links to remember

expo-detox-test's People

Contributors

cichun avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

israelgonzalezb

expo-detox-test's Issues

This doesn't work

I've attached a video demonstrating that Detox doesn't open the actual React App in Expo:

Bildschirmaufnahme.2021-07-21.um.07.27.17.mov

I noticed that when installing the lockfile changes:

diff --git a/yarn.lock b/yarn.lock
index 2d86ce6..7b772b8 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4240,10 +4240,10 @@ detox-expo-helpers@^0.6.0:
     semver "^5.6.0"
     xdl "^51.5.0"

-detox@~17.14.3:
-  version "17.14.3"
-  resolved "https://registry.yarnpkg.com/detox/-/detox-17.14.3.tgz#df83152eac01966a0682c6def9c2da22a3aa1b40"
-  integrity sha512-Lzam8lA3XGS90oJ7ubdoHrAusvFETHjywWLkvZe6KJyaMiklj2DyQueZDp6vFGjg4V5aO6CMIEaUWaZjpLj4SQ==
+detox@^17.14.3:
+  version "17.14.9"
+  resolved "https://registry.yarnpkg.com/detox/-/detox-17.14.9.tgz#e269de0937e615eac92ac283b2303751bcf2c072"
+  integrity sha512-WLpl7BJ2xecZJ02hFFWgzo61RnlO/LlsH/U8GWztoXsT0z0t9iKsBci8AhSSErQfH0IHnNtDcZknIxt0gzNhoQ==
   dependencies:
     bunyan "^1.8.12"
     bunyan-debug-stream "^1.1.0"

I'll try to pin the actual 17.14.3 version and try it again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.