Skip to content

Commit 8e6df31

Browse files
committed
fixing error of unit tests and also update Jenkinsfile
1 parent a51175c commit 8e6df31

File tree

7 files changed

+576
-57
lines changed

7 files changed

+576
-57
lines changed

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pipeline {
2929

3030
stage('Run Unit Tests') {
3131
steps {
32-
sh 'npm run test -- --coverage --reporters=jest-junit'
32+
sh 'npm test'
3333
}
3434
}
3535

@@ -46,12 +46,12 @@ pipeline {
4646
}
4747
success {
4848
echo 'Build completed successfully!'
49-
junit 'reports/junit.xml'
49+
junit '**/reports/junit.xml'
5050
archiveArtifacts artifacts: 'reports/**', fingerprint: true
5151
}
5252
failure {
5353
echo 'Build failed!'
54-
junit 'reports/junit.xml' // Ensures test results are captured even on failure
54+
junit '**/reports/junit.xml'
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)