Skip to content

Commit

Permalink
add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkasm committed Dec 16, 2016
1 parent 7ef8dd9 commit dc2b709
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"presets": ["react-native"]
"presets": ["react-native"],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
#
node_modules/
npm-debug.log

.nyc_output
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@
"description": "Cascading styles for ReactNative",
"main": "src/index.js",
"scripts": {
"test": "mocha --require tests/setup tests/*.spec.js",
"bench": "node -r babel-register bench/bench.js"
"test": "mocha --require test/setup test/*.spec.js",
"bench": "node -r babel-register bench/bench.js",
"cover": "cross-env NODE_ENV=test nyc mocha -r test/setup test/*.spec.js"
},
"nyc": {
"require": [
"babel-register"
],
"sourceMap": false,
"instrument": false
},
"keywords": [
"react-native",
Expand All @@ -24,10 +32,12 @@
"license": "MIT",
"devDependencies": {
"babel-eslint": "^7.0.0",
"babel-plugin-istanbul": "^3.0.0",
"babel-preset-react-native": "^1.9.0",
"babel-register": "^6.18.0",
"benchmark": "^2.1.2",
"chai": "^3.5.0",
"cross-env": "^3.1.3",
"enzyme": "^2.6.0",
"eslint": "^3.3.1",
"eslint-config-standard": "^6.2.1",
Expand All @@ -42,6 +52,7 @@
"microtime": "^2.1.2",
"mocha": "^3.2.0",
"mocha-eslint": "^3.0.1",
"nyc": "^10.0.0",
"react": "^15.4.1",
"react-native": "^0.39.2",
"react-native-mock": "^0.2.9"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dc2b709

Please sign in to comment.