From a7b057c5afdefd768dd46c4e9174b75ae3cd1de6 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Mon, 29 Apr 2019 14:03:35 +0300 Subject: [PATCH] feat: set `test` env for tests commands --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4225619..ca2ebe4 100644 --- a/package.json +++ b/package.json @@ -24,11 +24,11 @@ "prepare": "npm run build", "release": "standard-version", "security": "npm audit", - "test:only": "jest", - "test:watch": "jest --watch", - "test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage", + "test:only": "cross-env NODE_ENV=test jest", + "test:watch": "cross-env NODE_ENV=test jest --watch", + "test:coverage": "cross-env NODE_ENV=test jest --collectCoverageFrom='src/**/*.js' --coverage", "pretest": "npm run lint", - "test": "npm run test:coverage", + "test": "cross-env NODE_ENV=test npm run test:coverage", "defaults": "npm run build && node bin/index.js" }, "files": [