Skip to content

byulmaru/kosmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

170 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kosmo

Infrastructure

AWS Terraform root is documented in apps/terraform/README.md.

Test Postgres

Run a local PostgreSQL instance for tests with Docker Compose:

pnpm db:test:up
pnpm db:test:push

The test database connection string is defined in .env.test:

DATABASE_URL=postgres://kosmo:kosmo@localhost:54329/kosmo_test

Use pnpm db:test:reset to recreate the container with an empty data directory, and pnpm db:test:down to stop it.

Web E2E

Run the web E2E command with:

pnpm test:e2e

This installs Playwright Chromium if needed, recreates the test Postgres container, pushes the Drizzle schema, then runs any Playwright specs under apps/web/e2e. The Playwright config manages the API server, web preview server, and local OIDC mock when browser specs are present. It intentionally ignores ambient DATABASE_URL values and uses .env.test instead, so the reset, schema push, and Playwright servers share the same database. Set PLAYWRIGHT_BROWSER_CHANNEL only when you intentionally want to run against another local browser channel such as chrome.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors