fix(github): correctly convert file:
URL to path (#131)
#383
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 ... Lines skipped
'Object {\n' +
' "exitCode": 1,\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 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:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:374:18)%0A at Test.postRun (node:internal/test_runner/test:715:19)%0A at Test.run (node:internal/test_runner/test:673:12)%0A at async Promise.all (index 0)%0A at async Suite.run (node:internal/test_runner/test:948:7)%0A at async startSubtest (node:internal/test_runner/harness:214:3),%0A code: 'ERR_TEST_FAILURE'%0A}\n" +
- "::error title=fails,file=tests/example.js,line=9,col=11::[Error [ERR_TEST_FAILURE]: this is an error] {%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:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:374:18)%0A at Test.postRun (node:internal/test_runner/test:715:19)%0A at Test.run (node:internal/test_runner/test:673:12)%0A at async Promise.all (index 0)%0A at async Suite.run (node:internal/test_runner/test:948:7)%0A at async startSubtest (node:internal/test_runner/harness:214:3),%0A code: 'ERR_TEST_FAILURE'%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 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:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:374:18)%0A at Test.postRun (node:internal/test_runner/test:715:19)%0A at Test.run (node:internal/test_runner/test:673:12)%0A at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%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 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:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:374:18)%0A at Test.postRun (node:internal/test_runner/test:715:19)%0A at Test.run (node:internal/test_runner/test:673:12)%0A at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%0A}\n" +
'::debug::starting to run more tests\n' +
...
'::endgroup::\n' +
'",\n' +
'}'
at async Promise.all (
|
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]: false == true] {%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: false == true%0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Test.start (node:internal/test_runner/test:542:17)%0A at startSubtest (node:internal/test_runner/harness:214:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%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' +
+ '}'
- '<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'] {
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]: false == true] {%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: false == true%0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Test.start (node:internal/test_runner/test:542:17)%0A at startSubtest (node:internal/test_runner/harness:214:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%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' +
+ '}'
- '<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'
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:32:5)
at async Test.run (node:internal/test_runner/test:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: `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]: false == true] {%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: false == true%0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScop
|
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]: false == true] {%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: false == true%0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Test.start (node:internal/test_runner/test:542:17)%0A at startSubtest (node:internal/test_runner/harness:214:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%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' +
- '}'] {
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]: false == true] {%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: false == true%0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Test.start (node:internal/test_runner/test:542:17)%0A at startSubtest (node:internal/test_runner/harness:214:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374: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]: false == true] {%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: false == true%0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:203:9)%0A at Test.run (node:internal/test_runner/test:631:25)%0A at Test.start (node:internal/test_runner/test:542:17)%0A at startSubtest (node:internal/test_runner/harness:214:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A },%0A code: 'ERR_TEST_FAILURE'%0A}\n::debug::starting to run should pass\n::debug::completed running should pass\n::group::Test results (1 passed, 1
|
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 π: 2279.629ms
|
Run yarn test
Total Tests: 4
Suites π: 0
Passed β
: 4
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 341.649ms
|
Run yarn test
Total Tests: 7
Suites π: 0
Passed β
: 7
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 1283.352ms
|
Run yarn test
Total Tests: 1
Suites π: 0
Passed β
: 1
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 1234.479ms
|
Run yarn test
Total Tests: 2
Suites π: 0
Passed β
: 2
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 297.265ms
|
Run yarn test
Total Tests: 2
Suites π: 0
Passed β
: 2
Failed β: 0
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 332.786ms
|
Run yarn test
Total Tests: 3
Suites π: 1
Passed β
: 0
Failed β: 3
Canceled π«: 0
Skipped βοΈ: 0
Todo π: 0
Duration π: 547.866ms
|
Loading