test(ivy): ngcc - test compiling a CLI generated project (#26403)

This integration test was created from a vanilla CLI generated
project with the following modifications:

* remove `PercentPipe` usage from `app.component.html`
  - these are not yet supported by ivy
* changed `ng test` in `package.json` to only to `ng build`
  - right now we can only confirm that the app will build
* hard-code `ngDevMode` in `index.html`
  - the CLI does not yet set this correctly

PR Close #26403
This commit is contained in:
Pete Bacon Darwin
2018-10-05 16:45:18 +01:00
committed by Kara Erickson
parent a64859b4bc
commit bc68b592b1
30 changed files with 4367 additions and 1 deletions

View File

@ -0,0 +1,19 @@
import { AppPage } from './app.po';
describe('cli-hello-world App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
it('the percent pipe should work', () => {
page.navigateTo();
expect(page.getPipeContent()).toEqual('100 % awesome');
})
});