Home / Type/ TestContext Type — drizzle-orm Architecture

TestContext Type — drizzle-orm Architecture

Architecture documentation for the TestContext type/interface in pg.test.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  9f71403f_68ef_a87e_981c_49e3de2c7b79["TestContext"]
  8da72e71_fec6_e91b_3df5_b885c3bf1fcf["pg.test.ts"]
  9f71403f_68ef_a87e_981c_49e3de2c7b79 -->|defined in| 8da72e71_fec6_e91b_3df5_b885c3bf1fcf
  style 9f71403f_68ef_a87e_981c_49e3de2c7b79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/relational/pg.test.ts lines 23–28

	export interface TestContext {
		docker: Docker;
		pgContainer: Docker.Container;
		pgDb: NodePgDatabase<typeof schema>;
		pgClient: pg.Client;
	}

Frequently Asked Questions

What is the TestContext type?
TestContext is a type/interface in the drizzle-orm codebase, defined in integration-tests/tests/relational/pg.test.ts.
Where is TestContext defined?
TestContext is defined in integration-tests/tests/relational/pg.test.ts at line 23.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free