node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

Capturing libsass cerr output for testing purposes

Open PolyPik opened this issue 5 years ago • 1 comments

Libsass directly writes its deprecation warnings to std::cerr in certain functions.

As a result, it becomes very hard to check these warnings in the tests as there is no error object being returned once the sass module has finished rendering (no exception thrown means no error object). Existing packages and methods for capturing the stderr output only works for output coming from the Javascript code and not output coming from native modules.

PolyPik avatar Mar 15 '20 19:03 PolyPik

Should this go into libsass repo?

saper avatar Mar 18 '20 09:03 saper