disable executing of commands during tests

This commit is contained in:
Thomas Boop 2020-09-29 18:55:53 -04:00
parent 5590df7c5d
commit d36cf58775
2 changed files with 7 additions and 2 deletions

View file

@ -42,6 +42,7 @@ describe('setup-node', () => {
beforeEach(() => {
// @actions/core
console.log('::stop-commands::stoptoken'); // Disable executing of runner commands when running tests in actions
process.env['GITHUB_PATH'] = ''; // Stub out ENV file functionality so we can verify it writes to standard out
inputs = {};
inSpy = jest.spyOn(core, 'getInput');
@ -103,7 +104,9 @@ describe('setup-node', () => {
//jest.restoreAllMocks();
});
afterAll(async () => {}, 100000);
afterAll(async () => {
console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions
}, 100000);
//--------------------------------------------------
// Manifest find tests