Skip to content
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

Remove global apiSdk variable in test and make it a local constant #587

Merged
merged 3 commits into from
Oct 26, 2024

Conversation

jaykayudo
Copy link
Contributor

@jaykayudo jaykayudo commented Oct 26, 2024

Description

Removed the global let apiSdk: ApiSdk and made it local for every test scenerio to make the tests more atomic.

Related Issue

Resolves #583

Does this introduce a breaking change?

  • Yes
  • No

Other information

Copy link

vercel bot commented Oct 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bandada-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2024 11:00pm
bandada-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2024 11:00pm

Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

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

Hey @jaykayudo it looks great! Just left two comments. Thank you for the PR 🙏

libs/api-sdk/src/index.test.ts Outdated Show resolved Hide resolved
libs/api-sdk/src/index.test.ts Outdated Show resolved Hide resolved
@vplasencia
Copy link
Member

Hey @jaykayudo could you run yarn prettier:write in the project root and push the changes if only the test file is modified?

Copy link
Member

@vplasencia vplasencia 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 @jaykayudo! Thank you!

@vplasencia vplasencia changed the base branch from main to dev October 26, 2024 23:01
@vplasencia vplasencia merged commit 3323d18 into bandada-infra:dev Oct 26, 2024
5 checks passed
Copy link

gitpoap-bot bot commented Oct 26, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 Bandada Contributor:

GitPOAP: 2024 Bandada Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

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.

Refactor api-sdk tests to make them more atomic
2 participants