You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae ipsum id metus vestibulum rutrum eget a diam. Integer eget vulputate risus, ac convallis nulla. Mauris sed augue nunc. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam congue posuere tempor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut ac augue non libero ullamcorper ornare. Ut commodo ligula vitae malesuada maximus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam sagittis justo non justo placerat, a dapibus sapien volutpat. Nullam ullamcorper sodales justo sed.",
36
+
userId: authorId,
37
+
})
38
+
.onConflictDoNothing()
39
+
.returning();
40
+
41
+
awaitdb
42
+
.insert(comment)
43
+
.values({
44
+
postId,
45
+
body: "What a great article! Thanks for sharing",
46
+
userId: commenterId,
47
+
})
48
+
.onConflictDoNothing()
49
+
.returning();
50
+
};
51
+
52
+
try{
53
+
console.log("creating articles");
54
+
55
+
awaitaddE2EArticleAndComment(
56
+
process.env.E2E_USER_ONE_IDasstring,
57
+
process.env.E2E_USER_TWO_IDasstring,
58
+
);
59
+
console.log("DB setup successful");
60
+
}catch(err){
61
+
console.log("Error while setting up DB before E2E test run",err);
0 commit comments