From 34b1047ac6c5d8002f6fa06dc6a2b7be32007980 Mon Sep 17 00:00:00 2001
From: shreyvishal <shreya.vishal@eminds.ai>
Date: Tue, 9 Jan 2024 12:58:35 +0530
Subject: [PATCH] Added: Build Script

---
 package.json | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index ce5a101..7592ce8 100644
--- a/package.json
+++ b/package.json
@@ -4,10 +4,12 @@
   "description": "",
   "main": "index.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1",
+    "test": "jest --testTimeout=20000 --watch",
+    "test:watch": "NODE_ENV=dev jest --watch",
+    "test:coverage": "NODE_ENV=dev jest --testTimeout=20000 --coverage",
     "dev": "nodemon src/App.ts",
     "start": "node dist/App.js",
-    "build": "npx tsc"
+    "build": "rimraf dist && npx tsc"
   },
   "keywords": [],
   "author": "",
@@ -25,6 +27,7 @@
     "jsonata": "^2.0.3",
     "moment": "^2.29.4",
     "reflect-metadata": "^0.1.13",
+    "rimraf": "^5.0.5",
     "uuid": "^9.0.1",
     "winston": "^3.11.0",
     "winston-express": "^0.1.1"
@@ -34,6 +37,7 @@
     "@types/express": "^4.17.21",
     "@types/ini": "^1.3.33",
     "@types/uuid": "^9.0.7",
+    "jest": "^29.7.0",
     "nodemon": "^3.0.1",
     "ts-node": "^10.9.1",
     "typescript": "^5.2.2"
-- 
GitLab