Skip to content

test: cover auth migration constraints#254

Open
kpassito wants to merge 1 commit into
outerbase:mainfrom
kpassito:test-auth-migration-sql
Open

test: cover auth migration constraints#254
kpassito wants to merge 1 commit into
outerbase:mainfrom
kpassito:test-auth-migration-sql

Conversation

@kpassito
Copy link
Copy Markdown

Summary

  • Add focused Vitest coverage for the auth template migration SQL.
  • Execute the real migration in an in-memory SQLite database.
  • Cover auth_users username/email constraints, cross-field overlap trigger behavior, and auth_sessions foreign key / unique token constraints.

/claim #71

Verification

  • ./node_modules/.bin/vitest run templates/auth/src/migration.test.ts
  • ./node_modules/.bin/prettier --check templates/auth/src/migration.test.ts
  • git diff --check

Note: full repository typecheck/full test suite still has existing unrelated failures in current main (RLS expectations / TS errors outside this file).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant