rsnext/test/integration/production
OJ Kwon abfbf41eec
test(integration): emit console error when test fails (#35507)
Minor improvements to the integration test runner to emit process's stdout when its execution failed.

We have `console.log` for the output, but it doesn't emit actually since jest suppresses console output unlesss _assertion_ fails. If we throws in `before*` hook, since there's no actual assertion fails jest won't release captured console logs.

PR adds one straightforward workaround (https://stackoverflow.com/questions/48695717/console-log-statements-output-nothing-at-all-in-jest) to emit if process exits with non-zero errorcode. To avoid any existing behavior, this is not enabled for the cases when process successfully exits.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-03-28 21:46:56 +00:00
..
components Fix dynamic css unloading (#17173) 2020-11-03 05:23:31 +00:00
pages Update trace ignore check to check reasons correctly (#35511) 2022-03-22 00:03:42 -05:00
public Add CSP to Image Optimization API (#28620) 2021-08-30 16:51:47 +00:00
static Update to latest @vercel/nft and leverage new reason types (#35446) 2022-03-18 21:18:24 +00:00
test test(integration): emit console error when test fails (#35507) 2022-03-28 21:46:56 +00:00
info.json Use our static file rendering machanism to serve pages. 2018-01-13 10:36:50 +05:30
next.config.js Add image config for dangerouslyAllowSVG and contentSecurityPolicy (#34431) 2022-02-16 19:28:22 +00:00