fix(github): correctly convert file:
URL to path
#131
Merged
Annotations
5 errors, 6 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.
|
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 🕐: 2238.695ms
|
Run yarn test
Total Tests: 4
Suites 📂: 0
Passed ✅: 4
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 333.582ms
|
Run yarn test
Total Tests: 7
Suites 📂: 0
Passed ✅: 7
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 1264.245ms
|
Run yarn test
Total Tests: 1
Suites 📂: 0
Passed ✅: 1
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 1228.314ms
|
Run yarn test
Total Tests: 2
Suites 📂: 0
Passed ✅: 2
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 290.086ms
|
Run yarn test
Total Tests: 2
Suites 📂: 0
Passed ✅: 2
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 316.586ms
|
Run yarn test
Total Tests: 3
Suites 📂: 1
Passed ✅: 0
Failed ❌: 3
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 536.373ms
|
Loading