Skip to content

Commit 39800b6

Browse files
committed
Updated README with install steps and added .nvmrc file
1 parent f1adbd0 commit 39800b6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v5.11

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ Example of a Unit Tested React Native Application
44
When working with ReactNative, I have had much difficulty getting any semblance of testing up and running.
55
There were several layers that need to be made clear. Those being Mocha itself, ES6(7?), and React-Native itself.
66

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+
723
Mocha
824
--------------------------------------------------
925
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.

0 commit comments

Comments
 (0)