File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ v5.11
Original file line number Diff line number Diff line change @@ -4,6 +4,22 @@ Example of a Unit Tested React Native Application
4
4
When working with ReactNative, I have had much difficulty getting any semblance of testing up and running.
5
5
There were several layers that need to be made clear. Those being Mocha itself, ES6(7?), and React-Native itself.
6
6
7
+ Install Steps
8
+ --------------------------------------------------
9
+ 1 . install nvm
10
+ 1 . git clone this repo and cd into it
11
+ 1 . nvm use
12
+ 1 . install [ react native] ( https://facebook.github.io/react-native/docs/getting-started.html )
13
+ 1 . ` npm install `
14
+ 1 . ` npm install -g mocha `
15
+
16
+ Running
17
+ --------------------------------------------------
18
+ 1 . ` npm start `
19
+ 1 . ` react-native run-ios `
20
+
21
+ To run the tests, type: ` mocha `
22
+
7
23
Mocha
8
24
--------------------------------------------------
9
25
The very basics of a mocha setup reads from mocha.opts in the ./test folder of your project root. In it, we define the options for your mocha run.
You can’t perform that action at this time.
0 commit comments