Skip to content

Commit

Permalink
Bump junit-report-builder from 4.0.0 to 4.0.1 (#4482)
Browse files Browse the repository at this point in the history
* 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](davidparsson/junit-report-builder@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] <support@github.com>

* Fix invalid build

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: HarelM <harel.mazor@gmail.com>
  • Loading branch information
dependabot[bot] and HarelM authored Aug 1, 2024
1 parent 2dd19fd commit 71e711c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 3 additions & 7 deletions test/integration/render/run_render_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 71e711c

Please sign in to comment.