mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 22:03:03 -05:00
feat(challenge25): extends Nx custom library
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
|
||||
import { Tree, readProjectConfiguration } from '@nx/devkit';
|
||||
|
||||
import { customLibraryGenerator } from './generator';
|
||||
import { CustomLibraryGeneratorSchema } from './schema';
|
||||
|
||||
describe('custom-library generator', () => {
|
||||
let tree: Tree;
|
||||
const options: CustomLibraryGeneratorSchema = { name: 'test' };
|
||||
|
||||
beforeEach(() => {
|
||||
tree = createTreeWithEmptyWorkspace();
|
||||
});
|
||||
|
||||
it('should run successfully', async () => {
|
||||
await customLibraryGenerator(tree, options);
|
||||
const config = readProjectConfiguration(tree, 'test');
|
||||
expect(config).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user