Closed sweep-ai[bot] closed 1 year ago
GitHub actions yielded the following error.
The command that failed is yarn test-headless
. Here are the relevant lines from the logs:
Chrome Headless 117.0.5938.92 (Windows 10): Executed 0 of 3 SUCCESS (0 secs / 0 secs)
Chrome Headless 117.0.5938.92 (Windows 10) HomeComponent should create the HomeComponent FAILED
NullInjectorError: R3InjectorError(DynamicTestModule)[SupabaseService -> SupabaseService]:
NullInjectorError: No provider for SupabaseService!
...
Chrome Headless 117.0.5938.92 (Windows 10) HomeComponent should display the correct title FAILED
NullInjectorError: R3InjectorError(DynamicTestModule)[SupabaseService -> SupabaseService]:
NullInjectorError: No provider for SupabaseService!
...
Chrome Headless 117.0.5938.92 (Windows 10): Executed 2 of 3 (2 FAILED) (0 secs / 0.061 secs)
Chrome Headless 117.0.5938.92 (Windows 10) HomeComponent should display the correct title FAILED
NullInjectorError: R3InjectorError(DynamicTestModule)[SupabaseService -> SupabaseService]:
NullInjectorError: No provider for SupabaseService!
...
TOTAL: 2 FAILED, 1 SUCCESS
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.
I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR.
add provider SupabaseService to test
add provider SupabaseService to test
Hi @Polyterative,
I decided to make the following changes:
File Path | Proposed Changes |
---|---|
src/app/features/backbone/home/home.component.spec.ts |
Modify src/app/features/backbone/home/home.component.spec.ts with contents: β’ Import SupabaseService from '../../backend/supabase.service' .β’ Add SupabaseService to the providers array in the TestBed.configureTestingModule method. |
PR Feedback (click)
Description
This PR adds a .spec test file for the HomeComponent to ensure that the application starts correctly and displays the homepage as expected. The test cases cover various scenarios and edge cases.
Summary of Changes
src/app/features/backbone/home/home.component.spec.ts
Please review and merge this PR. Thank you!
Fixes #74.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: