fix: remove ansi escape sequences from escaped xunit output #3470
Annotations
3 errors
|
test/integration/fixtures/ansi.fixture.js#L11
expected '<testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Tue, 11 Jun 2024 06:46:01 GMT" time="0.003">\n<testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/>\n<testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"><failure>[31mnot ok[39m\n\n + expected - actual\n\n -false\n +true\n \nAssertionError [ERR_ASSERTION]: [31mnot ok[39m\n at Context.<anonymous> (test/integration/fixtures/ansi.fixture.js:11:12)\n at callFn (lib/runnable.js:366:21)\n at Test.Runnable.run (lib/runnable.js:354:5)\n at Runner.runTest (lib/runner.js:677:10)\n at /home/runner/work/mocha/mocha/lib/runner.js:800:12\n at next (lib/runner.js:592:14)\n at /home/runner/work/mocha/mocha/lib/runner.js:602:7\n at next (lib/runner.js:485:14)\n at Immediate._onImmediate (lib/runner.js:570:5)\n at processImmediate (internal/timers.js:464:21)</failure></testcase>\n</testsuite>\n'
not to contain ''
<testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Tue, 11 Jun 2024 06:46:01 GMT" time="0.003">
<testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/>
<testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"><failure>[31mnot ok[39m
^^^^^^ ^^^^^^
+ expected - actual
-false
+true
AssertionError [ERR_ASSERTION]: [31mnot ok[39m
^^^^^^ ^^^^^^
at Context.<anonymous> (test/integration/fixtures/ansi.fixture.js:11:12)
at callFn (lib/runnable.js:366:21)
at Test.Runnable.run (lib/runnable.js:354:5)
at Runner.runTest (lib/runner.js:677:10)
at /home/runner/work/mocha/mocha/lib/runner.js:800:12
at next (lib/runner.js:592:14)
at /home/runner/work/mocha/mocha/lib/runner.js:602:7
at next (lib/runner.js:485:14)
at Immediate._onImmediate (lib/runner.js:570:5)
at processImmediate (internal/timers.js:464:21)</failure></testcase>
</testsuite>
|
|
This job was cancelled
Loading