Skip to content

Conversation

@Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Jul 10, 2023

🎉 Thanks for submitting a pull request! 🎉

Summary

In #5848, @jrwhitmer added a change to pass account.id into functions and Edge Functions. During pairing, we decided to skip tests since I didn't see how to implement that.

Today I stumbled over mockAPI, which we're using in the rest of the codebase to test API interaction. This PR adds a test for that to the account.id change :)


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@Skn0tt Skn0tt requested a review from jrwhitmer July 10, 2023 14:46
@Skn0tt Skn0tt self-assigned this Jul 10, 2023
@Skn0tt Skn0tt requested a review from a team as a code owner July 10, 2023 14:46
@github-actions
Copy link

github-actions bot commented Jul 10, 2023

📊 Benchmark results

Comparing with 6a7942a

  • Dependency count: 1,313 (no change)
  • Package size: 271 MB (no change)

eduardoboucas
eduardoboucas previously approved these changes Jul 10, 2023
args: ['--country', 'DE'],
env: {
NETLIFY_API_URL: mockApi?.apiUrl,
NETLIFY_SITE_ID: 'foo',
Copy link
Member

Choose a reason for hiding this comment

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

nit: It would be nice to get mock values that are a bit closer to the real ones we use, but not a big deal.

@Skn0tt Skn0tt merged commit 31a213e into main Aug 18, 2023
@Skn0tt Skn0tt deleted the test-account-id branch August 18, 2023 07:41
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