Skip to content

fix(test): resolve edge function test typo and invalid branch array access - #279

Merged
gregnr merged 2 commits into
supabase:mainfrom
hasithasandunlakshan:fix/delete-branch-test-index
May 15, 2026
Merged

gregnr merged 2 commits into
supabase:mainfrom
hasithasandunlakshan:fix/delete-branch-test-index

Conversation

@hasithasandunlakshan

@hasithasandunlakshan hasithasandunlakshan commented May 9, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

  1. The delete branch test case in server.test.ts fails in standard JavaScript environments due to an invalid negative array index branches[-1].
  2. There is a typo in one of the Edge Function test descriptions: eploy edge function validates slug format.

What is the new behavior?

  1. Replaces branches[-1] with the modern JavaScript .at(-1) method to safely access the last element of the array.
  2. Corrected the typo from eploy to deploy.

Additional context

These issues were identified while implementing new database tools. Resolving them ensures a stable test suite for all contributors.

@hasithasandunlakshan
hasithasandunlakshan force-pushed the fix/delete-branch-test-index branch from 57fd7b6 to 6f9ee36 Compare May 9, 2026 21:58
@hasithasandunlakshan hasithasandunlakshan changed the title fix(test): use correct array indexing for branch deletion test fix(test): resolve edge function test typo and invalid branch array access May 9, 2026

@gregnr gregnr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@gregnr

gregnr commented May 15, 2026

Copy link
Copy Markdown
Member

(e2e tests are failing due to API key - we'll merge as is)

@gregnr
gregnr merged commit da182d6 into supabase:main May 15, 2026
4 of 5 checks passed
mattrossman pushed a commit that referenced this pull request Jun 5, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>mcp-utils: 0.5.1</summary>

##
[0.5.1](mcp-utils-v0.5.0...mcp-utils-v0.5.1)
(2026-06-05)


### Bug Fixes

* update repo URLs after `supabase/mcp` transfer
([#295](#295))
([71e48cc](71e48cc))
</details>

<details><summary>mcp-server-supabase: 0.8.2</summary>

##
[0.8.2](mcp-server-supabase-v0.8.1...mcp-server-supabase-v0.8.2)
(2026-06-05)


### Bug Fixes

* **test:** resolve edge function test typo and invalid branch array
access ([#279](#279))
([da182d6](da182d6))
* update repo URLs after `supabase/mcp` transfer
([#295](#295))
([71e48cc](71e48cc))
</details>

<details><summary>mcp-server-postgrest: 0.1.1</summary>

##
[0.1.1](mcp-server-postgrest-v0.1.0...mcp-server-postgrest-v0.1.1)
(2026-06-05)


### Bug Fixes

* update repo URLs after `supabase/mcp` transfer
([#295](#295))
([71e48cc](71e48cc))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
@supabase-releaser supabase-releaser Bot mentioned this pull request Jun 8, 2026
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.

2 participants