Home / Function/ expectSchemaShape() — drizzle-orm Function Reference

expectSchemaShape() — drizzle-orm Function Reference

Architecture documentation for the expectSchemaShape() function in utils.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  96d30bdb_daf2_c71a_e75b_71042e300cf7["expectSchemaShape()"]
  3594c1f8_e289_c87e_9f92_6f1cf7eb00b7["utils.ts"]
  96d30bdb_daf2_c71a_e75b_71042e300cf7 -->|defined in| 3594c1f8_e289_c87e_9f92_6f1cf7eb00b7
  style 96d30bdb_daf2_c71a_e75b_71042e300cf7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-arktype/tests/utils.ts lines 4–11

export function expectSchemaShape<T extends Type<any, any>>(t: TaskContext, expected: T) {
	return {
		from(actual: T) {
			expect(actual.json).toStrictEqual(expected.json);
			expect(actual.expression).toStrictEqual(expected.expression);
		},
	};
}

Domain

Subdomains

Frequently Asked Questions

What does expectSchemaShape() do?
expectSchemaShape() is a function in the drizzle-orm codebase, defined in drizzle-arktype/tests/utils.ts.
Where is expectSchemaShape() defined?
expectSchemaShape() is defined in drizzle-arktype/tests/utils.ts at line 4.

Analyze Your Own Codebase

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

Try Supermodel Free