diff --git a/tests/e2e/tests/packages/webpack/server.ts b/tests/e2e/tests/packages/webpack/server.ts index 38c844efa847..4b1248464a72 100644 --- a/tests/e2e/tests/packages/webpack/server.ts +++ b/tests/e2e/tests/packages/webpack/server.ts @@ -1,15 +1,13 @@ import {normalize} from 'path'; import {createProjectFromAsset} from '../../../utils/assets'; import {exec} from '../../../utils/process'; -import {expectFileSizeToBeUnder, expectFileToMatch} from '../../../utils/fs'; +import {expectFileToMatch} from '../../../utils/fs'; export default function(skipCleaning: () => void) { return Promise.resolve() .then(() => createProjectFromAsset('webpack/test-server-app')) .then(() => exec(normalize('node_modules/.bin/webpack'), '-p')) - .then(() => expectFileSizeToBeUnder('dist/app.main.js', 420000)) - .then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 10000)) .then(() => expectFileToMatch('dist/app.main.js', new RegExp('.bootstrapModuleFactory')) .then(() => expectFileToMatch('dist/app.main.js',