diff --git a/server/src/data-layer/adapters/EmulatorConfig.ts b/server/src/data-layer/adapters/EmulatorConfig.ts new file mode 100644 index 000000000..d520c1582 --- /dev/null +++ b/server/src/data-layer/adapters/EmulatorConfig.ts @@ -0,0 +1,3 @@ +export const EMULATOR_PROJECT_ID = "uasc-ceebc" +export const EMULATOR_HOST = "localhost" +export const EMULATOR_FIRESTORE_PORT = 8080 diff --git a/server/src/test-config/mocks/User.mock.ts b/server/src/test-config/mocks/User.mock.ts new file mode 100644 index 000000000..24379e0c7 --- /dev/null +++ b/server/src/test-config/mocks/User.mock.ts @@ -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" +} diff --git a/server/tsconfig.prod.json b/server/tsconfig.prod.json new file mode 100644 index 000000000..1b8e3d3f0 --- /dev/null +++ b/server/tsconfig.prod.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["**/*.test.ts", "**/*.mock.ts", "src/test-config"] +}