From efbb1f4a8b29fbdf9422363d9401917674b4d833 Mon Sep 17 00:00:00 2001 From: kelvinwieth Date: Thu, 12 Oct 2023 10:59:02 -0300 Subject: [PATCH] test: clean env variables after each --- index.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.test.js b/index.test.js index 2a73517..ee61c6f 100644 --- a/index.test.js +++ b/index.test.js @@ -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;