Skip to content

Commit 7f35ae7

Browse files
committed
Fix migration tests
1 parent 5ccd8df commit 7f35ae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/backend/prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export const postMigration = async (sql: Sql, ctx: Awaited<ReturnType<typeof pre
3434
`;
3535

3636
const updatedRows = await sql`
37-
SELECT "onboardingState"
37+
SELECT "onboardingState"::text AS "onboardingState"
3838
FROM "Project"
3939
WHERE "id" = ${ctx.projectId}
4040
`;
4141
expect(updatedRows).toHaveLength(1);
42-
expect(updatedRows[0].onboardingState).toMatchInlineSnapshot(`
42+
expect(JSON.parse(updatedRows[0].onboardingState)).toMatchInlineSnapshot(`
4343
{
4444
"selected_apps": [
4545
"authentication",

0 commit comments

Comments
 (0)