Files
Jiachi Liu b2e711aaea test: add dynamic routes and suspense test case for onRequestError (#67848)
### What

Add tests cases for dynamic routes and suspense page rendering case coverage for onRequestError.

Mostly for checking the `routePath` where we can display the proper original route path

Closes NDX-22
Closes NDX-79
2024-07-17 21:35:17 +02:00

8 lines
210 B
JavaScript

export async function getOutputLogJson(next, outputLogPath) {
if (!(await next.hasFile(outputLogPath))) {
return {}
}
const content = await next.readFile(outputLogPath)
return JSON.parse(content)
}