feat(challenge25): extends Nx custom library

This commit is contained in:
thomas
2023-06-19 22:09:54 +02:00
parent bcf44956f9
commit c9efdea85e
48 changed files with 333 additions and 35 deletions

View File

@@ -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();
});
});