Skip to content

add logging

add logging #62

Triggered via pull request March 27, 2024 12:02
@jshawljshawl
synchronize #15
log
Status Failure
Total duration 27s
Artifacts

node.js.yml

on: pull_request
Matrix: test
deploy_staging
0s
deploy_staging
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
src/handlers.spec.js > handlers > 400 if missing required parameters: src/handlers.spec.js#L21
AssertionError: expected { Object (error) } to deeply equal ObjectContaining {"errors": Any<Array>} - Expected + Received - ObjectContaining { - "errors": Any<Array>, + Object { + "error": "Unexpected end of JSON input", } ❯ src/handlers.spec.js:21:35
src/handlers.spec.js > handlers > 400 if invalid to: address: src/handlers.spec.js#L52
AssertionError: expected { Object (error) } to deeply equal ObjectContaining{…} - Expected + Received - ObjectContaining { - "error": "Does not contain a valid address.", + Object { + "error": "Unexpected end of JSON input", } ❯ src/handlers.spec.js:52:35
src/mail.test.js > mail > makes a request to the sendgrid api: src/log.js#L17
TypeError: Cannot read properties of undefined (reading 'json') ❯ Module.log src/log.js:17:31 ❯ Module.mail src/mail.js:36:3 ❯ src/mail.test.js:35:5
src/mail.test.js > mail > logs: src/log.js#L17
TypeError: Cannot read properties of undefined (reading 'json') ❯ Module.log src/log.js:17:31 ❯ Module.mail src/mail.js:36:3 ❯ src/mail.test.js:50:5
test (20.x)
Process completed with exit code 1.
test (20.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.