Skip to content

feat: add insforge-test package#1269

Merged
pyramation merged 1 commit into
mainfrom
feat/insforge-test
Jun 6, 2026
Merged

feat: add insforge-test package#1269
pyramation merged 1 commit into
mainfrom
feat/insforge-test

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

New postgres/insforge-test package — an InsForge-optimized wrapper around pgsql-test, following the same pattern as supabase-test.

InsForge is structurally very similar to Supabase but less opinionated (no special admin user, standard PG port). The key role mapping differences:

INSFORGE_DEFAULTS = {
  roles: {
    anonymous: 'anon',
    authenticated: 'authenticated',
    administrator: 'project_admin',   // supabase: 'service_role'
    default: 'anon',
  },
  connections: {
    app: { user: 'postgres', ... }    // supabase: 'supabase_admin'
  }
};

INSFORGE_PG_DEFAULTS = {
  port: 5432,                          // supabase: 54322
  user: 'postgres',                    // supabase: 'supabase_admin'
};

Includes:

  • getConnections() with InsForge defaults baked in (same merge precedence: defaults → env vars → user overrides)
  • insertUser() helper for auth.users (identical to supabase-test — InsForge uses the same auth.users(id, email) pattern)
  • Full re-exports from pgsql-test (snapshot utilities, seed adapters, etc.)
  • README with InsForge-specific role docs, RLS testing examples, and a comparison table vs supabase-test

Link to Devin session: https://app.devin.ai/sessions/d1ba1a60226b4f6ea22409c44b0c9cc2
Requested by: @pyramation

Adds postgres/insforge-test — an InsForge-optimized wrapper around pgsql-test,
mirroring supabase-test's pattern with InsForge-specific role mappings:

- anonymous: anon, authenticated: authenticated, administrator: project_admin
- Connection user: postgres (port 5432)
- insertUser() helper for auth.users
- Full README with usage examples and role documentation
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation pyramation merged commit ac0cb7e into main Jun 6, 2026
35 checks passed
@pyramation pyramation deleted the feat/insforge-test branch June 6, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant