From 71e711ce682ad8b59ba20fc418ef2e4f382885a2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:32:13 +0000 Subject: [PATCH] Bump junit-report-builder from 4.0.0 to 4.0.1 (#4482) * Bump junit-report-builder from 4.0.0 to 4.0.1 Bumps [junit-report-builder](https://github.com/davidparsson/junit-report-builder) from 4.0.0 to 4.0.1. - [Commits](https://github.com/davidparsson/junit-report-builder/compare/4.0.0...4.0.1) --- updated-dependencies: - dependency-name: junit-report-builder dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Fix invalid build --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HarelM --- package-lock.json | 8 ++++---- package.json | 2 +- test/integration/render/run_render_tests.ts | 10 +++------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 68a75fa51a..d1df8b2263 100644 --- a/package-lock.json +++ b/package-lock.json @@ -96,7 +96,7 @@ "jest-monocart-coverage": "^1.1.1", "jest-webgl-canvas-mock": "^2.5.3", "jsdom": "^24.1.1", - "junit-report-builder": "^4.0.0", + "junit-report-builder": "^4.0.1", "minimist": "^1.2.8", "mock-geolocation": "^1.0.11", "monocart-coverage-reports": "^2.10.0", @@ -9014,9 +9014,9 @@ } }, "node_modules/junit-report-builder": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/junit-report-builder/-/junit-report-builder-4.0.0.tgz", - "integrity": "sha512-Wmr5TdZVne2L7D2ZIOvC0iGQNbvAxK+hSStmfjd+Qfdgr0pkd/ZwZlezIRMeWfaqJorP/+MYSqYcPbaWpo+fJQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/junit-report-builder/-/junit-report-builder-4.0.1.tgz", + "integrity": "sha512-Fd6IXHjaN0nt3mQDw93Xj6zvU96qyWdfW4z9o3JHgspC1qbb2KKiOsG3yMebP7cMj8n7zkI5URNLbxpjbRBpfA==", "dev": true, "dependencies": { "lodash": "^4.17.21", diff --git a/package.json b/package.json index 932b6942d6..e8ac439cf6 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "jest-monocart-coverage": "^1.1.1", "jest-webgl-canvas-mock": "^2.5.3", "jsdom": "^24.1.1", - "junit-report-builder": "^4.0.0", + "junit-report-builder": "^4.0.1", "minimist": "^1.2.8", "mock-geolocation": "^1.0.11", "monocart-coverage-reports": "^2.10.0", diff --git a/test/integration/render/run_render_tests.ts b/test/integration/render/run_render_tests.ts index 88192c12ab..870ad215ed 100644 --- a/test/integration/render/run_render_tests.ts +++ b/test/integration/render/run_render_tests.ts @@ -11,9 +11,7 @@ import puppeteer, {Page, Browser} from 'puppeteer'; import {CoverageReport} from 'monocart-coverage-reports'; import {localizeURLs} from '../lib/localize-urls'; import type {Map, CanvasSource, PointLike, StyleSpecification} from '../../../dist/maplibre-gl'; -import {default as BuilderExport, type Builder} from 'junit-report-builder'; -const jnuitReportBuilder = (BuilderExport as any).default as Builder; -import type {TestSuite} from 'junit-report-builder/lib/test_suite'; +import junitReportBuilder, {type TestSuite} from 'junit-report-builder'; import * as maplibreglModule from '../../../dist/maplibre-gl'; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -702,12 +700,12 @@ function printSpecificStatistics(status: 'passed' | 'failed' | 'errored', subset * @returns `true` if all the tests passed */ function printStatistics(stats: TestStats): boolean { - const suite = jnuitReportBuilder.testSuite().name('render-tests'); + const suite = junitReportBuilder.testSuite().name('render-tests'); printSpecificStatistics('passed', stats.passed, stats.total, suite); printSpecificStatistics('failed', stats.failed, stats.total, suite); printSpecificStatistics('errored', stats.errored, stats.total, suite); - jnuitReportBuilder.writeTo('junit.xml'); + junitReportBuilder.writeTo('junit.xml'); return (stats.failed.length + stats.errored.length) === 0; } @@ -847,8 +845,6 @@ async function executeRenderTests() { const browser = await puppeteer.launch({headless: !options.openBrowser, args: ['--enable-webgl', '--no-sandbox', '--disable-web-security']}); - console.log(jnuitReportBuilder); - const server = http.createServer( st({ path: 'test/integration/assets',