GithubHelp home page GithubHelp logo

ericprud / expectprocessoutput Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35 KB

await specific output from ChildProcess's stdout and stderr; basically expect(1) for node

License: MIT License

JavaScript 100.00%

expectprocessoutput's Introduction

ExpectProcessOutput

await specific output from ChildProcess's stdout and stderr; basically expect(1) for node

debugging

It can be a pain to match std{out,err} in the App.expect{Out,Err} (e.g. epxect(await Server.expectErr(/more stuff\n/)).toEqual(/more stuff\n/). Enabling debug can help but you don't want to see all the noise from babel: [[ (base) PS1=09:21:38-eric@touchy:~/checkouts/LdHost/LdHostManager$ DEBUG=*,-babel* ./node_modules/.bin/jest test/LdHostManager-curl.test.js test:LdHostManager-curl stderr has 1 expectors to match [[ test:LdHostManager-curl 2023-09-26T07:21:44.414Z backend:server Listening on port 3002 test:LdHostManager-curl test:LdHostManager-curl ]] +0ms test:LdHostManager-curl 0: /(backend:server Listening on port (\d+).*\n)/ +1ms ]]

This shows the expecters and what they're expected to match.

expectprocessoutput's People

Contributors

ericprud avatar

Watchers

 avatar

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.