Skip to content

feat(rtn-web-browser): add unit tests#14541

Merged
ahmedhamouda78 merged 12 commits intomainfrom
feat/rtn-web-browser-unit-tests
Jan 28, 2026
Merged

feat(rtn-web-browser): add unit tests#14541
ahmedhamouda78 merged 12 commits intomainfrom
feat/rtn-web-browser-unit-tests

Conversation

@ahmedhamouda78
Copy link
Member

Description of changes

This PR adds comprehensive unit tests for the @aws-amplify/rtn-web-browser package to achieve 100% test coverage.

Issue #, if available

N/A

Description of how you validated changes

  • Verified all tests pass with yarn test

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

soberm
soberm previously approved these changes Sep 3, 2025
soberm
soberm previously approved these changes Sep 3, 2025
expect.any(Function),
);
expect(result).toBeNull();
}, 10000);
Copy link
Member

Choose a reason for hiding this comment

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

these timeouts seem rather high.

do you know what part is taking so much time that an increase in timeout is required?
maybe this can be resolved with mocking dependencies.

Copy link
Member Author

@ahmedhamouda78 ahmedhamouda78 Sep 23, 2025

Choose a reason for hiding this comment

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

I removed the timeouts entirely as the tests pass just fine without them. This was just an artifact from development that I forgot about.

pranavosu
pranavosu previously approved these changes Sep 24, 2025
@ahmedhamouda78 ahmedhamouda78 added the run-tests run the pr-label workflow label Jan 8, 2026
@ahmedhamouda78 ahmedhamouda78 force-pushed the feat/rtn-web-browser-unit-tests branch from 101eebe to 20a4455 Compare January 8, 2026 16:26
@pranavosu pranavosu self-assigned this Jan 16, 2026
@ahmedhamouda78 ahmedhamouda78 merged commit db2825b into main Jan 28, 2026
229 of 279 checks passed
@ahmedhamouda78 ahmedhamouda78 deleted the feat/rtn-web-browser-unit-tests branch January 28, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests run the pr-label workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants