Skip to content
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

tests: update AoTPlugin test #4834

Merged
merged 1 commit into from
Feb 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/e2e/tests/packages/webpack/weird.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export default function(skipCleaning: () => void) {
.then(() => expectFileToExist('dist/0.app.main.js'))
.then(() => expectFileToExist('dist/1.app.main.js'))
.then(() => expectFileToExist('dist/2.app.main.js'))
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 410000))
// 4.0.0-beta.8 added roughly 80kb extra size (401kb to 480kb).
// For now we have fixed the test below, but when the size drops down again replace the
// two lines below with the commented one.
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 481000))
.then(() => expectToFail(() => expectFileSizeToBeUnder('dist/app.main.js', 410000)))
// .then(() => expectFileSizeToBeUnder('dist/app.main.js', 410000))
.then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 40000))

// Skip code generation and rebuild.
Expand Down