Skip to content

Commit

Permalink
Set env to prevent shortcut return from outputting to stdout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Nov 6, 2022
1 parent 6da0743 commit eeec905
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const cp = require('node:child_process');
const { expect, test } = require('@jest/globals');

test('test run', () => {
// This exists in CICD and shortcuts the STDOUT execution if it is truthy.
process.env['GITHUB_OUTPUT'] = ''

process.env['INPUT_VALUE'] = 'Hello, world!';
process.env['INPUT_REGEX'] = 'world';
process.env['INPUT_FLAGS'] = 'g';
Expand Down

0 comments on commit eeec905

Please sign in to comment.