feat(bazel): add tests running tests for bazel projects

This commit is contained in:
vsavkin 2017-09-19 09:27:13 -04:00
parent df3c58fe9d
commit a7c25a836a
3 changed files with 19 additions and 1 deletions

View File

@ -41,4 +41,13 @@ describe('application', () => {
expect(runCLI('build')).toContain('main.bundle.js');
});
});
describe('test', () => {
it('should work', () => {
newBazelApp('--collection=@nrwl/bazel');
copyMissingPackages();
runSchematic('@nrwl/bazel:app --name=app');
expect(runCLI('test --single-run')).toContain('Executed 1 of 1 SUCCESS');
});
});
});

View File

@ -27,4 +27,13 @@ describe('angular library', () => {
expect(runCLI('build')).not.toContain('error');
});
});
describe('test', () => {
it('should work', () => {
newBazelApp('--collection=@nrwl/bazel');
copyMissingPackages();
runSchematic('@nrwl/bazel:nglib --name=myLib');
expect(runCLI('test --single-run')).toContain('Executed 0 of 0');
});
});
});

View File

@ -2,4 +2,4 @@
./scripts/link.sh
rm -rf tmp
jest --maxWorkers=1 ./build/e2e/bazel
jest --maxWorkers=1 ./build/e2e/bazel/nglib.test.js