### Bug Report or Feature Request (mark with an `x`) ``` - [x] bug report -> please search issues before submitting - [ ] feature request ``` ### Area ``` - [x] devkit - [ ] schematics ``` ### Versions <!-- Output from: `node --version` and `npm --version`. Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra? High Sierra?) --> Ubuntu ### Repro steps <!-- Simple steps to reproduce this bug. Please include: commands run, packages added, related code changes. A link to a sample repo would help too. --> ```ts const schematicRunner = new SchematicTestRunner( collectionName, pathToCollectionJson ); const spy = spyOn(schematicRunner.logger, 'info'); schematicRunner .callRule((host: Tree, context: SchematicContext) => { context.logger.info('Hello world!'); , Tree.empty()) .subscribe(result => { expect(spy).toHaveBeenCalledWith('Hello world!'); }); ``` ### The log given by the failure <!-- Normally this include a stack trace and some more information. --> Expected spy to have been called 'Hello world!' but was not called. ### Desired functionality <!-- What would like to see implemented? What is the usecase? --> The SchematicTestRunner logger should be used by default and the test should pass ### Mention any other details that might be useful <!-- Please include a link to the repo if this is related to an OSS project. --> Any unit tests which test rules
Bug Report or Feature Request (mark with an
x)Area
Versions
Ubuntu
Repro steps
The log given by the failure
Expected spy to have been called 'Hello world!' but was not called.
Desired functionality
The SchematicTestRunner logger should be used by default and the test should pass
Mention any other details that might be useful
Any unit tests which test rules