Skip to content

Commit 64ff6a4

Browse files
committed
fix(migrations): Bootstrap rebased SQL tests
Pass the explicit schema-bootstrap mode in SQL tests added on main after the migration helper became mode-aware.
1 parent 86106a3 commit 64ff6a4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/junior/tests/component/conversation-sql-store.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("conversation SQL store", () => {
3636

3737
try {
3838
const store = createSqlStore(fixture.sql);
39-
await migrateSchema(fixture.sql);
39+
await migrateSchema(fixture.sql, { mode: "schema-bootstrap" });
4040
const at = new Date(1);
4141
await fixture.sql.db().insert(juniorConversations).values({
4242
conversationId: "parent-without-root",

packages/junior/tests/integration/api/conversations/list.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ describe("conversation list API", () => {
237237
const fixture = createConfiguredJuniorSqlFixture();
238238
const store = createSqlStore(fixture.sql);
239239
try {
240-
await migrateSchema(fixture.sql);
240+
await migrateSchema(fixture.sql, { mode: "schema-bootstrap" });
241241
await store.recordActivity({
242242
conversationId: "slack:C1:invalid-root",
243243
nowMs: 1_000,

packages/junior/tests/integration/api/people/profile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe("people profile API", () => {
2121
const ownerChildConversationId = "slack:C-public:owner-child";
2222

2323
try {
24-
await migrateSchema(fixture.sql);
24+
await migrateSchema(fixture.sql, { mode: "schema-bootstrap" });
2525
await store.recordActivity({
2626
conversationId: rootConversationId,
2727
actor: {

0 commit comments

Comments
 (0)