Skip to content

Commit 710c60f

Browse files
committed
test: update regexp in ssr-error-stack E2E test for Node.js 22 on Windows
With Node.js 22 on Windows the stack traces may contain paths that have double backslash path segment separators.
1 parent 70dbc7a commit 710c60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/vite/ssr-error-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default async function () {
2828
// The error is also sent in the browser, so we don't need to scrap the stderr.
2929
match(
3030
text,
31-
/something happened.+at eval \(.+\/e2e-test[\\\/]test-project[\\\/]src[\\\/]app[\\\/]app\.component\.ts:\d+:\d+\)/,
31+
/something happened.+at eval \(.+[\\/]+e2e-test[\\/]+test-project[\\/]+src[\\/]+app[\\/]+app\.component\.ts:\d+:\d+\)/,
3232
);
3333
doesNotMatch(text, /vite-root/);
3434
}

0 commit comments

Comments
 (0)