@nativescript/angular
Advanced tools
Comparing version
{ | ||
"name": "@nativescript/angular", | ||
"version": "20.0.0", | ||
"version": "20.0.1-rc.0", | ||
"homepage": "https://nativescript.org/", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,1 +0,3 @@ | ||
export declare const nsNgPolyfills = true; | ||
declare const nsNgPolyfills = true; | ||
export { nsNgPolyfills }; |
@@ -1,1 +0,83 @@ | ||
export * from './lib/public_api'; | ||
import { LayoutBase } from '@nativescript/core'; | ||
import { TestComponentRenderer, ComponentFixture } from '@angular/core/testing'; | ||
import * as i0 from '@angular/core'; | ||
import { Provider, Type } from '@angular/core'; | ||
import * as i1 from '@nativescript/angular'; | ||
/** | ||
* Get a reference to the fixtures container. | ||
*/ | ||
declare function testingRootView(): LayoutBase; | ||
/** | ||
* A NativeScript based implementation of the TestComponentRenderer. | ||
*/ | ||
declare class NativeScriptTestComponentRenderer extends TestComponentRenderer { | ||
insertRootElement(rootElId: string): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NativeScriptTestComponentRenderer, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<NativeScriptTestComponentRenderer>; | ||
} | ||
/** | ||
* Providers array is exported for cases where a custom module has to be constructed | ||
* to test a particular piece of code. This can happen, for example, if you are trying | ||
* to test dynamic component loading and need to specify an entryComponent for the testing | ||
* module. | ||
*/ | ||
declare const NATIVESCRIPT_TESTING_PROVIDERS: Provider[]; | ||
/** | ||
* NativeScript testing support module. Enables use of TestBed for angular components, directives, | ||
* pipes, and services. | ||
*/ | ||
declare class NativeScriptTestingModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NativeScriptTestingModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<NativeScriptTestingModule, never, never, [typeof i1.NativeScriptModule]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<NativeScriptTestingModule>; | ||
} | ||
/** | ||
* Return a promise that resolves after (durationMs) milliseconds | ||
*/ | ||
declare function promiseWait(durationMs: number): () => Promise<void>; | ||
/** | ||
* Perform basic TestBed environment initialization. Call this once in the main entry point to your tests. | ||
* @deprecated | ||
*/ | ||
declare function nsTestBedInit(): void; | ||
/** | ||
* Helper for configuring a TestBed instance for rendering components for test. Ideally this | ||
* would not be needed, and in truth it's just a wrapper to eliminate some boilerplate. It | ||
* exists because when you need to specify `entryComponents` for a test the setup becomes quite | ||
* a bit more complex than if you're just doing a basic component test. | ||
* | ||
* More about entryComponents complexity: https://github.com/angular/angular/issues/12079 | ||
* | ||
* Use: | ||
* ``` | ||
* beforeEach(nsTestBedBeforeEach([MyComponent,MyFailComponent])); | ||
* ``` | ||
* | ||
* **NOTE*** Remember to pair with {@see nsTestBedAfterEach} | ||
* | ||
* @deprecated | ||
* @param components Any components that you will create during the test | ||
* @param providers Any services your tests depend on | ||
* @param imports Any module imports your tests depend on | ||
* @param entryComponents Any entry components that your tests depend on | ||
*/ | ||
declare function nsTestBedBeforeEach(components: any[], providers?: any[], imports?: any[], entryComponents?: any[]): (done: any) => void; | ||
/** | ||
* Helper for a basic component TestBed clean up. | ||
* @param resetEnv When true the testing environment will be reset | ||
* @param resetFn When resetting the environment, use this init function | ||
* @deprecated | ||
*/ | ||
declare function nsTestBedAfterEach(resetEnv?: boolean, resetFn?: typeof nsTestBedInit): () => void; | ||
/** | ||
* Render a component using the TestBed helper, and return a promise that resolves when the | ||
* ComponentFixture is fully initialized. | ||
* @deprecated | ||
*/ | ||
declare function nsTestBedRender<T>(componentType: Type<T>): Promise<ComponentFixture<T>>; | ||
export { NATIVESCRIPT_TESTING_PROVIDERS, NativeScriptTestComponentRenderer, NativeScriptTestingModule, nsTestBedAfterEach, nsTestBedBeforeEach, nsTestBedInit, nsTestBedRender, promiseWait, testingRootView }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
-100%1020411
-1.9%11
-90.09%10282
-3.89%1
Infinity%