Skip to main content
Module

x/typeorm/test/utils/test-utils.ts

Forked from https://github.com/typeorm/typeorm
Latest
import * as typeorm from "https://deno.land/x/typeorm@v0.2.23-rc10/test/utils/test-utils.ts";

Functions

Closes testing connections if they are connected.

Creates a testing connections based on the configuration in the ormconfig.json and given options that can override some of its configuration for the test-specific use case.

Generates random text array with custom length.

Loads test connection options from ormconfig.json file.

Reloads all databases for all given connections.

Creates a testing connection options for the given driver type based on the configuration in the ormconfig.json and given options that can override some of its configuration for the test-specific use case.

Creates a testing connections options based on the configuration in the ormconfig.json and given options that can override some of its configuration for the test-specific use case.

Interfaces

Options used to create a connection for testing purposes.

Type Aliases

Interface in which data is stored in ormconfig.json of the project.