@terminus/ngx-tools
Version:
[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github
24 lines (23 loc) • 828 B
TypeScript
import { TestBed } from '@angular/core/testing';
/**
* Define the structure of the options object passed to `configureTestBed`
*/
export declare type TestBedCompilerOptions = Partial<{
providers: any[];
useJit: boolean;
preserveWhitespaces: boolean;
}>;
/**
* Define the structure of the function passed to `configureTestBed`
*
* @param testBed - The TestBed instance
*/
export declare type ConfigureTestBedFn = (testBed: typeof TestBed) => void;
/**
* Create an instance of the TestBed and compile components
*
* @param configureFn - The configuration function for the TestBed
* @param compilerOptions
* @returns A promise-wrapped TestBed instance
*/
export declare function configureTestBedWhitespace(configureFn: ConfigureTestBedFn, compilerOptions?: TestBedCompilerOptions): Promise<typeof TestBed>;