From 568aa575e396c897ec513f134471a15321294986 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Wed, 11 May 2022 17:46:51 -0500 Subject: [PATCH] Added testing to pipeline. --- Jenkinsfile | 7 +++++++ package.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2db3246..dec51a3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,13 @@ pipeline { } } } + stage ("test") { + steps { + nodejs("System") { + sh "npm run test" + } + } + } stage ("build") { steps { nodejs("System") { diff --git a/package.json b/package.json index 1f8f5fc..bfd702b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "private": true, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"Error: no test specified\" && exit 0", "serve": "webpack serve --config webpack.dev.js", "build": "webpack --config webpack.prod.js" }, @@ -51,4 +51,4 @@ "vue": "^3.2.26", "vue-router": "^4.0.12" } -} +} \ No newline at end of file