File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
tests/e2e/tests/packages/webpack Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { normalize } from 'path' ;
2
2
import { createProjectFromAsset } from '../../../utils/assets' ;
3
3
import { exec } from '../../../utils/process' ;
4
- import { expectFileSizeToBeUnder , expectFileToMatch } from '../../../utils/fs' ;
4
+ import { expectFileToMatch } from '../../../utils/fs' ;
5
5
6
6
7
7
export default function ( skipCleaning : ( ) => void ) {
8
8
return Promise . resolve ( )
9
9
. then ( ( ) => createProjectFromAsset ( 'webpack/test-server-app' ) )
10
10
. then ( ( ) => exec ( normalize ( 'node_modules/.bin/webpack' ) , '-p' ) )
11
- . then ( ( ) => expectFileSizeToBeUnder ( 'dist/app.main.js' , 420000 ) )
12
- . then ( ( ) => expectFileSizeToBeUnder ( 'dist/0.app.main.js' , 10000 ) )
13
11
. then ( ( ) => expectFileToMatch ( 'dist/app.main.js' ,
14
12
new RegExp ( '.bootstrapModuleFactory' ) )
15
13
. then ( ( ) => expectFileToMatch ( 'dist/app.main.js' ,
You can’t perform that action at this time.
0 commit comments