From dac45a884e5d2af66fbc35a9f8bb0401de36d8b1 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Mon, 20 Aug 2018 17:13:16 +0100 Subject: [PATCH] dev: Add fast test npm task, to speed development Currently running the tests is painfully slow, this commit adds a task which will run the bare minimum build, and then the tests, speeding up the process by an order of magnitude. I had to repeat `gulp test`, instead of reusing `npm run test`, so that the pretest task isn't ran too. Signed-off-by: Cameron Diver --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 86dff34f..c019ecdb 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "release": "npm run build && ts-node --type-check -P automation automation/deploy-bin.ts", "pretest": "npm run build", "test": "gulp test", + "test:fast": "npm run build:fast && gulp test", "ci": "npm run test && catch-uncommitted", "watch": "gulp watch", "prettify": "prettier --write \"{lib,tests,automation,typings}/**/*.ts\"",