-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add couple more tests and show coverage
- Loading branch information
Showing
25 changed files
with
217 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
# GitHub repository handle | ||
#GH_REPO_HANDLE=mern-monorepo-starter | ||
# CHANGE ME | ||
GH_REPO_HANDLE=mern-monorepo-starter | ||
|
||
# GitHub author handle | ||
#GH_AUTHOR_HANDLE=brunotot | ||
# CHANGE ME | ||
GH_AUTHOR_HANDLE=brunotot | ||
|
||
# GitHub author name | ||
#GH_AUTHOR_NAME=Bruno Tot | ||
# CHANGE ME | ||
GH_AUTHOR_NAME=Bruno Tot | ||
|
||
# Custom app name (handle format) | ||
# This changes the name of file `packages/mern-sample-app` | ||
#CUSTOM_APP_ID=mern-sample-app | ||
# CHANGE ME | ||
CUSTOM_APP_ID=mern-sample-app | ||
|
||
# Custom app name (human format) | ||
#CUSTOM_APP_NAME=MERN Sample App | ||
# CHANGE ME | ||
CUSTOM_APP_NAME=MERN Sample App | ||
|
||
GH_REPO_HANDLE=mern-monorepo-starter | ||
GH_AUTHOR_HANDLE=brunotot | ||
GH_AUTHOR_NAME=Bruno Tot | ||
CUSTOM_APP_ID=mern-sample-app | ||
CUSTOM_APP_NAME=MERN Sample App | ||
# Keycloak URL | ||
# CHANGE ME | ||
KEYCLOAK_URL=https://keycloak-production-86f5.up.railway.app | ||
|
||
# Express URL | ||
# CHANGE ME | ||
EXPRESS_URL=https://monorepo-mern-railway-starter-backend.up.railway.app |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SERVER_DOMAIN=http://localhost | ||
SERVER_PORT=8081 | ||
SERVER_ENV=development | ||
DATABASE_NAME=production | ||
KEYCLOAK_URL=http://localhost:8080 | ||
CORS_ALLOWED_ORIGINS=http://localhost:8081,http://localhost:5173 |
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,5 @@ | ||
SERVER_DOMAIN=https://monorepo-mern-railway-starter-backend.up.railway.app | ||
SERVER_ENV=production | ||
DATABASE_NAME=production | ||
KEYCLOAK_URL=https://keycloak-production-86f5.up.railway.app | ||
CORS_ALLOWED_ORIGINS=https://monorepo-mern-railway-starter-frontend.up.railway.app,http://localhost:5173 |
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 |
---|---|---|
|
@@ -7,8 +7,6 @@ yarn-error.log* | |
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
.env | ||
.env.* | ||
.env.*.local | ||
|
||
node_modules | ||
|
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
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
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,7 +1,2 @@ | ||
# Railway development server | ||
#VITE_API_CLIENT_URL=https://monorepo-mern-railway-starter-backend.up.railway.app | ||
#VITE_API_KEYCLOAK_URL=https://keycloak-production-86f5.up.railway.app | ||
|
||
# Local | ||
VITE_API_CLIENT_URL=http://localhost:8081 | ||
VITE_API_KEYCLOAK_URL=http://localhost:8080 |
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
2 changes: 1 addition & 1 deletion
2
packages/mern-sample-app/lib-api-client/src/app/contracts/User.contract.ts
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
3 changes: 2 additions & 1 deletion
3
packages/mern-sample-app/lib-api-client/test/JsonQueryParam.test.ts
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
15 changes: 15 additions & 0 deletions
15
packages/mern-sample-app/lib-api-client/test/TsRestOpenApi.test.ts
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,15 @@ | ||
/// <reference types="@types/jest" /> | ||
|
||
import { buildOpenAPIObject } from "../src/lib/@ts-rest/TsRestOpenApi"; | ||
|
||
describe("contracts", () => { | ||
describe("given the contracts have valid values filled", () => { | ||
it("should not throw error", async () => { | ||
buildOpenAPIObject({ | ||
authorizationUrl: "authorizationUrl", | ||
tokenUrl: "tokenUrl", | ||
version: "version", | ||
}); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.