diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa46201b..116c0949 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,12 +41,13 @@ jobs: - name: Upload Coverage uses: codecov/codecov-action@v7 + continue-on-error: true with: files: ./coverage/coverage-final.json token: ${{ secrets.CODECOV_TOKEN }} - name: Size tests - if: matrix.node == 24 || matrix.node == 22 || matrix.node == 20 || matrix.node == 18 # Only run size tests on the latest Node.js versions + if: matrix.node == 22 run: npm run size - name: Bundle Size Checks diff --git a/karma.browser.conf.js b/karma.browser.conf.js index a6ef4f84..dea1e277 100644 --- a/karma.browser.conf.js +++ b/karma.browser.conf.js @@ -3,7 +3,7 @@ const childProcess = require('child_process'); function _resolvePuppeteerExecutablePathSync() { return childProcess.execFileSync(process.execPath, [ "-e", - "require('puppeteer').executablePath().then((path) => process.stdout.write(path || ''))" + "import('puppeteer').then((m) => (m.default || m).executablePath()).then((path) => process.stdout.write(path || ''))" ], { encoding: "utf8" }).trim(); diff --git a/karma.browser.esnext.conf.js b/karma.browser.esnext.conf.js index 8954990e..ef7d1e7d 100644 --- a/karma.browser.esnext.conf.js +++ b/karma.browser.esnext.conf.js @@ -4,7 +4,7 @@ const childProcess = require('child_process'); function _resolvePuppeteerExecutablePathSync() { return childProcess.execFileSync(process.execPath, [ "-e", - "require('puppeteer').executablePath().then((path) => process.stdout.write(path || ''))" + "import('puppeteer').then((m) => (m.default || m).executablePath()).then((path) => process.stdout.write(path || ''))" ], { encoding: "utf8" }).trim(); diff --git a/karma.worker.conf.js b/karma.worker.conf.js index 48534980..c0e37a1e 100644 --- a/karma.worker.conf.js +++ b/karma.worker.conf.js @@ -3,7 +3,7 @@ const childProcess = require('child_process'); function _resolvePuppeteerExecutablePathSync() { return childProcess.execFileSync(process.execPath, [ "-e", - "require('puppeteer').executablePath().then((path) => process.stdout.write(path || ''))" + "import('puppeteer').then((m) => (m.default || m).executablePath()).then((path) => process.stdout.write(path || ''))" ], { encoding: "utf8" }).trim(); diff --git a/karma.worker.esnext.conf.js b/karma.worker.esnext.conf.js index b53abdfb..487d4a8f 100644 --- a/karma.worker.esnext.conf.js +++ b/karma.worker.esnext.conf.js @@ -3,7 +3,7 @@ const childProcess = require('child_process'); function _resolvePuppeteerExecutablePathSync() { return childProcess.execFileSync(process.execPath, [ "-e", - "require('puppeteer').executablePath().then((path) => process.stdout.write(path || ''))" + "import('puppeteer').then((m) => (m.default || m).executablePath()).then((path) => process.stdout.write(path || ''))" ], { encoding: "utf8" }).trim(); diff --git a/package.json b/package.json index a4864180..be292747 100644 --- a/package.json +++ b/package.json @@ -260,6 +260,7 @@ "@types/eslint": "^8.56.10", "@types/estree": "^1.0.0", "@types/mocha": "^10.0.1", + "@types/node": "^20.19.43", "@types/sinon": "^21.0.0", "@typescript-eslint/eslint-plugin": "^7.14.1", "@typescript-eslint/parser": "^7.14.1",