Skip to content

Conversation

@kanadgupta
Copy link
Contributor

🧰 Changes

Fixes a broken test that was introduced in #799 — added a mock for the PACKAGE_VERSION const in a few places so these tests should be stable for future package bumps.

🧬 QA & Testing

Do tests pass now?

@kanadgupta kanadgupta added refactor Issues about tackling technical debt area:api Issues related to the `api` CLI, which builds the SDKs labels Nov 2, 2023

expect(actual).toBe(expected);
});
return fs.readFile(expectedFilePath, 'utf8').then(async expected => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

was able to remove this find + replace logic in favor of a mock 🎊

@kanadgupta kanadgupta marked this pull request as ready for review November 2, 2023 19:24
@kanadgupta kanadgupta requested a review from erunion November 2, 2023 19:24
@kanadgupta kanadgupta merged commit 590f372 into main Nov 2, 2023
@kanadgupta kanadgupta deleted the mock-package-version branch November 2, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api Issues related to the `api` CLI, which builds the SDKs refactor Issues about tackling technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants