edge-runtime icon indicating copy to clipboard operation
edge-runtime copied to clipboard

Unit tests not working

Open jigarmistry opened this issue 2 years ago • 4 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

  • I have function named contact, which is simple function prepared using deno edge function. This function gets contacts stored in db table.
  • I am using superoak to test that function
  • When I run the test its keep loading & loading, so basically its stuck.

To Reproduce

I have prepared a demo repository to reproduce this issue. Following is the repo link

https://github.com/jigarmistry/supabase_unit_test

  1. I have setup contact.test.ts file in functions/contact folder

  2. To run unit test we have command npm run test:contact

  3. After running that command it kept loading and stuck without any result.

Expected behavior

  • It should run a test case and give expected true/false result.

System information

  • OS: macos
  • Version of supabase-js: latest
  • Version of Node.js: 14

jigarmistry avatar Jun 03 '23 05:06 jigarmistry

🔕 This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 22 '25 02:08 github-actions[bot]

🔕 This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 22 '25 02:10 github-actions[bot]

not close

kallebysantos avatar Oct 22 '25 09:10 kallebysantos

@jigarmistry your repro repo is a 404

rainhead avatar Oct 29 '25 22:10 rainhead