Skip to content

Commit

Permalink
add integration tests for home + package.json improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Jul 17, 2023
1 parent ea58353 commit d851068
Show file tree
Hide file tree
Showing 6 changed files with 535 additions and 96 deletions.
2 changes: 1 addition & 1 deletion functions/src/presentation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type PresentationData = PresentationCreate &
PresentationUpdate & {
// Thumb: string;
// TODO: use this in function metadata
twitterHandle: string;
twitterHandle?: string;
thumbIndex?: number;
};
export type PresentationDoc = Doc & PresentationData;
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "firebase emulators:exec --project demo-test --only auth,firestore,storage --import test-data 'vite --mode emulator'",
"dev:update": "firebase emulators:exec --project demo-test --only auth,firestore,storage --import test-data 'vite --mode emulator' --export-on-exit",
"dev": "pnpm run emulators:exec --import test-data 'pnpm run dev:start'",
"dev:update": "pnpm run emulators:exec --import test-data 'pnpm run dev:start' --export-on-exit",
"dev:start": "vite --mode emulator",
"build": "tsc && vite build",
"lint": "xo",
"preview": "vite preview",
Expand All @@ -15,11 +16,13 @@
"build:all": "pwa-assets-generator && pnpm run build && pnpm run build:functions",
"deploy": "firebase deploy --only functions:renderForBot,auth,firestore,storage,hosting",
"generate-pwa-assets": "pwa-assets-generator",
"test": "firebase emulators:exec --project demo-test --only auth,firestore,storage 'vitest --mode emulator'",
"test:once": "firebase emulators:exec --project demo-test --only auth,firestore,storage 'vitest --run --mode emulator'",
"test:ui": "firebase emulators:exec --project demo-test --only auth,firestore,storage 'vitest --ui --mode emulator'",
"coverage": "firebase emulators:exec --project demo-test --only auth,firestore,storage 'vitest run --coverage --mode emulator'",
"emulators": "firebase emulators:start --project demo-test --only auth,firestore,storage"
"test": "pnpm run emulators:exec 'pnpm run test:start'",
"test:once": "pnpm run emulators:exec 'pnpm run test:start --run'",
"test:ui": "pnpm run emulators:exec 'pnpm run test:start --ui'",
"test:start": "FIRESTORE_EMULATOR_HOST=\"127.0.0.1:8080\" vitest --mode emulator",
"coverage": "pnpm run emulators:exec 'pnpm run test:start --run --coverage'",
"emulators": "firebase emulators:start --project demo-test --only auth,firestore,storage",
"emulators:exec": "firebase emulators:exec --project demo-test --only auth,firestore,storage"
},
"dependencies": {
"@unocss/reset": "^0.53.3",
Expand Down Expand Up @@ -67,6 +70,7 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"firebase-admin": "^11.10.1",
"firebase-tools": "^12.4.3",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
Expand Down
Loading

0 comments on commit d851068

Please sign in to comment.