From de0685c8bb9bf8c6be36e1447796b3d6f299bce9 Mon Sep 17 00:00:00 2001 From: Joey Baker Date: Mon, 5 Sep 2016 17:10:58 -0700 Subject: [PATCH] Chore: install and configure AVA --- .eslintrc | 8 +++++++- package.json | 11 ++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index cbc6290..c3abca1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,9 @@ { - "extends": "pichak" + "plugins": [ + "ava" + ], + "extends": [ + "pichak", + "plugin:ava/recommended" + ] } diff --git a/package.json b/package.json index 9fa69b9..160432e 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ } }, "scripts": { - "lint": "eslint src test", - "test": "echo \"Error: no test specified\" && exit 1", + "lint": "eslint src", + "test": "ava --require babel-register --source='*.test.js'", + "tdd": "ava --require babel-register --source='*.test.js' --watch", "build": "scripty", "watch": "scripty" }, @@ -23,6 +24,7 @@ "author": "Mahdi Dibaiee (http://dibaiee.ir/)", "license": "MIT", "devDependencies": { + "ava": "^0.16.0", "babel-cli": "^6.10.1", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-closure-elimination": "^1.0.6", @@ -31,8 +33,11 @@ "babel-preset-stage-1": "^6.5.0", "eslint": "^3.4.0", "eslint-config-pichak": "1.1.0", + "eslint-plugin-ava": "^3.0.0", "ghooks": "1.0.3", - "scripty": "^1.6.0" + "scripty": "^1.6.0", + "sinon": "^1.17.5", + "sinon-bluebird": "^3.0.2" }, "dependencies": { "boom": "^3.2.2",