Home / File/ wrap-param.test.ts — drizzle-orm Source File

wrap-param.test.ts — drizzle-orm Source File

Architecture documentation for wrap-param.test.ts, a typescript file in the drizzle-orm codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  926e6cce_75a1_b49e_a5e8_96eefc2ef03c["wrap-param.test.ts"]
  9135e6b6_37f7_c980_ee35_90f5531de5a4["common.ts"]
  926e6cce_75a1_b49e_a5e8_96eefc2ef03c --> 9135e6b6_37f7_c980_ee35_90f5531de5a4
  b00190f0_9c7c_acbf_86f7_950ac8c79592["wrapParam"]
  926e6cce_75a1_b49e_a5e8_96eefc2ef03c --> b00190f0_9c7c_acbf_86f7_950ac8c79592
  0f00c7dd_5eba_f1f8_c559_a99431086500["chalk"]
  926e6cce_75a1_b49e_a5e8_96eefc2ef03c --> 0f00c7dd_5eba_f1f8_c559_a99431086500
  8d35eaf2_a542_cfd4_fa1a_fafca0f02686["vitest"]
  926e6cce_75a1_b49e_a5e8_96eefc2ef03c --> 8d35eaf2_a542_cfd4_fa1a_fafca0f02686
  style 926e6cce_75a1_b49e_a5e8_96eefc2ef03c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import chalk from 'chalk';
import { assert, expect, test } from 'vitest';
import { wrapParam } from '../src/cli/validations/common';

test('wrapParam', () => {
	expect(wrapParam('password', 'password123', false, 'secret')).toBe(`    [${chalk.green('✓')}] password: '*****'`);
	expect(wrapParam('url', 'mysql://user:password@localhost:3306/database', false, 'url')).toBe(
		`    [${chalk.green('✓')}] url: 'mysql://user:****@localhost:3306/database'`,
	);
	expect(wrapParam('url', 'singlestore://user:password@localhost:3306/database', false, 'url')).toBe(
		`    [${chalk.green('✓')}] url: 'singlestore://user:****@localhost:3306/database'`,
	);
	expect(wrapParam('url', 'postgresql://user:password@localhost:5432/database', false, 'url')).toBe(
		`    [${chalk.green('✓')}] url: 'postgresql://user:****@localhost:5432/database'`,
	);
});

Domain

Dependencies

Frequently Asked Questions

What does wrap-param.test.ts do?
wrap-param.test.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does wrap-param.test.ts depend on?
wrap-param.test.ts imports 4 module(s): chalk, common.ts, vitest, wrapParam.
Where is wrap-param.test.ts in the architecture?
wrap-param.test.ts is located at drizzle-kit/tests/wrap-param.test.ts (domain: DrizzleORM, directory: drizzle-kit/tests).

Analyze Your Own Codebase

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

Try Supermodel Free