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

Angular Testing with karma and jasmine #3

Open
JNicholas2014 opened this issue Jul 31, 2021 · 0 comments
Open

Angular Testing with karma and jasmine #3

JNicholas2014 opened this issue Jul 31, 2021 · 0 comments

Comments

@JNicholas2014
Copy link

JNicholas2014 commented Jul 31, 2021

Upon creating a new sample app from 'dotnet new angular -o HealthCheck' or using 'ng new HealthCheck', the karma tests do not work. I have tried to my wits end to figure out the exact issue but to no avail. I have downloaded and used the repo project here and it produces the exact behavior.
WARN [karma]: No captured browser, open http://localhost:9876/

This repeats 3 times until you have to cancel the jobs.

It appears that there is an optional Peer Dependency that cannot be resolved.
The repo here uses "karma": "^5.2.3" which has the optional Peer Dependency of karma@"~5.1.0"

Does anyone know what the solution to this issue is?
I'm able to run everything fine from the repo with the exception of the testing.

E:\Projects\HealthCheck\HealthCheck>ng test
\ Generating browser application bundles (phase: building)...31 07 2021 15:18:24.394:WARN [karma]: No captured browser, open http://localhost:9876/
31 07 2021 15:18:24.445:INFO [karma-server]: Karma v6.3.4 server started at http://localhost:9876/
31 07 2021 15:18:24.446:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
31 07 2021 15:18:24.465:INFO [launcher]: Starting browser Chrome
√ Browser application bundle generation complete.
31 07 2021 15:18:31.770:WARN [karma]: No captured browser, open http://localhost:9876/
31 07 2021 15:18:37.099:ERROR [launcher]: Cannot start Chrome
[21308:4812:0731/151830.162:ERROR:usb_descriptors.cc(160)] Device descriptor parsing error.
[21308:4812:0731/151830.162:ERROR:device_event_log_impl.cc(214)] [15:18:30.162] USB: usb_device_win.cc:93 Failed to read descriptors from \?\usb_asmedia#vid_0bc2&pid_231c#na8a1trq#{a5dcbf10-6530-11d2-901f-00c04fb951ed}.
[21308:4812:0731/151830.168:ERROR:usb_descriptors.cc(160)] Device descriptor parsing error.
[21308:4812:0731/151830.168:ERROR:device_event_log_impl.cc(214)] [15:18:30.169] USB: usb_device_win.cc:93 Failed to read descriptors from \?\usb#vid_1532&pid_022b#6&9800be5&0&4#{a5dcbf10-6530-11d2-901f-00c04fb951ed}.
[21308:4812:0731/151830.175:ERROR:device_event_log_impl.cc(214)] [15:18:30.175] Bluetooth: bluetooth_adapter_winrt.cc:1073 Getting Default Adapter failed.

31 07 2021 15:18:37.103:ERROR [launcher]: Chrome stdout:
31 07 2021 15:18:37.105:ERROR [launcher]: Chrome stderr: [21308:4812:0731/151830.162:ERROR:usb_descriptors.cc(160)] Device descriptor parsing error.
[21308:4812:0731/151830.162:ERROR:device_event_log_impl.cc(214)] [15:18:30.162] USB: usb_device_win.cc:93 Failed to read descriptors from \?\usb_asmedia#vid_0bc2&pid_231c#na8a1trq#{a5dcbf10-6530-11d2-901f-00c04fb951ed}.
[21308:4812:0731/151830.168:ERROR:usb_descriptors.cc(160)] Device descriptor parsing error.
[21308:4812:0731/151830.168:ERROR:device_event_log_impl.cc(214)] [15:18:30.169] USB: usb_device_win.cc:93 Failed to read descriptors from \?\usb#vid_1532&pid_022b#6&9800be5&0&4#{a5dcbf10-6530-11d2-901f-00c04fb951ed}.
[21308:4812:0731/151830.175:ERROR:device_event_log_impl.cc(214)] [15:18:30.175] Bluetooth: bluetooth_adapter_winrt.cc:1073 Getting Default Adapter failed.

31 07 2021 15:18:37.150:INFO [launcher]: Trying to start Chrome again (1/2).

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

No branches or pull requests

1 participant