Skip to content

Commit 599d659

Browse files
filipesilvahansl
authored andcommitted
tests: update AoTPlugin test (angular#4834)
This fix should be removed once the bundle size drops down, which will cause the test to fail. /cc @hansl
1 parent d2bef98 commit 599d659

File tree

1 file changed

+6
-1
lines changed
  • tests/e2e/tests/packages/webpack

1 file changed

+6
-1
lines changed

tests/e2e/tests/packages/webpack/weird.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ export default function(skipCleaning: () => void) {
1515
.then(() => expectFileToExist('dist/0.app.main.js'))
1616
.then(() => expectFileToExist('dist/1.app.main.js'))
1717
.then(() => expectFileToExist('dist/2.app.main.js'))
18-
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 410000))
18+
// 4.0.0-beta.8 added roughly 80kb extra size (401kb to 480kb).
19+
// For now we have fixed the test below, but when the size drops down again replace the
20+
// two lines below with the commented one.
21+
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 481000))
22+
.then(() => expectToFail(() => expectFileSizeToBeUnder('dist/app.main.js', 410000)))
23+
// .then(() => expectFileSizeToBeUnder('dist/app.main.js', 410000))
1924
.then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 40000))
2025

2126
// Skip code generation and rebuild.

0 commit comments

Comments
 (0)