Skip to content

Commit

Permalink
Updating all the modules and getting inline with node 18 exports
Browse files Browse the repository at this point in the history
  • Loading branch information
lukejpreston committed Jun 21, 2023
1 parent 67a0cfd commit 554264b
Show file tree
Hide file tree
Showing 30 changed files with 22,853 additions and 39,236 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Examples:
Xunit Viewer is asynchronous so you may need to wrap it up like so. **NOTE** The `script` parameter which will skip all Xunit Viewer's exit codes.

```js
const xunitViewer = require('xunit-viewer')
import xunitViewer from 'xunit-viewer'

const main = async () => {
await xunitViewer({
Expand All @@ -95,7 +95,7 @@ main()
If you are going to run it from a script with no other code

```js
const xunitViewer = require('xunit-viewer')
import xunitViewer from 'xunit-viewer'

xunitViewer({
server: false,
Expand Down
6 changes: 0 additions & 6 deletions bin/xunit-viewer

This file was deleted.

6 changes: 6 additions & 0 deletions bin/xunit-viewer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node

import xunitViewer from '../xunit-viewer.js'
import { args } from '../src/cli/args.js'

xunitViewer(args)
2 changes: 1 addition & 1 deletion gh-pages/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions gh-pages/xunit-viewer-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="title" content="Xunit Viewer">
<meta content="https://lukejpreston.github.io/xunit-viewer/icon.png" property="og:image">
<link href="https://lukejpreston.github.io/xunit-viewer/favicon.ico" rel="shortcut icon">
<meta name="description" content="13 passed">
<meta name="description" content="12 passed">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/*! bulma.io v0.9.2 | MIT License | github.com/jgthms/bulma */.button,.file-cta,.file-name,.input,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.select select,.textarea{-moz-appearance:none;-webkit-appearance:none;-webkit-align-items:center;align-items:center;border:1px solid transparent;border-radius:4px;box-shadow:none;display:-webkit-inline-flex;display:inline-flex;font-size:1rem;height:2.5em;-webkit-justify-content:flex-start;justify-content:flex-start;line-height:1.5;padding:calc(.5em - 1px) calc(.75em - 1px);position:relative;vertical-align:top}.button:active,.button:focus,.file-cta:active,.file-cta:focus,.file-name:active,.file-name:focus,.input:active,.input:focus,.is-active.button,.is-active.file-cta,.is-active.file-name,.is-active.input,.is-active.pagination-ellipsis,.is-active.pagination-link,.is-active.pagination-next,.is-active.pagination-previous,.is-active.textarea,.is-focused.button,.is-focused.file-cta,.is-focused.file-name,.is-focused.input,.is-focused.pagination-ellipsis,.is-focused.pagination-link,.is-focused.pagination-next,.is-focused.pagination-previous,.is-focused.textarea,.pagination-ellipsis:active,.pagination-ellipsis:focus,.pagination-link:active,.pagination-link:focus,.pagination-next:active,.pagination-next:focus,.pagination-previous:active,.pagination-previous:focus,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus,.textarea:active,.textarea:focus{outline:none}.button[disabled],.file-cta[disabled],.file-name[disabled],.input[disabled],.pagination-ellipsis[disabled],.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled],.select fieldset[disabled] select,.select select[disabled],.textarea[disabled],fieldset[disabled] .button,fieldset[disabled] .file-cta,fieldset[disabled] .file-name,fieldset[disabled] .input,fieldset[disabled] .pagination-ellipsis,fieldset[disabled] .pagination-link,fieldset[disabled] .pagination-next,fieldset[disabled] .pagination-previous,fieldset[disabled] .select select,fieldset[disabled] .textarea{cursor:not-allowed}.breadcrumb,.button,.file,.is-unselectable,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.tabs{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.navbar-link:not(.is-arrowless):after,.select:not(.is-multiple):not(.is-loading):after{border:3px solid transparent;border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:.625em;margin-top:-.4375em;pointer-events:none;position:absolute;top:50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:center;transform-origin:center;width:.625em}.block:not(:last-child),.box:not(:last-child),.breadcrumb:not(:last-child),.content:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.message:not(:last-child),.notification:not(:last-child),.pagination:not(:last-child),.progress:not(:last-child),.subtitle:not(:last-child),.table-container:not(:last-child),.table:not(:last-child),.tabs:not(:last-child),.title:not(:last-child){margin-bottom:1.5rem}.delete,.modal-close{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-moz-appearance:none;-webkit-appearance:none;background-color:rgba(10,10,10,.2);border:none;border-radius:290486px;cursor:pointer;pointer-events:auto;display:inline-block;-webkit-flex-grow:0;flex-grow:0;-webkit-flex-shrink:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:none;position:relative;vertical-align:top;width:20px}.delete:after,.delete:before,.modal-close:after,.modal-close:before{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.delete:before,.modal-close:before{height:2px;width:50%}.delete:after,.modal-close:after{height:50%;width:2px}.delete:focus,.delete:hover,.modal-close:focus,.modal-close:hover{background-color:rgba(10,10,10,.3)}.delete:active,.modal-close:active{background-color:rgba(10,10,10,.4)}.is-small.delete,.is-small.modal-close{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.is-medium.delete,.is-medium.modal-close{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.is-large.delete,.is-large.modal-close{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.button.is-loading:after,.control.is-loading:after,.loader,.select.is-loading:after{-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border-radius:290486px;border-color:transparent transparent #dbdbdb #dbdbdb;border-style:solid;border-width:2px;content:"";display:block;height:1em;position:relative;width:1em}.hero-video,.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-square .has-ratio,.image.is-square img,.is-overlay,.modal,.modal-background{bottom:0;left:0;position:absolute;right:0;top:0}
Expand Down Expand Up @@ -99,7 +99,7 @@
<script>
window.title = "Xunit Viewer"
window.brand = ""
window.files = [{"file":"/home/luke/Projects/xunit-viewer/junit.xml","contents":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHRlc3RzdWl0ZXMgbmFtZT0iamVzdCDFFiLGBz0iMTMiIGZhaWx1cmVzPSLESXJyb3LGC3RpxDUyLjkxMSI+CiAgylHHUHVuZGVmaW5lZM03zU9za2lwcGVkyVBzdGFtcD0iMjAyMi0wOC0xNVQwNzo1MTo1N8hwMC44OTLqAKDFesd8Y2FzZSBjbGFzc+YAgCByZW5kZXJzIOUAlSLnAJbQFshXMDE2yE0vyE7EEMYOxS3/AOb/AOb/AObvAOY5/wDk6ADkY29tcGxldGUgbXVsdGnmANVz6QDs1x7IZTAy/wDz/wDz/wDz/wDz8QHZODb/APXoAPVnZXQgZmls6wDpyxLITzAyOf8A3v8A3v8A3v8A3vEB0TP/AN3sAN1kZXNjcmlwdGlvbu0A480Y/wK6/wDp/wDp/wDp/ADp/wHG8QOfxB0gb+UA1eoB0dYdyGQwMjX/APP/APP/APP/APPxAPM3NOkA9OkDU/0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A9P8GB/YFHfkA9c8e/wD2/wD2/wD2/wD2/QD2Mf8A9vAA9mxvZ/IET8YV/wDk/wDk/wDk/wDk8ADkN+sAjzQ4/wDk8QLOb2dnbPIG+MgX/wDo/wDo/wDo/wDo/QDo/wff6QDoY29tcGxldGUgbXVsdGnwCbLXHv8A9u4A9ssNcz4="}]
</script>
<script>
/*! For license information please see 2.257b1b42.chunk.js.LICENSE.txt */
Expand Down
52 changes: 24 additions & 28 deletions junit.xml
Original file line number Diff line number Diff line change
@@ -1,53 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="13" failures="0" errors="0" time="2.911">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="0.892" tests="1">
<testcase classname=" renders suite" name=" renders suite" time="0.016">
<testsuites name="jest tests" tests="12" failures="0" errors="0" time="1.371">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.376" tests="1">
<testcase classname=" get suites" name=" get suites" time="0.21">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="0.9" tests="1">
<testcase classname=" complete multi suites" name=" complete multi suites" time="0.02">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.05" tests="1">
<testcase classname=" get description" name=" get description" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="0.886" tests="1">
<testcase classname=" get files" name=" get files" time="0.029">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.059" tests="1">
<testcase classname=" renders suite" name=" renders suite" time="0.006">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="0.93" tests="1">
<testcase classname=" get description" name=" get description" time="0.016">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.052" tests="1">
<testcase classname=" get files" name=" get files" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="0.96" tests="1">
<testcase classname=" renders test options" name=" renders test options" time="0.025">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.053" tests="2">
<testcase classname=" renders hero" name=" renders hero" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="0.974" tests="2">
<testcase classname=" renders hero" name=" renders hero" time="0.024">
</testcase>
<testcase classname=" renders hero with title and brand" name=" renders hero with title and brand" time="0.004">
<testcase classname=" renders hero with title and brand" name=" renders hero with title and brand" time="0">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:58" time="0.304" tests="1">
<testcase classname=" renders properties options" name=" renders properties options" time="0.021">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.056" tests="1">
<testcase classname=" renders properties options" name=" renders properties options" time="0.006">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:58" time="0.304" tests="1">
<testcase classname=" renders files" name=" renders files" time="0.023">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.053" tests="1">
<testcase classname=" renders test options" name=" renders test options" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:58" time="0.342" tests="1">
<testcase classname=" renders suite options" name=" renders suite options" time="0.024">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.055" tests="1">
<testcase classname=" renders suite options" name=" renders suite options" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:58" time="0.267" tests="1">
<testcase classname=" renders toggle" name=" renders toggle" time="0.014">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:26" time="0.051" tests="1">
<testcase classname=" renders logo" name=" renders logo" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:58" time="0.319" tests="1">
<testcase classname=" renders logo" name=" renders logo" time="0.014">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:27" time="0.048" tests="1">
<testcase classname=" renders toggle" name=" renders toggle" time="0.005">
</testcase>
</testsuite>
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2022-08-15T07:51:57" time="1.647" tests="1">
<testcase classname=" get suites" name=" get suites" time="0.768">
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2023-06-21T08:07:27" time="0.049" tests="1">
<testcase classname=" complete multi suites" name=" complete multi suites" time="0.005">
</testcase>
</testsuite>
</testsuites>
Loading

0 comments on commit 554264b

Please sign in to comment.