goldbergyoni / goldbergyoni/component-tests-workshop

Object.error [as handleError] (src/error-handling.js:4:13)

Open
#121 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
43
Forks
158
PR merge metrics
No merged PRs in 30d

Description

Hi @goldbergyoni ,

When running `npm run test` as part of the workshop preparation, I get heaps of error related to `Object.error`

2 | const errorHandler = {
3 | handleError: async (errorToHandle) => {
> 4 | console.error(errorToHandle);
| ^
5 | metricsExporter.fireMetric('error', {
6 | errorName: errorToHandle.name || 'generic-error',
7 | });

at Object.error [as handleError] (src/error-handling.js:4:13)
at handleError (src/entry-points/sensors-api.js:110:24)
at Layer.handle_error (node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (node_modules/express/lib/router/index.js:326:13)
at node_modules/express/lib/router/index.js:286:9
at Function.process_params (node_modules/express/lib/router/index.js:346:12)
at next (node_modules/express/lib/router/index.js:280:10)
at node_modules/express/lib/router/index.js:646:15
at next (node_modules/express/lib/router/index.js:265:14)
at next (node_modules/express/lib/router/route.js:136:14)
at next (src/entry-points/sensors-api.js:65:7)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running `npm run test` and inspect the failures around `src/error-handling.js:4` and `src/entry-points/sensors-api.js:110`. Trace the reported error-handling path and identify which test or request triggers it; done means the workshop test command runs without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.