kiegroup / act-js

A node.js wrapper for nektos/act to programmatically run your github actions locally
Apache License 2.0
53 stars 8 forks source link

"do not mock" test fails in interactive console #61

Closed TWiStErRob closed 5 months ago

TWiStErRob commented 7 months ago

To Reproduce

  1. Clone this repo
  2. npm test or npx jest

Expected behavior Pass

Logs

image

Additional context Notice that the expected 200 is yellow. That's part of the string somehow!

TWiStErRob commented 7 months ago

Workaround: npm run test | cat on unix/linux/mac

shubhbapna commented 6 months ago

Interestingly, I am not able to reproduce it. Could you share some more details about the environment you were running this in? Maybe the OS and the node version?

TWiStErRob commented 6 months ago

I'm away from work, but AFAIR: Node 20.10.0 MacOS is latest as far as M1 Pro gets updated I guess it was macOS Sonoma | 14.1.2 and ZSH.

shubhbapna commented 6 months ago

I am not able to test it on a mac but at least when I am using node 20 I am not seeing this issue. Once you are back, can you test it again and see if this is still showing up?

TWiStErRob commented 6 months ago

Exact same problem on Windows 10 with Node v18.17.1, and cmd shell: image

Do you have colors in your output?

shubhbapna commented 6 months ago

I do have colors in my output

shubhbapna commented 5 months ago

Oh I was able to reproduce it now. Not sure what changed though