update tests

This commit is contained in:
Michael Shick 2023-04-24 08:16:55 -04:00
parent 7ca8398d28
commit 0e8dc756bc
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
2 changed files with 35 additions and 11 deletions

View file

@ -1,11 +1,11 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import {
createComment,
CreateIssueCommentResponseData,
createComment,
deleteComment,
getExistingCommentId,
updateComment,
deleteComment,
} from './comments'
import { getInputs } from './config'
import { getIssueNumberFromCommitPullsList } from './issues'
@ -95,6 +95,11 @@ const run = async (): Promise<void> => {
core.setOutput('comment-updated', 'false')
}
} catch (err) {
if (process.env.NODE_ENV === 'test') {
// eslint-disable-next-line no-console
console.log(err)
}
if (err instanceof Error) {
core.setFailed(err.message)
}