Skip to content

v3.1.10

Compare
Choose a tag to compare
@github-actions github-actions released this 27 May 15:54
· 41 commits to refs/heads/master since this release

v3.1.10

junit2json also published to jsr.io as @kesin11/junit2json from 3.1.10 πŸŽ‰
If you using Deno, you can import from jsr as below.

import { parse } from "jsr:@kesin11/[email protected]";

const main = async () => {
  const xmlString = `<?xml version="1.0" encoding="UTF-8"?>
  <testsuites name="gcf_junit_xml_to_bq_dummy" tests="2" failures="1" time="1.506">
    <testsuite name="__tests__/basic.test.ts" errors="0" failures="0" skipped="0" timestamp="2020-01-26T13:45:02" time="1.019" tests="1">
      <testcase classname="convert xml2js output basic" name="convert xml2js output basic" time="0.01">
      </testcase>
    </testsuite>
    <testsuite name="__tests__/snapshot.test.ts" errors="0" failures="1" skipped="0" timestamp="2020-01-26T13:45:02" time="1.105" tests="1">
      <testcase classname="parse snapshot nunit failure xml" name="parse snapshot nunit failure xml" time="0.013">
        <failure>Error: Something wrong.</failure>
      </testcase>
    </testsuite>
  </testsuites>
  `

  const output = await parse(xmlString)
  console.log(JSON.stringify(output, null, 2))
}
main()

Changes

Dependencies

  • chore(deps): update dependency ts-jest to v29.1.3 @renovate (#318)

Documentation

Internal improvement