Skip to content

Commit

Permalink
test: clean env variables after each
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinwieth committed Oct 12, 2023
1 parent ffb0a39 commit efbb1f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ const getErrorOutput = (error) => {
return output;
};

afterEach(() => {
delete process.env['INPUT_PATH'];
delete process.env['INPUT_EXCLUDE'];
delete process.env['INPUT_MIN_COVERAGE'];
});

test('empty LCOV throws an error', () => {
const lcovPath = './fixtures/lcov.empty.info';
process.env['INPUT_PATH'] = lcovPath;
Expand Down

0 comments on commit efbb1f4

Please sign in to comment.