Changed package scripts.

This commit is contained in:
Harrison Deng 2022-04-17 23:38:57 -05:00
parent 2cb4ad2652
commit b6df52fde5
3 changed files with 5 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -23,7 +23,7 @@ pipeline {
steps {
dir('audioshowkit') {
nodejs('NodeJS (17.4.0)') {
sh "npm run test"
sh "npm run test:junit"
}
junit 'junit/*.xml'
}

View File

@ -9,7 +9,9 @@
"build:prod": "webpack --config webpack.prod.cjs",
"build:dev": "webpack --config webpack.dev.cjs",
"build": "webpack --config webpack.dev.cjs",
"test": "mocha tests/** --reporter mocha-junit-reporter --reporter-options mochaFile=./junit/test_results.xml",
"test:junit": "mocha tests/** --reporter mocha-junit-reporter --reporter-options mochaFile=./junit/test_results.xml",
"test:console": "mocha tests/**",
"test": "mocha tests/**",
"docs": "esdoc"
},
"author": "",
@ -33,4 +35,4 @@
"webpack-cli": "^4.9.2",
"webpack-merge": "^5.8.0"
}
}
}