Skip to content

Commit

Permalink
fix reporter (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntduan authored Oct 1, 2024
1 parent 414dc2d commit e8c35a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/command-runner/runOrBump.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module.exports = async ({ github, core, context, commentId, exec, env, command,

const excuteTest = async ({ update, env }) => {
const execCommand = update ?
`yarn test --reporter tap-flat ${update ? '-u' : ''}` :
`yarn test --reporter tap-flat ${args.trim()}`
`yarn test --reporter default ${update ? '-u' : ''}` :
`yarn test --reporter default ${args.trim()}`

const result = await runCommand({ cmd: execCommand, comment, exec })

Expand Down
2 changes: 0 additions & 2 deletions .github/command-runner/utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ async function runCommand({ cmd, comment, exec }) {
ignoreReturnCode: true,
listeners: {
stdline: (data) => {
console.log(data.replace(/\x1b\[[0-9;]*m/g, '') + '\n')
output += `${data}\n`;
},
errline: (data) => {
console.log(data.replace(/\x1b\[[0-9;]*m/g, '') + '\n')
errorOutput += `${data}\n`;
}
}
Expand Down

0 comments on commit e8c35a4

Please sign in to comment.