Skip to content

up1/demo-reactnative-testing-with-detox

Repository files navigation

Demo ReactNative testing with Detox

Software Requirements

$npx react-native init demo01
$npx react-native start
$npx react-native run-ios

File ios/Podfile

# use_flipper!()

Update pod

$rm -rf ~/Library/Developer/Xcode/DerivedData/*
$cd ios/
$rm -rf Pods
$rm -rf build
$pod install

Run dev mode with iOS and custom configurations

$npm run ios

Testing with Detox

$npm install -g detox-cli
$npm install detox --save-dev

Initial detox in project

$detox init

Building with Detox

$npm run build-e2e

Run tests with Detox

$npm run test-e2e