From 8a64a31d5a123420df446e8092dfc4d7ad100ee7 Mon Sep 17 00:00:00 2001 From: Alex Indigo Date: Thu, 4 Aug 2016 23:30:18 -0700 Subject: [PATCH] - Made tests to pass in node@4. - Added coverage - Fixed missing dependencies --- .babelrc | 8 +++++--- .travis.yml | 1 + package.json | 18 +++++++++++++++++- {tests => test}/extendReactClass.js | 0 {tests => test}/linkClass.js | 0 {tests => test}/makeConfiguration.js | 0 {tests => test}/reactCssModules.js | 0 {tests => test}/simple-map.js | 0 {tests => test}/wrapStatelessFunction.js | 0 9 files changed, 23 insertions(+), 4 deletions(-) rename {tests => test}/extendReactClass.js (100%) rename {tests => test}/linkClass.js (100%) rename {tests => test}/makeConfiguration.js (100%) rename {tests => test}/reactCssModules.js (100%) rename {tests => test}/simple-map.js (100%) rename {tests => test}/wrapStatelessFunction.js (100%) diff --git a/.babelrc b/.babelrc index 197c614..ce8d537 100644 --- a/.babelrc +++ b/.babelrc @@ -7,8 +7,10 @@ "plugins": [ "add-module-exports", "lodash", - "transform-class-properties", - ["transform-es2015-classes", { "loose": true }], - "transform-proto-to-assign" + "transform-class-properties", + ["transform-es2015-classes", { + "loose": true + }], + "transform-proto-to-assign" ] } diff --git a/.travis.yml b/.travis.yml index 3a0df49..632963e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: node_js node_js: - 6 - 5 + - 4 notifications: email: false sudo: false diff --git a/package.json b/package.json index e8a0947..96d1514 100644 --- a/package.json +++ b/package.json @@ -28,16 +28,31 @@ "babel-cli": "^6.10.1", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-lodash": "^3.2.5", + "babel-plugin-transform-class-properties": "^6.11.5", + "babel-plugin-transform-es2015-classes": "^6.9.0", "babel-plugin-transform-proto-to-assign": "^6.9.0", "babel-preset-es2015": "^6.9.0", "babel-preset-react": "^6.11.1", "babel-preset-stage-0": "^6.5.0", "babel-register": "^6.9.0", "chai": "^3.5.0", + "coveralls": "^2.11.12", "eslint": "^3.0.0", "eslint-config-canonical": "^1.7.12", + "eslint-plugin-babel": "^3.3.0", + "eslint-plugin-flowtype": "^2.4.0", + "eslint-plugin-import": "^1.12.0", + "eslint-plugin-jsdoc": "^2.3.1", + "eslint-plugin-lodash": "^1.10.1", + "eslint-plugin-mocha": "^4.3.0", + "eslint-plugin-no-use-extend-native": "^0.3.7", + "eslint-plugin-promise": "^2.0.0", + "eslint-plugin-react": "^6.0.0", + "eslint-plugin-sorting": "^0.3.0", "jsdom": "^8.1.0", "mocha": "^2.5.3", + "nyc": "^7.1.0", + "pre-commit": "^1.1.3", "react": "^15.0.0-rc.1", "react-addons-shallow-compare": "^15.0.0-rc.1", "react-addons-test-utils": "^15.0.0-rc.1", @@ -45,7 +60,8 @@ }, "scripts": { "lint": "eslint ./src ./tests", - "test": "mocha --compilers js:babel-register ./tests/**/*.js", + "test": "nyc --reporter=lcov --reporter=text mocha --compilers js:babel-register ./test/**/*.js", + "debug": "mocha --compilers js:babel-register ./test/**/*.js", "build": "babel ./src --out-dir ./dist" } } diff --git a/tests/extendReactClass.js b/test/extendReactClass.js similarity index 100% rename from tests/extendReactClass.js rename to test/extendReactClass.js diff --git a/tests/linkClass.js b/test/linkClass.js similarity index 100% rename from tests/linkClass.js rename to test/linkClass.js diff --git a/tests/makeConfiguration.js b/test/makeConfiguration.js similarity index 100% rename from tests/makeConfiguration.js rename to test/makeConfiguration.js diff --git a/tests/reactCssModules.js b/test/reactCssModules.js similarity index 100% rename from tests/reactCssModules.js rename to test/reactCssModules.js diff --git a/tests/simple-map.js b/test/simple-map.js similarity index 100% rename from tests/simple-map.js rename to test/simple-map.js diff --git a/tests/wrapStatelessFunction.js b/test/wrapStatelessFunction.js similarity index 100% rename from tests/wrapStatelessFunction.js rename to test/wrapStatelessFunction.js