azure-devops-test-helper
Version:
Import JSON result with attachments into Azure Test Plan
16 lines (15 loc) • 452 B
JavaScript
import { XMLParser } from "fast-xml-parser";
export const xmlAttributePrefix = "attr_prefix_";
const option = {
ignoreAttributes: false,
attributeNamePrefix: xmlAttributePrefix,
suppressEmptyNode: true,
commentPropName: "#comment",
numberParseOptions: {
leadingZeros: true,
hex: true,
skipLike: /(\+[0-9]{10})|([0-9]+.)/,
},
suppressBooleanAttributes: false,
};
export default new XMLParser(option);