Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
choden-dev committed Mar 7, 2024
1 parent 4aef54c commit 9841ff7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/data-layer/adapters/EmulatorConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const EMULATOR_PROJECT_ID = "uasc-ceebc"
export const EMULATOR_HOST = "localhost"
export const EMULATOR_FIRESTORE_PORT = 8080
15 changes: 15 additions & 0 deletions server/src/test-config/mocks/User.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { dateToFirestoreTimeStamp } from "data-layer/adapters/FirestoreUtils"
import { UserAdditionalInfo } from "data-layer/models/firebase"

export const additionalInfoMock: UserAdditionalInfo = {
date_of_birth: dateToFirestoreTimeStamp(new Date(10000000000)),
does_freestyle: true,
does_racing: true,
does_ski: false,
emergency_name: "emergency",
emergency_phone: "111",
emergency_relation: "relation",
first_name: "first",
last_name: "second",
membership: "member"
}
4 changes: 4 additions & 0 deletions server/tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["**/*.test.ts", "**/*.mock.ts", "src/test-config"]
}

0 comments on commit 9841ff7

Please sign in to comment.