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

Unit tests not working #112

Open
2 tasks done
jigarmistry opened this issue Jun 3, 2023 · 0 comments
Open
2 tasks done

Unit tests not working #112

jigarmistry opened this issue Jun 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jigarmistry
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • 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 jigarmistry added the bug Something isn't working label Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant