GithubHelp home page GithubHelp logo

component-tests-workshop's People

Contributors

goldbergyoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

component-tests-workshop's Issues

Where are the solutions?

I was watching the recording of the workshop which cut off at about 1 hr and was curious where the solutions to the challenges are?

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

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)

A worker process has failed to exit gracefully

Hi Yoni, when running npm run test with node 18.1.0, tests are passing, but I'm getting this error message:

A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.