Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests using web-test-runner time out waiting for the browser to start #27447

Open
1 task
OBe95 opened this issue Apr 10, 2024 · 0 comments
Open
1 task

Tests using web-test-runner time out waiting for the browser to start #27447

OBe95 opened this issue Apr 10, 2024 · 0 comments
Labels

Comments

@OBe95
Copy link

OBe95 commented Apr 10, 2024

Command

test

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

We are concerned about Karma not being maintained and we want to know the cost of migrating to other alternatives

We came across your blog post Moving Angular CLI to Jest and Web Test Runner and want to explore the web-test-runner, but it fails with the following error: The browser was unable to create and start a test page after 30000ms. You can increase this timeout with the browserStartTimeout option.

image

Minimal Reproduction

I started a new project:

  • ng new test-web-runner
  • selected SCSS and No SSR
  • installed @web/test-runner
  • switched the test builder in angular.json to @angular-devkit/build-angular:web-test-runner
  • run the default test

Exception or Error

No response

Your Environment

Angular CLI: 17.3.3
Node: 20.11.0
Package Manager: npm 10.2.4
OS: darwin arm64

Angular: 17.3.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.3
@angular-devkit/build-angular   17.3.3
@angular-devkit/core            17.3.3
@angular-devkit/schematics      17.3.3
@schematics/angular             17.3.3
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.4

Anything else relevant?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants