Skip to content

test(core-acs-reader): add unit tests#1924

Open
mateuszpiatkowski-da wants to merge 15 commits into
mainfrom
mateuszpiatkowski-da/core-acs-reader-unit-tests
Open

test(core-acs-reader): add unit tests#1924
mateuszpiatkowski-da wants to merge 15 commits into
mainfrom
mateuszpiatkowski-da/core-acs-reader-unit-tests

Conversation

@mateuszpiatkowski-da

Copy link
Copy Markdown
Contributor

No description provided.

@mateuszpiatkowski-da mateuszpiatkowski-da self-assigned this Jun 1, 2026
@mateuszpiatkowski-da mateuszpiatkowski-da linked an issue Jun 1, 2026 that may be closed by this pull request
@mateuszpiatkowski-da mateuszpiatkowski-da marked this pull request as ready for review June 1, 2026 13:19
@mateuszpiatkowski-da mateuszpiatkowski-da requested a review from a team as a code owner June 1, 2026 13:19
Comment thread core/acs-reader/src/cache/__test__/cache.test.ts Outdated
Comment thread core/acs-reader/src/cache/__test__/cache.test.ts Outdated
Comment thread core/acs-reader/src/cache/__test__/cache.test.ts Outdated
Comment thread core/acs-reader/src/cache/__test__/collection.test.ts Outdated
@pawelstepien-da

Copy link
Copy Markdown
Contributor

Please also set coverage thresholds in vitest.config.ts to 70% branches and 80% other metrics.

@mateuszpiatkowski-da

mateuszpiatkowski-da commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

Converting to draft since #1947 should be merged first as it will make substantial changes to code structure.

Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@mateuszpiatkowski-da mateuszpiatkowski-da force-pushed the mateuszpiatkowski-da/core-acs-reader-unit-tests branch from dcb2614 to 646b89d Compare June 11, 2026 09:58
@mateuszpiatkowski-da mateuszpiatkowski-da marked this pull request as ready for review June 11, 2026 09:58
@mateuszpiatkowski-da mateuszpiatkowski-da enabled auto-merge (squash) June 11, 2026 09:59
alexmatson-da
alexmatson-da previously approved these changes Jun 12, 2026
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Comment thread core/acs-reader/src/__test__/cache/collection.test.ts
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@pawelstepien-da pawelstepien-da self-requested a review June 16, 2026 19:02

@pawelstepien-da pawelstepien-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Something makes running yarn test:coverage in that package keep on running forever. I tried locally and it seems that it happens only when tests run in environment browser. I'm not sure if that core package is supposed to be node only, but if not then I suspect it may be caused by importOriginal. If it's only for node, then remove vitest project browser.

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.

core-acs-reader unit tests

3 participants