Skip to content

Commit

Permalink
Allow logging on re-run
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 29, 2024
1 parent 7f61bca commit fcd7f74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/asserts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join, sep } from 'node:path'
import { tmpdir } from 'node:os'
import { run, root } from './paths.mjs'

const SILENT = true
const SILENT = process.env.SILENT !== '0' && process.env.RUNNER_DEBUG !== '1'

export function assertPass(slug, fixture, outputDir = null) {
outputDir = outputDir || mkdtempSync(join(tmpdir(), 'foo-'))
Expand Down Expand Up @@ -85,7 +85,7 @@ export function rejectPass(slug, fixture, outputDir = null) {
// shelljs.echo(`-> ${command}`)
const { stderr, code } = shelljs.exec(command, {
async: false,
silent: true,
silent: SILENT,
cwd: root,
})

Expand Down Expand Up @@ -148,7 +148,7 @@ export function assertError(slug, fixture, outputDir = null) {
// shelljs.echo(`-> ${command}`)
const { stderr, code } = shelljs.exec(command, {
async: false,
silent: true,
silent: SILENT,
cwd: root,
})

Expand Down

0 comments on commit fcd7f74

Please sign in to comment.