Skip to content

Conversation

@bp-cos
Copy link
Contributor

@bp-cos bp-cos commented Aug 20, 2025

  • Ticket: [ENG-8505]
  • Feature flag: n/a

Purpose

Updates to tests, testing structure and documentation

Summary of Changes

1- Added a test for the app/shared/services/addons/addons.service.ts
2- Added compodoc to facilitate better documentation
3- Added a warning to the pre-commit husky to verify coverage
4- Added a README for compodoc. The language is for a future day when documentation hits 100%
5- Add an osf.testing.module.ts as an abstracted import to simplify unit testing
6- Added a src/testing/data directory to hold all of the test data. In ember, the test data was built using mirage. In angular it is all static files. This is the initial commit to start building up the data sets. There is a question about how much data really needs to be included. Do we really need all 10 objects?
7- Installed 'structuredClone` to facilitate the testing data stays constant.
8- Added a *.d.ts type file to @types for structuredClone

Screenshot(s)

N/A

Side Effects

N/A

QA Notes

None required for this ticket.

@bp-cos bp-cos requested review from futa-ikeda and nsemets August 20, 2025 20:46
'<rootDir>/src/app/features/project/analytics/',
'<rootDir>/src/app/features/project/contributors/',
'<rootDir>/src/app/features/files/',
'<rootDir>/src/app/features/project/files/',
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't have files in project. It was moved from project folder.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@bp-cos just fix this.

Suggested change
'<rootDir>/src/app/features/project/files/',
'<rootDir>/src/app/features/files/',

@bp-cos bp-cos added this pull request to the merge queue Aug 21, 2025
Merged via the queue into CenterForOpenScience:main with commit 6e66be3 Aug 21, 2025
@bp-cos bp-cos deleted the feature/eng-8505 branch August 21, 2025 16:02
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.

2 participants