Skip to content

Unit tests not working #112

Open
Open
@jigarmistry

Description

@jigarmistry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions