Skip to content

Commit

Permalink
test: update regexp in ssr-error-stack E2E test for Node.js 22 on Win…
Browse files Browse the repository at this point in the history
…dows

With Node.js 22 on Windows the stack traces may contain paths that have
double backslash path segment separators.
  • Loading branch information
clydin committed Apr 25, 2024
1 parent 70dbc7a commit 710c60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/legacy-cli/e2e/tests/vite/ssr-error-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function () {
// The error is also sent in the browser, so we don't need to scrap the stderr.
match(
text,
/something happened.+at eval \(.+\/e2e-test[\\\/]test-project[\\\/]src[\\\/]app[\\\/]app\.component\.ts:\d+:\d+\)/,
/something happened.+at eval \(.+[\\/]+e2e-test[\\/]+test-project[\\/]+src[\\/]+app[\\/]+app\.component\.ts:\d+:\d+\)/,
);
doesNotMatch(text, /vite-root/);
}

0 comments on commit 710c60f

Please sign in to comment.