-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: adds initial tests for fullstack app and a Postgres repository (…
…#706) * tests: adds first component test Signed-off-by: Anthony D. Mays <[email protected]> * chore: adds .env.test * feat: adds postgres repo * chore: updates config to use postgres direct & pooling connections * chore: updates build action Signed-off-by: Anthony D. Mays <[email protected]> * fix: uses correct user_id for queries --------- Signed-off-by: Anthony D. Mays <[email protected]>
- Loading branch information
1 parent
38bc4d1
commit fd2d046
Showing
16 changed files
with
3,193 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=Your Next Public Clerk Publishable Key here | ||
CLERK_SECRET_KEY=Your Clerk Secret Key here | ||
DB_TYPE=in-memory | ||
DB_TYPE=in-memory | ||
NEXT_PUBLIC_API_URL=http://localhost:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=Your Next Public Clerk Publishable Key here | ||
CLERK_SECRET_KEY=Your Clerk Secret Key here | ||
DB_TYPE=postgres | ||
NEXT_PUBLIC_API_URL=http://localhost:3000 | ||
DATABASE_URL=Your Postgres connection pooling database URL | ||
DIRECT_URL=Your Postgres direct database URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_someKey | ||
CLERK_SECRET_KEY=sk_test_anotherKey | ||
DB_TYPE=in-memory | ||
NEXT_PUBLIC_API_URL=http://localhost:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,8 @@ yarn-error.log* | |
.env* | ||
!.env.example | ||
!.env.example.* | ||
!.env.test | ||
!.env.test.* | ||
|
||
# vercel | ||
.vercel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import 'vitest-fetch-mock'; |
Oops, something went wrong.