goldbergyoni / component-tests-workshop Goto Github PK
View Code? Open in Web Editor NEWExercises for mastering integration/component tests
License: MIT License
Exercises for mastering integration/component tests
License: MIT License
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?
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)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.