Created
June 2, 2025 20:39
-
-
Save hrishikeshs/b566b1bb83e436836558ea92dcf85cb1 to your computer and use it in GitHub Desktop.
Command to direct npm run test's output to a file while stripping terminal escape sequences so test results can be analyzed later
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm run test 2>&1| sed -r "s/\x1B\[[0-9;]*[mK]//g" | tee test-results.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment