File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/vite/src/node/server/middlewares
playground/html/__tests__ Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ export function errorMiddleware(
8484 </script>
8585 </head>
8686 <body>
87+ <h1>Internal Server Error</h1>
88+ <pre>${ err . stack ?. replace ( / < / g, '<' ) } </pre>
8789 </body>
8890 </html>
8991 ` )
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ describe.runIf(isServe)('invalid', () => {
259259 const errorOverlay = await page . waitForSelector ( 'vite-error-overlay' )
260260 expect ( errorOverlay ) . toBeTruthy ( )
261261
262- await page . click ( 'html' )
262+ await page . click ( 'html' , { position : { x : 50 , y : 50 } } )
263263 const isVisbleOverlay = await errorOverlay . isVisible ( )
264264 expect ( isVisbleOverlay ) . toBeFalsy ( )
265265 } )
You can’t perform that action at this time.
0 commit comments