Skip to content

Conversation

@saaivignesh20
Copy link
Collaborator

@saaivignesh20 saaivignesh20 commented Dec 11, 2025

This pull request resolves the GitHub issue:

This PR improves test coverage for the ASCT+B Reporter app:

image

@saaivignesh20 saaivignesh20 self-assigned this Dec 11, 2025
@nx-cloud
Copy link

nx-cloud bot commented Dec 11, 2025

View your CI Pipeline Execution ↗ for commit 7f40049

Command Status Duration Result
nx affected --targets=lint,test,compodoc --conf... ✅ Succeeded 1m 42s View ↗
nx affected --target=build,build-webcomponent,b... ✅ Succeeded 28s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-19 20:49:04 UTC

@github-actions
Copy link

github-actions bot commented Dec 11, 2025

🚀 Preview Deploy Report

✅ Successfully deployed preview here

@saaivignesh20 saaivignesh20 marked this pull request as ready for review December 11, 2025 19:12
@saaivignesh20 saaivignesh20 linked an issue Dec 11, 2025 that may be closed by this pull request
Copy link
Contributor

@axdanbol axdanbol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to use queries/events from https://testing-library.com/ instead of manipulating the fixture for all component tests

{ provide: Router, useValue: mockServices.router },
],
});
return result.fixture.componentInstance;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use fixture. https://testing-library.com/

});

it('should initialize and handle navigation', async () => {
const { fixture } = await setup();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use fixture. https://testing-library.com/


getData(title: string) {
const index = REGISTRY.map((e) => e.urlTitle).indexOf(title);
this.http.get(REGISTRY[index].path, { responseType: 'text' }).subscribe((data) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use httpResource instead

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add method return types

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

Successfully merging this pull request may close these issues.

asctb-reporter: Increase test coverage

3 participants