Code Monkey home page Code Monkey logo

Comments (10)

ehmicky avatar ehmicky commented on May 9, 2024

Hi @jgierer12, thanks for reporting this issue!

Are you using the testing option with tape as a value?

from log-process-errors.

jgierer12 avatar jgierer12 commented on May 9, 2024

No, I'm not using any custom config at all.

from log-process-errors.

ehmicky avatar ehmicky commented on May 9, 2024

Thanks. Are you using register/tape? https://github.com/ehmicky/log-process-errors/blob/master/docs/API.md#testing

from log-process-errors.

jgierer12 avatar jgierer12 commented on May 9, 2024

Nope, nothing test-related at all actually. Only a sibling Yarn workspace but outside the scope of the relevant package is using Jest.

from log-process-errors.

ehmicky avatar ehmicky commented on May 9, 2024

Ok so some background: the testing option is making unit tests fail when a process error is raised.

Each test runner works differently. For tape, I create a failing test using require('tape').test('..', t => t.error(error)). require('tape') is dynamically required and supposed to only be performed when the testing option is set to tape.

If you have a minimal reproduction demo, I would love to fix this bug, because this might impact other users with the same setup. Thanks!

from log-process-errors.

ehmicky avatar ehmicky commented on May 9, 2024

@jgierer12 Did you manage to reproduce it in a more minimal setup? Thanks!

from log-process-errors.

jgierer12 avatar jgierer12 commented on May 9, 2024

No, sorry, I tried for a while but didn't manage to reproduce this in a setup which I would be able to publish 😕

It must have something to do with the other dependencies I'm using, since I haven't been able to reproduce just with workspaces + netlify-lambda. On the upside, that probably makes it obscure enough for few other people to run into.

from log-process-errors.

ehmicky avatar ehmicky commented on May 9, 2024

Does it work if you uninstall tape? If not, could you please edit node_modules/log-process-errors/build/src/options/runners.js and add a console.trace() just before require('tape')? Like this you might get a better stack trace of what is calling that function.

from log-process-errors.

ehmicky avatar ehmicky commented on May 9, 2024

@jgierer12 if you could check this, this would help me fix this problem potentially for some users. Thanks!

from log-process-errors.

ehmicky avatar ehmicky commented on May 9, 2024

Closing but @jgierer12 feel free to comment.

from log-process-errors.

Related Issues (11)

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.