import { Tree } from '@angular-devkit/schematics'; import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import * as path from 'path'; const collectionPath = path.join(__dirname, '../collection.json'); describe('@unilygrouplimited/angular-sdk', () => { beforeEach(function () { jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; }); it('works', async () => { const runner = new SchematicTestRunner('schematics', collectionPath); const tree = await runner.runSchematic('new-mfe', { 'name': 'test', 'prefix': 'pre', 'port': '4201' }, Tree.empty()); console.log(tree.files.length); expect(tree.files).toHaveSize(47); }); });