From 5d70711c7fac1ae45cf4cb6bf2f07b7c2f15a251 Mon Sep 17 00:00:00 2001 From: Eric Lang Date: Thu, 22 Jul 2021 19:30:18 -0400 Subject: [PATCH] Test driven development. --- server/package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/package.json b/server/package.json index f021d3b..645ff16 100644 --- a/server/package.json +++ b/server/package.json @@ -4,14 +4,15 @@ "description": "Generates graphs of github things.", "main": "server.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls", + "test": "mocha --exit --reporter spec", "start": "node server.js" }, "repository": { "type": "git", "url": "git+https://github.com/jrtechs/github-graphs.git" }, - "author": "Jeffery Russell", + "author": "Jeffery Russell, Eric Lang", "license": "ISC", "bugs": { "url": "https://github.com/jrtechs/github-graphs/issues" @@ -25,4 +26,8 @@ "got": "^9.6.0", "memory-cache": "^0.2.0" } + "devDependencies": { + "coveralls": "*", + "mocha": "*", + "nyc": "*" }