From 3be2f01fa5d46cc3a3bb4124bcba9e0d0bf0eb79 Mon Sep 17 00:00:00 2001 From: Tim Oxley Date: Wed, 13 May 2015 16:32:35 +0800 Subject: [PATCH] Remove hard-coded path to test executable. Such paths are brittle, due to npm deduping, mocha is not guaranteed to be at this location, it may be higher in the tree. node_modules/.bin is added to the PATH env var for npm scripts so "mocha" on its own is both shorter and will more robustly be able to locate the mocha executable. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 70edd39..1629518 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.2.10", "main": "./source-map-support.js", "scripts": { - "test": "node_modules/mocha/bin/mocha" + "test": "mocha" }, "dependencies": { "source-map": "0.1.32"