loki icon indicating copy to clipboard operation
loki copied to clipboard

Tests fail in GitHub Actions if use node 17.x

Open SerhiyDemchuk opened this issue 2 years ago • 1 comments

Hi, when I run "npx loki --requireReference --reactUri file:./storybook-static" in IDE it passes. However, it fails in GitHub Actions if node-version is set 17.x and returns this error:

loki test v0.30.3 PASS chrome.app/START FAIL chrome.app/FETCH_STORIES: connect ECONNREFUSED ::1:35795 FAIL chrome.app: Some tasks failed to run Some visual tests failed to run Error: Process completed with exit code 1.

Also, no problems occur if the node is set to 16.x;

Why node loki fails on node 17 and how to fix it?

SerhiyDemchuk avatar Oct 02 '22 20:10 SerhiyDemchuk

This sounds like the same problem as #405. You can try using the workaround I described there.

vladbulyukhin avatar Oct 03 '22 20:10 vladbulyukhin