The test fails, and you can see where
npm test exits with code 1. Its block turns red, shows the exit code and how long it took, and puts a Re-run button on the header. The sidebar row says the same, so you'd spot it from another session too.

Find every mention
⌘F and type WELCOME10. Matches are grouped under the command that printed them, here the one npm test block with two matches.
Read the code next to the output
In the files panel, cart.js carries an M for modified. Press Space on it and Peek opens it with syntax colors. The rounding happens before the discount, on line 11.

Fix it and run the test again
Fix the line in your editor. Then select the failed block and press Re-run. The old output collapses to one line, and the new block carries a re-run tag. Five of five pass.
Re-run types the command at your prompt instead of running it behind your back, so your shell runs it with your aliases and it lands in your history.





