feat: add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838)
This option will control whether to invoke the new macro tasks when ticking. Close #33799 PR Close #33838
This commit is contained in:

committed by
Miško Hevery

parent
2562a3b1b0
commit
17b862cf82
4
tools/public_api_guard/core/testing.d.ts
vendored
4
tools/public_api_guard/core/testing.d.ts
vendored
@ -134,7 +134,9 @@ export declare type TestModuleMetadata = {
|
||||
aotSummaries?: () => any[];
|
||||
};
|
||||
|
||||
export declare function tick(millis?: number): void;
|
||||
export declare function tick(millis?: number, tickOptions?: {
|
||||
processNewMacroTasksSynchronously: boolean;
|
||||
}): void;
|
||||
|
||||
export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWrapper;
|
||||
export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
|
||||
|
Reference in New Issue
Block a user