Closed
Description
What is the problem this feature will solve?
Let's consider the following output:
✔ logs errors during startup (121.652917ms)
✔ errors when starting an already started application (70.462041ms)
✔ errors when stopping an already stopped application (0.26525ms)
✔ does not restart while restarting (84.201625ms)
✔ restarts on SIGUSR2 (77.047292ms)
✔ stops on signals other than SIGUSR2 (38.43975ms)
✔ stops on uncaught exceptions (37.9015ms)
▶ supports configuration overrides
✔ throws on non-string config paths (30.867208ms)
✔ ignores invalid config paths (36.336958ms)
✔ sets valid config paths (46.613208ms)
▶ supports configuration overrides (114.128875ms)
✔ /Users/matteo/Repositories/platformatic/packages/runtime/test/cli/helper.mjs (98.878167ms)
✔ autostart (826.68275ms)
✔ start command (855.799541ms)
✖ handles startup errors (10102.117417ms)
Error: Promise resolution is still pending but the event loop has already resolved
at process.emit (node:events:513:28)
Unfortunately it's impossible to know at first glance where handles startup error
is defined.
This is critical information for the user.
What is the feature you are proposing to solve the problem?
Whenever the test runner is running more than one file, we should print out the name of the file being run, either in the full path or relative to cwd, something like:
▶ path/to/my/test.js
✔ throws on non-string config paths (30.867208ms)
✔ ignores invalid config paths (36.336958ms)
✔ sets valid config paths (46.613208ms)
What alternatives have you considered?
No response