-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(rtn-web-browser): add unit tests #14541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
packages/rtn-web-browser/__tests__/apis/openAuthSessionAsync.test.ts
Outdated
Show resolved
Hide resolved
| expect.any(Function), | ||
| ); | ||
| expect(result).toBeNull(); | ||
| }, 10000); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
9509307 to
2aae6a6
Compare
61f6777 to
2272e47
Compare
Description of changes
This PR adds comprehensive unit tests for the
@aws-amplify/rtn-web-browserpackage to achieve 100% test coverage.Issue #, if available
N/A
Description of how you validated changes
yarn testChecklist
yarn testpassesChecklist for repo maintainers
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.