import { forEachCli, runCreateWorkspace, uniq } from './utils'; forEachCli(() => { describe('create-nx-workspace', () => { it('should be able to create an empty workspace', () => { const wsName = uniq('empty'); runCreateWorkspace(wsName, { preset: 'empty', }); }); it('should be able to create an angular workspace', () => { const wsName = uniq('angular'); const appName = uniq('app'); runCreateWorkspace(wsName, { preset: 'angular', style: 'css', appName, }); }); it('should be able to create an react workspace', () => { const wsName = uniq('react'); const appName = uniq('app'); runCreateWorkspace(wsName, { preset: 'react', style: 'css', appName, }); }); it('should be able to create an next workspace', () => { const wsName = uniq('next'); const appName = uniq('app'); runCreateWorkspace(wsName, { preset: 'next', style: 'css', appName, }); }); it('should be able to create an web-components workspace', () => { const wsName = uniq('web-components'); const appName = uniq('app'); runCreateWorkspace(wsName, { preset: 'web-components', style: 'css', appName, }); }); it('should be able to create an angular + nest workspace', () => { const wsName = uniq('angular-nest'); const appName = uniq('app'); runCreateWorkspace(wsName, { preset: 'angular-nest', style: 'css', appName, }); }); it('should be able to create an react + express workspace', () => { const wsName = uniq('react-express'); const appName = uniq('app'); runCreateWorkspace(wsName, { preset: 'react-express', style: 'css', appName, }); }); }); });