Skip to content

test: add E2E test for only ES2015 ngcc with differential loading #15322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/legacy-cli/e2e/tests/ivy/ngcc-es2015-only.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import { ng } from '../../utils/process';
import { createProject } from '../../utils/project';

export default async function() {
// Create a new project to avoid polluting node modules for other tests
await createProject('ivy-project-ngcc', '--enable-ivy');

const { stderr, stdout } = await ng('build', '--prod');

if (stdout.includes('as esm5') || stderr.includes('as esm5')) {
throw new Error('ngcc should not process ES5 during differential loading builds.');
}
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11280,7 +11280,7 @@ ts-node@^5.0.0:
source-map-support "^0.5.3"
yn "^2.0.0"

tslib@^1.10.0:
tslib@1.10.0, tslib@^1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
Expand Down