fix(github): correctly convert file:
URL to path
#382
Annotations
4 errors, 7 warnings, and 7 notices
Run yarn test:
packages/github/packages/github/tests/index.test.js#L24
Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
'Object {\n' +
' "exitCode": 1,\n' +
' "stderr": "",\n' +
' "stdout": "::debug::starting to run tests\n' +
'::debug::starting to run is ok\n' +
'::debug::completed running is ok\n' +
'::debug::starting to run fails\n' +
+ "::error title=fails,file=packages/github/tests/example.js,line=9,col=11::Error [ERR_TEST_FAILURE]: this is an error%0A at async Promise.all (index 0) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: Error: this is an error%0A at TestContext.<anonymous> (CWD/tests/example.js:9:11)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:934:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:633:18)%0A at Test.postRun (node:internal/test_runner/test:1045:19)%0A at Test.run (node:internal/test_runner/test:973:12)%0A at async Promise.all (index 0)%0A at async Suite.run (node:internal/test_runner/test:1320:7)%0A at async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)%0A}\n" +
- "::error title=fails,file=tests/example.js,line=9,col=11::Error [ERR_TEST_FAILURE]: this is an error%0A at async Promise.all (index 0) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: Error: this is an error%0A at TestContext.<anonymous> (CWD/tests/example.js:9:11)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:930:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:629:18)%0A at Test.postRun (node:internal/test_runner/test:1026:19)%0A at Test.run (node:internal/test_runner/test:969:12)%0A at async Promise.all (index 0)%0A at async Suite.run (node:internal/test_runner/test:1295:7)%0A at async startSubtestAfterBootstrap (node:internal/test_runner/harness:289:3)%0A}\n" +
'::debug::starting to run is a diagnostic\n' +
'::debug::completed running is a diagnostic\n' +
'::notice file=tests/example.js,line=11,col=3::this is a diagnostic\n' +
'::debug::starting to run should fail\n' +
+ "::error title=should fail,file=packages/github/tests/example.js,line=12,col=31::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (CWD/tests/example.js:12:31)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:934:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:633:18)%0A at Test.postRun (node:internal/test_runner/test:1045:19)%0A at Test.run (node:internal/test_runner/test:973:12)%0A at async Suite.processPendingSubtests (node:internal/test_runner/test:633:7) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
- "::error title=should fail,file=tests/example.js,line=12,col=31::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (CWD/tests/example.js:12:31)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:930:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:629:18)%0A at Test.postRun (node:internal/test_runner/test:1026:19)%0A at Test.run (node:internal/test_runner/test:969:12)%0A at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {%0A generatedMessage: true,%0A
|
Run yarn test:
packages/github/packages/github/tests/index.test.js#L32
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
+ 'Object {\n' +
+ ' "exitCode": 1,\n' +
+ ' "stderr": "",\n' +
+ ' "stdout": "::debug::starting to run should fail\n' +
+ "::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:934:25)%0A at Test.start (node:internal/test_runner/test:833:17)%0A at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
+ '::debug::starting to run should pass\n' +
+ '::debug::completed running should pass\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::tests 2\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::suites 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::pass 1\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::fail 1\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::cancelled 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::skipped 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::todo 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::duration_ms 38.36353\n' +
+ '::group::Test results (1 passed, 1 failed)\n' +
+ '::notice::\n' +
+ '::endgroup::\n' +
+ '",\n' +
+ '}'
- '<h1>Test Results</h1>\n' +
- '<table><tr><td>Total Tests</td><td>8</td></tr><tr><td>Suites π</td><td>2</td></tr><tr><td>Passed β
</td><td>4</td></tr><tr><td>Failed β</td><td>2</td></tr><tr><td>Canceled π«</td><td>0</td></tr><tr><td>Skipped βοΈ</td><td>1</td></tr><tr><td>Todo π</td><td>1</td></tr><tr><td>Duration π</td><td>*ms</td></tr></table>\n'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
+ 'Object {\n' +
+ ' "exitCode": 1,\n' +
+ ' "stderr": "",\n' +
+ ' "stdout": "::debug::starting to run should fail\n' +
+ "::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:934:25)%0A at Test.start (node:internal/test_runner/test:833:17)%0A at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
+ '::debug::starting to run should pass\n' +
+ '::debug::completed running should pass\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::tests 2\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::suites 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::pass 1\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::fail 1\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::cancelled 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::skipped 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::todo 0\n' +
+ '::notice file=tests/example.mjs,line=1,col=1::duration_ms 38.36353\n' +
+ '::group::Test results (1 passed, 1 failed)\n' +
+ '::notice::\n' +
+ '::endgroup::\n' +
+ '",\n' +
+ '}'
- '<h1>Test Results</h1>\n' +
- '<table><tr><td
|
Run yarn test:
packages/github/packages/github/tests/index.test.js#L37
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
+ 'Object {\n "exitCode": 1,\n "stderr": "",\n "stdout": "",\n}'
- 'Object {\n' +
- ' "exitCode": 1,\n' +
- ' "stderr": "",\n' +
- ' "stdout": "::debug::starting to run should fail\n' +
- "::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:930:25)%0A at Test.start (node:internal/test_runner/test:829:17)%0A at startSubtestAfterBootstrap (node:internal/test_runner/harness:289:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
- '::debug::starting to run should pass\n' +
- '::debug::completed running should pass\n' +
- '::group::Test results (1 passed, 1 failed)\n' +
- '::notice::Total Tests: 2%0ASuites π: 0%0APassed β
: 1%0AFailed β: 1%0ACanceled π«: 0%0ASkipped βοΈ: 0%0ATodo π: 0%0ADuration π: *ms\n' +
- '::endgroup::\n' +
- '",\n' +
- '}'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
+ 'Object {\n "exitCode": 1,\n "stderr": "",\n "stdout": "",\n}'
- 'Object {\n' +
- ' "exitCode": 1,\n' +
- ' "stderr": "",\n' +
- ' "stdout": "::debug::starting to run should fail\n' +
- "::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:930:25)%0A at Test.start (node:internal/test_runner/test:829:17)%0A at startSubtestAfterBootstrap (node:internal/test_runner/harness:289:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
- '::debug::starting to run should pass\n' +
- '::debug::completed running should pass\n' +
- '::group::Test results (1 passed, 1 failed)\n' +
- '::notice::Total Tests: 2%0ASuites π: 0%0APassed β
: 1%0AFailed β: 1%0ACanceled π«: 0%0ASkipped βοΈ: 0%0ATodo π: 0%0ADuration π: *ms\n' +
- '::endgroup::\n' +
- '",\n' +
- '}'
at test (/home/runner/work/reporters/reporters/tests/utils.js:37:12)
at async TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/github/tests/index.test.js:37:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:633:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'Object {\n "exitCode": 1,\n "stderr": "",\n "stdout": "",\n}',
expected: `Object {\n "exitCode": 1,\n "stderr": "",\n "stdout": "::debug::starting to run should fail\n::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test
|
Run yarn test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run yarn lint:
packages/mocha/index.js#L138
Unexpected console statement
|
Run yarn lint:
packages/mocha/index.js#L142
Unexpected console statement
|
Run yarn lint:
packages/mocha/tests/customReporter/reporter.js#L11
Unexpected console statement
|
Run yarn lint:
packages/testwatch/index.js#L16
Unexpected console statement
|
Run yarn lint:
packages/testwatch/index.js#L83
Unexpected unnamed async generator function
|
Run yarn lint:
packages/testwatch/index.js#L248
Unexpected console statement
|
Run yarn test
Total Tests: 17
Suites π: 3
Passed β
: 17
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 1808.516ms
|
Run yarn test
Total Tests: 4
Suites π: 0
Passed β
: 4
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 268.119ms
|
Run yarn test
Total Tests: 7
Suites π: 0
Passed β
: 7
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 1078.371ms
|
Run yarn test
Total Tests: 1
Suites π: 0
Passed β
: 1
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 1166.492ms
|
Run yarn test
Total Tests: 2
Suites π: 0
Passed β
: 2
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 220.277ms
|
Run yarn test
Total Tests: 2
Suites π: 0
Passed β
: 2
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 246.822ms
|
Run yarn test
Total Tests: 3
Suites π: 1
Passed β
: 0
Failed β: 3
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 427.191ms
|
Loading