File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11//Run with:
22// export ENVIRONMENT=DEV && ./scripts/build_api.sh && npx tsx ./scripts/userCreation.ts
33
4- import { createSupabaseDirectClient } from "../backend/ shared/lib/supabase/init" ;
4+ import { createSupabaseDirectClient } from "shared/lib/supabase/init" ;
55import UserAccountInformation from "../tests/e2e/backend/utils/userInformation" ;
66import { seedDatabase } from "../tests/e2e/utils/seedDatabase" ;
77
@@ -21,6 +21,10 @@ type ProfileType = 'basic' | 'medium' | 'full'
2121 for ( const { count, profileType } of seedConfig ) {
2222 for ( let i = 0 ; i < count ; i ++ ) {
2323 const userInfo = new UserAccountInformation ( )
24+ if ( i == 0 ) {
25+ // Seed the first profile with deterministic data for the e2e tests
26+ userInfo . name = 'Franklin Buckridge'
27+ }
2428 await seedDatabase ( pg , userInfo , profileType )
2529 }
2630 }
You can’t perform that action at this time.
0 commit comments