Skip to content

feat: Generate types and add testing#1

Merged
wilburhimself merged 3 commits into
masterfrom
feature/prisma_generate
Sep 6, 2025
Merged

feat: Generate types and add testing#1
wilburhimself merged 3 commits into
masterfrom
feature/prisma_generate

Conversation

@wilburhimself
Copy link
Copy Markdown
Owner

This PR implements the following:

  • Generates Prisma client and types for both development (PostgreSQL) and testing (SQLite).
  • Adds a separate Prisma schema for testing.
  • Configures the test script to generate the test client and run tests against the test database.
  • Adds an integration test to verify the test database connection.

This completes the 'Generate types' and 'Testing' steps of the project roadmap.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR sets up Prisma type generation and testing infrastructure by implementing separate database configurations for development and testing environments. The implementation creates a dual-client approach with PostgreSQL for development and SQLite for testing.

  • Adds a dedicated test Prisma schema using SQLite with a separate client output path
  • Updates package.json to include Prisma dependencies and test generation scripts
  • Creates an integration test to verify database connectivity using the test client

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

File Description
prisma/test.prisma Adds SQLite-based Prisma schema for testing with separate client generation
package.json Updates dependencies and scripts to support Prisma type generation and test database
src/lib/database.test.ts Adds integration test for database connectivity verification

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@wilburhimself wilburhimself merged commit 2d2f54a into master Sep 6, 2025
1 check passed
@wilburhimself wilburhimself deleted the feature/prisma_generate branch September 6, 2025 23:52
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.

2 participants