-
Notifications
You must be signed in to change notification settings - Fork 533
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
refactor: Use assert.equal() to see values when test fails #23172
base: main
Are you sure you want to change the base?
Conversation
// For some reason TSC gets it wrong - it assumes that attachState is constant and that assert above | ||
// established it's AttachState.Detached, so this comparison is useless. | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore |
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 just tried removing it and nothing complained. Might have been a transient issue that a TS server restart would have gotten rid of?
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.
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: d94bd42 |
Description
The
Includes ack'd ids in summary
test sometimes fails against routerlicious but the error output only saysfalse !== true
so we can't tell the actual value of the number that is being compared to 1. This PR updates a few asserts in that file so they'll give us the actual value instead of justexpected true, got false
in the output when the test fails.Reviewer Guidance
The review process is outlined on this wiki page.