Skip to content

Commit

Permalink
[kbn-test] fix junit report test for local run
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Oct 29, 2024
1 parent 0de1f95 commit 491101f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/kbn-test/src/mocha/junit_report_generation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ describe('dev/mocha/junit report generation', () => {
const [testsuite] = report.testsuites.testsuite;
expect(testsuite.$.time).toMatch(DURATION_REGEX);
expect(testsuite.$.timestamp).toMatch(ISO_DATE_SEC_REGEX);
expect(testsuite.$).toEqual({
'command-line':
'node scripts/jest --config=packages/kbn-test/jest.config.js --runInBand --coverage=false --passWithNoTests',
const expectedCommandLine = process.env.CI
? 'node scripts/jest --config=packages/kbn-test/jest.config.js --runInBand --coverage=false --passWithNoTests'
: 'node node_modules/jest-worker/build/workers/processChild.js';

expect(testsuite.$).toMatchObject({
'command-line': expectedCommandLine,
failures: '2',
name: 'test',
skipped: '1',
Expand Down

0 comments on commit 491101f

Please sign in to comment.