nx/e2e/schematics/ngrx.test.ts
Thomas Burleson 4edc8e6c8b feat(schematics): use @ngrx/schematics
* ngrx collection now extends @ngrx/schematics
* modify the nrwl `ngrx` schematic to use `@ngrx/schematics` to generate the initial source for actions, reducers, and effects
* modify the generated source to conform to Nx standards
* generate init and interface files
* remove template files for action, effect, and reducer scaffolding
* modify collection to extend `@ngrx/schematics` so the ngrx commands are also easily accessible
* inject dataloaded enums into action class
* configure nx workspace devDep on @ngrx/schematics version
* override ngrx effects.spec.ts with nx templated version

fixes #174.
2018-03-30 19:47:29 -04:00

22 lines
447 B
TypeScript

import { newApp, newProject, runCLI } from '../utils';
describe('ngrx', () => {
it(
'should work',
() => {
newProject();
newApp('myapp');
runCLI(
'generate ngrx app --module=apps/myapp/src/app/app.module.ts --root --collection=@nrwl/schematics'
);
console.log('build');
console.log(runCLI('build'));
console.log('test');
runCLI('test --single-run');
},
1000000
);
});