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
A collection of utils for Apple simulators, Detox uses it communicate with the simulator.
41
+
42
+
A collection of utils for Apple simulators, Detox uses it communicate with the simulator.
43
43
44
44
```sh
45
45
brew tap wix/brew
@@ -71,16 +71,18 @@ npm install detox --save-dev
71
71
72
72
#### 2. Install mocha
73
73
74
-
You can use any JavaScript test runner, [Mocha](https://mochajs.org/) is a good one we recommend:
74
+
You can use any JavaScript test runner
75
+
-[Jest](Guide.Jest.md)
76
+
-[Mocha](https://mochajs.org/) is a good one we recommend:
75
77
76
78
```sh
77
79
npm install mocha --save-dev
78
-
```
80
+
```
79
81
80
82
#### 3. Add Detox config to package.json
81
83
82
84
The basic configuration for Detox should be in your `package.json` file under the `detox` property:
83
-
85
+
84
86
```json
85
87
"detox": {
86
88
"configurations": {
@@ -90,10 +92,10 @@ The basic configuration for Detox should be in your `package.json` file under th
90
92
"type": "ios.simulator",
91
93
"name": "iPhone 7"
92
94
}
93
-
}
95
+
}
94
96
}
95
97
```
96
-
98
+
97
99
In the above configuration example, change `example` to your actual project name. Under the key `"binaryPath"`, `example.app` should be `<your_project_name>.app`. Under the key `"build"`, `example.xcodeproj` should be `<your_project_name>.xcodeproj` and `-scheme example` should be `-scheme <your_project_name>`.
98
100
99
101
For iOS apps in a workspace (eg: Cocoapods) use `-workspace ios/example.xcworkspace` instead of `-project`.
@@ -143,6 +145,6 @@ Use the Detox command line tools to test your project easily:
143
145
detox test
144
146
```
145
147
146
-
That's it. Your first failing Detox test is running!
148
+
That's it. Your first failing Detox test is running!
147
149
148
150
Next, we'll go over usage and how to make this test [actually pass](Introduction.WritingFirstTest.md).
0 commit comments