From 4fe598083a8564eaf20b028040a71bd54416d07f Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 8 Jul 2023 19:58:46 +0200 Subject: [PATCH] Add script to test in production --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d69a2d..6af0731 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,9 @@ "prepack": "npm run build && npm run format", "build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw", "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", - "test-api": "node --conditions development test/index.js", + "test-api-dev": "node --conditions development test/index.js", + "test-api-prod": "node --conditions production test/index.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" },