Code Monkey home page Code Monkey logo

Comments (4)

lorenzofox3 avatar lorenzofox3 commented on August 21, 2024 1

I am going to close this one as it does not seem to be a problem.

from zora.

lorenzofox3 avatar lorenzofox3 commented on August 21, 2024

Normally any error in one of your test functions is re thrown (as a rejected promise) whereas any error outside would simply make the process crash. So I suspect you are swallowing the error somewhere in your promise chain.

I have not dig up much into your repository but I saw you create yourself the harness with a somehow custom test-runner.

I have set up something similar in the following gist

with expected result
Screenshot 2019-10-08 at 16 17 23

Let me know if it helps

from zora.

saghul avatar saghul commented on August 21, 2024

Thanks for this, it is inmensely helpful!

So I suspect you are swallowing the error somewhere in your promise chain.

Ah, I think we hit the jackpot. Currently QuickJS has no way to add a unhandled promise hook, so I'm a bit blind here.

I'll dig into it, but this certainly puts me in the right direction!

from zora.

saghul avatar saghul commented on August 21, 2024

I wasn't catching the promise in harness.report 🤦‍♂

from zora.

Related Issues (20)

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.