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

The ng test command fails in Angular when using Deno #27392

Open
csvn opened this issue Dec 16, 2024 · 0 comments
Open

The ng test command fails in Angular when using Deno #27392

csvn opened this issue Dec 16, 2024 · 0 comments

Comments

@csvn
Copy link

csvn commented Dec 16, 2024

I'm trying to replace Node.js with Deno in my Angular project, but generating a new project (#27382) and running unit tests fails with Deno for the current/latest Angular version. With ng test, it runs with the Karma test runner, and it seems that the browser fails to load the test runner, and just stays loading. The ng test command will fail after restarting twice.

Reproduction

> npx @angular/cli@latest new foo
> cd foo
> deno task --eval "rm -rf node_modules"
> deno install --allow-scripts
> deno task test

Task test ng test
✔ Browser application bundle generation complete.
16 12 2024 23:50:51.572:WARN [karma]: No captured browser, open http://localhost:9876/
16 12 2024 23:50:51.919:INFO [karma-server]: Karma v6.4.4 server started at http://localhost:9876/
16 12 2024 23:50:51.920:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
16 12 2024 23:50:52.152:INFO [launcher]: Starting browser Chrome
16 12 2024 23:51:52.181:WARN [launcher]: Chrome has not captured in 60000 ms, killing.
16 12 2024 23:51:53.349:INFO [launcher]: Trying to start Chrome again (1/2).
16 12 2024 23:52:53.364:WARN [launcher]: Chrome has not captured in 60000 ms, killing.
16 12 2024 23:52:53.638:INFO [launcher]: Trying to start Chrome again (2/2).
16 12 2024 23:53:53.647:WARN [launcher]: Chrome has not captured in 60000 ms, killing.
16 12 2024 23:53:53.885:ERROR [launcher]: Chrome failed 2 times (timeout). Giving up.

Version: Deno 2.1.4

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

No branches or pull requests

1 participant