Skip to content

Commit c4c9316

Browse files
committed
Fix tests
1 parent 0509ff8 commit c4c9316

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/userCreation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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";
55
import UserAccountInformation from "../tests/e2e/backend/utils/userInformation";
66
import { 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
}

0 commit comments

Comments
 (0)