feat(bazel): add tests running tests for bazel projects
This commit is contained in:
parent
df3c58fe9d
commit
a7c25a836a
@ -41,4 +41,13 @@ describe('application', () => {
|
|||||||
expect(runCLI('build')).toContain('main.bundle.js');
|
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');
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -27,4 +27,13 @@ describe('angular library', () => {
|
|||||||
expect(runCLI('build')).not.toContain('error');
|
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');
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
./scripts/link.sh
|
./scripts/link.sh
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
jest --maxWorkers=1 ./build/e2e/bazel
|
jest --maxWorkers=1 ./build/e2e/bazel/nglib.test.js
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user