Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonbcampos/5c3ae6686eea5836b531d59eede517de to your computer and use it in GitHub Desktop.
Save jonbcampos/5c3ae6686eea5836b531d59eede517de to your computer and use it in GitHub Desktop.
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('simple-schematic', () => {
it('works', () => {
const runner = new SchematicTestRunner('schematics', collectionPath);
const tree = runner.runSchematic('simple-schematic', {}, Tree.empty());
expect(tree.files).toEqual([]);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment