build(deps): bump @commitlint/config-conventional from 18.6.0 to 18.6.1 #582
98 passed, 8 failed and 0 skipped
❌ unit-tests-result.json
106 tests were completed in 236ms with 98 passed, 8 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
tests/auto-me-bot.test.js | 14✅ | 14ms | ||
tests/handlers/pr-auto-approve.test.js | 10✅ | 9ms | ||
tests/handlers/pr-conventional-commits.test.js | 7✅ | 5❌ | 95ms | |
tests/handlers/pr-conventional-title.test.js | 5✅ | 3❌ | 28ms | |
tests/handlers/pr-lifecycle-labels.test.js | 32✅ | 18ms | ||
tests/handlers/pr-signed-commits.test.js | 22✅ | 11ms | ||
tests/handlers/pr-tasks-list.test.js | 8✅ | 8ms |
✅ tests/auto-me-bot.test.js
Testing the auto-me-bot export
✅ When invoking the application, expect a registration of the events
Testing the auto-me-bot export Test various pull request related configurations
✅ When all PR operations are checked, execute all PR related handlers
✅ When event payload contains an unsupported event type, do not execute any handlers
✅ When event payload event action type is not supported, do not execute any handlers
✅ When no operations are checked and config is {"pr":{"unknownHandler":{}}}, do not execute any handlers
✅ When no operations are checked and config is {"pr":{}}, do not execute any handlers
✅ When no operations are checked and config is {}, do not execute any handlers
✅ When no operations are checked and config is null, do not execute any handlers
✅ When the autoApprove operation is checked, execute the related handler
✅ When the conventionalCommits operation is checked, execute the related handler
✅ When the conventionalTitle operation is checked, execute the related handler
✅ When the lifecycleLabels operation is checked, execute the related handler
✅ When the signedCommits operation is checked, execute the related handler
✅ When the tasksList operation is checked, execute the related handler
✅ tests/handlers/pr-auto-approve.test.js
Testing the pr-auto-approve handler Test handler matching
✅ Test an unknown event type, expect a false match
✅ Test pull_request event type with an unknown action type, expect a false match
✅ Test pull_request event type with opened action type, expect a match
✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-auto-approve handler Test handler running
✅ Test a correct scenario with a non 200 response from the API
✅ Test a correct scenario with a rejected response from the API
✅ Test with a bot sender and allBots set to true in the configuration, expect approve event
✅ Test with a non listed user in the configuration, expect no event
✅ Test with a user sender listed in the configuration, expect approve event
✅ Test with no configuration, expect no event
❌ tests/handlers/pr-conventional-commits.test.js
Testing the pr-conventional-commits handler Test handler matching
✅ Test an unknown event type, expect a false match
✅ Test pull_request event type with an unknown action type, expect a false match
✅ Test pull_request event type with edited action type, expect a match
✅ Test pull_request event type with opened action type, expect a match
✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-conventional-commits handler Test handler running
✅ Test with listCommits API endpoint response not successful, expect a report indicating a possible API error
✅ Test with listCommits API response endpoint promise rejection, expect a report indicating a possible API error
❌ Test with one error commit message, expect one error report
Cannot read properties of undefined (reading 'parserOpts')
❌ Test with one good commit message, expect a successful result
Cannot read properties of undefined (reading 'parserOpts')
❌ Test with one non-standard error based a custom configuration, expect a report error
Cannot read properties of undefined (reading 'parserOpts')
❌ Test with one warning commit message, expect one warning report
Cannot read properties of undefined (reading 'parserOpts')
❌ Test with one warning, one error, and one good commit message, expect a report for both the warning and the error
Cannot read properties of undefined (reading 'parserOpts')
❌ tests/handlers/pr-conventional-title.test.js
Testing the pr-conventional-title handler Test handler matching
✅ Test an unknown event type, expect a false match
✅ Test pull_request event type with an unknown action type, expect a false match
✅ Test pull_request event type with edited action type, expect a match
✅ Test pull_request event type with opened action type, expect a match
✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-conventional-title handler Test handler running
❌ Test with a conventional pr title, expect a successful report
Cannot read properties of undefined (reading 'parserOpts')
❌ Test with a long pr title and a custom config set for error, expect a failed report
Cannot read properties of undefined (reading 'parserOpts')
❌ Test with a long pr title and a custom config set for warning, expect a successful report with a warning
Cannot read properties of undefined (reading 'parserOpts')
✅ tests/handlers/pr-lifecycle-labels.test.js
Testing the pr-lifecycle-labels Test handler matching
✅ Test an unknown event type, expect a false match
✅ Test pull_request event type with an unknown action type, expect a false match
✅ Test pull_request event type with closed action type, expect a match
✅ Test pull_request event type with edited action type, expect a match
✅ Test pull_request event type with opened action type, expect a match
✅ Test pull_request event type with ready_for_review action type, expect a match
✅ Test pull_request event type with reopened action type, expect a match
✅ Test pull_request event type with synchronize action type, expect a match
✅ Test pull_request_review event type with an unknown action type, expect a false match
✅ Test pull_request_review event type with dismissed action type, expect a match
✅ Test pull_request_review event type with edited action type, expect a match
✅ Test pull_request_review event type with submitted action type, expect a match
Testing the pr-lifecycle-labels Test handler running
✅ Test a pr with change requests, expect the changesRequested label to be added to the pr
✅ Test a pr with no reviews, expect the reviewRequired label to be added to the pr
✅ Test a pr with reviews but no change requests or approvals, expect the reviewStarted label to be added to the pr
✅ Test an approved pr with enough approvals, expect the approved label to be added to the pr
✅ Test an approved pr with less then enough approvals, expect the moreReviewsRequired label to be added to the pr
✅ Test ignore drafts config with a draft pr, expect the check to be skipped
✅ Test invalid config, {"ignoreDrafts":false}, expect the check to be neutral
✅ Test invalid config, {"labels":{"unknownLabel":"noKnownLabels"}}, expect the check to be neutral
✅ Test invalid config, {"labels":{}}, expect the check to be neutral
✅ Test invalid config, {}, expect the check to be neutral
✅ Test selected lifecycle label is added to the pr, expect the check to succeed
✅ Test selected lifecycle label not configured, expect the check to succeed
✅ Test with addLabels API endpoint response not successful, expect the check to fail
✅ Test with addLabels API endpoint response promise rejection, expect the check to fail
✅ Test with getBranchProtection API endpoint response not successful, expect the approved label to be added to the pr
✅ Test with getBranchProtection API endpoint response not successful, expect the check to fail
✅ Test with getBranchProtection API endpoint response promise rejection, expect the approved label to be added to the pr
✅ Test with getLabel API endpoint response promise rejection, expect the check to fail
✅ Test with listReviews API endpoint response not successful, expect the reviewRequired label to be added to the pr
✅ Test with listReviews API endpoint response promise rejection, expect the reviewRequired label to be added to the pr
✅ tests/handlers/pr-signed-commits.test.js
Testing the pr-signed-commits handler Test handler matching
✅ Test an unknown event type, expect a false match
✅ Test pull_request event type with an unknown action type, expect a false match
✅ Test pull_request event type with edited action type, expect a match
✅ Test pull_request event type with opened action type, expect a match
✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-signed-commits handler Test handler running
✅ Test ignored email is ignored, expect a successful check run
✅ Test ignored user name is ignored, expect a successful check run
✅ Test with listCommits API endpoint response not successful, expect a report indicating a possible API error
✅ Test with listCommits API response endpoint promise rejection, expect a report indicating a possible API error
✅ Test with one commit signed by a Bot, not author or committer, expect a successful check run
✅ Test with one commit signed by someone else (not author/committer), expect a failed check run
✅ Test with one commit signed by the author, expect a successful check run
✅ Test with one commit signed by the author, with a domainNotFound service error, expect a failed check run
✅ Test with one commit signed by the author, with a invalidEmailStructure service error, expect a failed check run
✅ Test with one commit signed by the author, with a noMxRecords service error, expect a failed check run
✅ Test with one commit signed by the author, with a SMTPConnectionError service error, expect a failed check run
✅ Test with one commit signed by the author, with a SMTPConnectionTimeout service error, expect a failed check run
✅ Test with one commit signed by the committer, expect a successful check run
✅ Test with one unsigned commit, expect a failed check run
✅ Test with two commits signed by the author, expect a successful check run
✅ Test with two commits, one is unsigned by bot, and one signed by author, expect a successful check run
✅ Test with two commits, one unsigned and one signed by the author, expect a failed check run
✅ tests/handlers/pr-tasks-list.test.js
Testing the pr-tasks-list handler Test handler matching
✅ Test an unknown event type, expect a false match
✅ Test pull_request event type with an unknown action type, expect a false match
✅ Test pull_request event type with edited action type, expect a match
✅ Test pull_request event type with opened action type, expect a match
✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-tasks-list handler Test handler running
✅ Test with all tasks checked, expect the check to pass with a summary of the completed tasks
✅ Test with not tasks, expect the check to fail providing notification indicating no tasks found
✅ Test with unchecked tasks, expect the check to fail with a report of the not yet completed tasks
Annotations
Check failure on line 157 in src/handlers/pr-conventional-commits.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one error commit message, expect one error report
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at lintCommit (src/handlers/pr-conventional-commits.js:157:84)
at /home/runner/work/auto-me-bot/auto-me-bot/src/handlers/pr-conventional-commits.js:59:62
at Array.map (<anonymous>)
at module.exports.run (src/handlers/pr-conventional-commits.js:59:45)
at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:187:13)
Check failure on line 157 in src/handlers/pr-conventional-commits.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one good commit message, expect a successful result
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at lintCommit (src/handlers/pr-conventional-commits.js:157:84)
at /home/runner/work/auto-me-bot/auto-me-bot/src/handlers/pr-conventional-commits.js:59:62
at Array.map (<anonymous>)
at module.exports.run (src/handlers/pr-conventional-commits.js:59:45)
at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:213:13)
Check failure on line 157 in src/handlers/pr-conventional-commits.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one non-standard error based a custom configuration, expect a report error
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at lintCommit (src/handlers/pr-conventional-commits.js:157:84)
at /home/runner/work/auto-me-bot/auto-me-bot/src/handlers/pr-conventional-commits.js:59:62
at Array.map (<anonymous>)
at module.exports.run (src/handlers/pr-conventional-commits.js:59:45)
at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:310:13)
Check failure on line 157 in src/handlers/pr-conventional-commits.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one warning commit message, expect one warning report
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at lintCommit (src/handlers/pr-conventional-commits.js:157:84)
at /home/runner/work/auto-me-bot/auto-me-bot/src/handlers/pr-conventional-commits.js:59:62
at Array.map (<anonymous>)
at module.exports.run (src/handlers/pr-conventional-commits.js:59:45)
at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:150:13)
Check failure on line 157 in src/handlers/pr-conventional-commits.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one warning, one error, and one good commit message, expect a report for both the warning and the error
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at lintCommit (src/handlers/pr-conventional-commits.js:157:84)
at /home/runner/work/auto-me-bot/auto-me-bot/src/handlers/pr-conventional-commits.js:59:62
at Array.map (<anonymous>)
at module.exports.run (src/handlers/pr-conventional-commits.js:59:45)
at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:271:13)
Check failure on line 40 in src/handlers/pr-conventional-title.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-title.test.js ► Testing the pr-conventional-title handler Test handler running ► Test with a conventional pr title, expect a successful report
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at module.exports.run (src/handlers/pr-conventional-title.js:40:99)
at async assertHandlerOperation (tests/handlers/pr-conventional-title.test.js:108:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-title.test.js:128:13)
Check failure on line 40 in src/handlers/pr-conventional-title.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-title.test.js ► Testing the pr-conventional-title handler Test handler running ► Test with a long pr title and a custom config set for error, expect a failed report
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at module.exports.run (src/handlers/pr-conventional-title.js:40:99)
at async assertHandlerOperation (tests/handlers/pr-conventional-title.test.js:108:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-title.test.js:176:13)
Check failure on line 40 in src/handlers/pr-conventional-title.js
github-actions / Unit Tests Run
tests/handlers/pr-conventional-title.test.js ► Testing the pr-conventional-title handler Test handler running ► Test with a long pr title and a custom config set for warning, expect a successful report with a warning
Failed test found in:
unit-tests-result.json
Error:
Cannot read properties of undefined (reading 'parserOpts')
Raw output
TypeError: Cannot read properties of undefined (reading 'parserOpts')
at module.exports.run (src/handlers/pr-conventional-title.js:40:99)
at async assertHandlerOperation (tests/handlers/pr-conventional-title.test.js:108:13)
at async Context.<anonymous> (tests/handlers/pr-conventional-title.test.js:152:13)