rsnext/test/integration/ssg-data-404
OJ Kwon 45e6b3e092
test(fixture): prevent unexpected errored exit with leaking error (#65007)
### What

In case of socket raises errors and there aren't any listener to handle
it, node.js exits with non-0 exit code. So even test passes with all
assertion if socket raises an error while teardown (i.e socket destroyed
due to server process killed by test teardown) test will fail.

PR adjusts fixture setup by wiring empty error handler to write console
message to avoid those. If test assertion fails due to legit socket
error, we'll see error message. Otherwise we consider socket error is
not related with test.

- Closes PACK-3002
2024-04-24 19:27:32 -07:00
..
pages Ensure SSG data 404 handles correctly for non-notFound (#20622) 2020-12-30 22:35:02 +00:00
test test(fixture): prevent unexpected errored exit with leaking error (#65007) 2024-04-24 19:27:32 -07:00