The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Added the test folder in the quickstart with a link addressed the feedback about naming.
Rodrigo Mansueli Nunesaf3f67705239
diff --git a/apps/docs/pages/guides/functions/quickstart.mdx b/apps/docs/pages/guides/functions/quickstart.mdxindex 235556c439e..45eb7a32ef1 100644--- a/apps/docs/pages/guides/functions/quickstart.mdx+++ b/apps/docs/pages/guides/functions/quickstart.mdx@@ -199,7 +199,8 @@ For use-cases which require low-latency we recommend [Edge Functions](/docs/guid## Organizing your Edge Functions-We recommend developing “fat functions”. This means that you should develop few large functions, rather than many small functions. One common pattern when developing Functions is that you need to share code between two or more Functions. To do this, you can store any shared code in a folder prefixed with an underscore (`_`). We recommend this folder structure:+We recommend developing “fat functions”. This means that you should develop few large functions, rather than many small functions. One common pattern when developing Functions is that you need to share code between two or more Functions. To do this, you can store any shared code in a folder prefixed with an underscore (`_`). We also recommend a separate folder for [Unit Tests](/docs/guides/functions/unit-test) including the name of the funtion followed by a `-test` suffix.+We recommend this folder structure:```bash└── supabase@@ -212,7 +213,10 @@ We recommend developing “fat functions”. This means that you should develop│ ├── function-one # Use hyphens to name functions.│ │ └── index.ts│ └── function-two- │ └── index.ts+ │ │ └── index.ts+ │ └── tests+ │ └── function-one-test.ts+ │ └── function-two-test.ts├── migrations└── config.toml```diff --git a/apps/docs/pages/guides/functions/unit-test.mdx b/apps/docs/pages/guides/functions/unit-test.mdxindex 8bb3d753fae..0bc8686cc4d 100644--- a/apps/docs/pages/guides/functions/unit-test.mdx+++ b/apps/docs/pages/guides/functions/unit-test.mdx@@ -5,7 +5,7 @@ export const meta = {title: 'Unit Tests for Edge Functions',description: 'Unit Tests for Edge Functions with Deno Test',}-To ensure the correctness and performance of your Edge Functions, testing is an essential step in the development process. Let's discuss the significance of testing and examining the code in the `deno-test.ts` file, which demonstrates how to test the Supabase client and the `hello-world` function.+To ensure the correctness and performance of your Edge Functions, testing is an essential step in the development process. Let's discuss the significance of testing and examining the code in the `deno-test.ts` file, which demonstrates how to test the Supabase client and the `hello-world` function. When creating test files for Edge Functions, it is recommended to place them in the `supabase/tests` directory and name the file by the function name followed by `-test.ts`. For example, `hello-world-test.ts`.```typescript// deno-test.ts