Skip to content

Conversation

@alexander-akait
Copy link
Member

Summary

Use jest assertion

What kind of change does this PR introduce?

refactor test

Did you add tests for your changes?

Existing

Does this PR introduce a breaking change?

No

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Nothing

@alexander-akait alexander-akait force-pushed the remove-unnecessary-deps branch from 3b36cb0 to cc15a42 Compare January 23, 2026 13:04
@alexander-akait
Copy link
Member Author

@valscion ready for review

Copy link
Member

@valscion valscion left a comment

Choose a reason for hiding this comment

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

👏 great work!

// On node.js v16 and lower, the calculated gzip is one byte larger. Nice.
gzipSize:
parseInt(process.versions.node.split(".")[0]) <= 16 ? 360 : 358,
parsedSize: 1349,
Copy link
Member

Choose a reason for hiding this comment

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

Huh. Why did the parsedSize change here and in some other assertions here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like chai has bugs here, as you can see we don't change something here except migration to jest assertion

await expectValidReport({ parsedSize: 1317, gzipSize: 341 });
});

it.only("should support brotli", async function () {
Copy link
Member

Choose a reason for hiding this comment

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

Was this the reason? We had accidentally left a it.only here? 😬

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it is a fix

Copy link
Member Author

Choose a reason for hiding this comment

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

We also have skip tests in some places, I will fix them in other PRs

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.

4 participants