From 687142258e3aea69f4053eeb4c95985361fbb761 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sun, 14 May 2023 15:36:02 +0200 Subject: [PATCH] Add script to test in production --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 04297e0..c900a14 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,10 @@ "prepack": "npm run build && npm run format", "build": "tsc --build --clean && tsc --build && type-coverage", "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", - "test-api": "node --conditions development test.js", - "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js", + "test-api-prod": "node --conditions production test.js", + "test-api-dev": "node --conditions development test.js", + "test-api": "npm run test-api-dev && npm run test-api-prod", + "test-coverage": "c8 --100 --reporter lcov npm run test-api", "test": "npm run build && npm run format && npm run test-coverage" }, "prettier": {