From 3c5938f3d2baf088ef9ade29a4f6adde8ccc4c1d Mon Sep 17 00:00:00 2001 From: Johannes Maron Date: Mon, 11 Nov 2024 17:41:34 +0100 Subject: [PATCH] Fix tests and test output --- .github/workflows/ci.yml | 2 +- tests/__tests__/s3file.test.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6161863..bf63ad3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: node-version-file: .nvmrc - name: Install Node dependencies run: npm ci - - run: node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.txt + - run: node --test --experimental-test-coverage --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=lcov.txt - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/tests/__tests__/s3file.test.js b/tests/__tests__/s3file.test.js index f26d20c..d46564c 100644 --- a/tests/__tests__/s3file.test.js +++ b/tests/__tests__/s3file.test.js @@ -41,9 +41,11 @@ describe('S3FileInput', () => { }) test('changeHandler', () => { + const form = document.createElement('form') const input = new s3file.S3FileInput() input.keys = ['key'] input.upload = 'upload' + form.appendChild(input) input.changeHandler() assert(!input.keys.length) assert(!input.upload)