@@ -96,7 +96,7 @@ describe("Plugin", () => {
9696 } ) ;
9797 } ) ;
9898
99- forEachWebpackVersion ( [ "4.44.2 " ] , ( { it, webpackCompile } ) => {
99+ forEachWebpackVersion ( [ "4" ] , ( { it, webpackCompile } ) => {
100100 // Webpack 5 doesn't support `jsonpFunction` option
101101 it ( "should support webpack config with custom `jsonpFunction` name" , async ( ) => {
102102 const config = makeWebpackConfig ( {
@@ -184,7 +184,7 @@ describe("Plugin", () => {
184184 describe ( "reportTitle" , ( ) => {
185185 it ( "should have a sensible default" , async ( ) => {
186186 const config = makeWebpackConfig ( ) ;
187- await webpackCompile ( config , "4.44.2 " ) ;
187+ await webpackCompile ( config , "4" ) ;
188188 const generatedReportTitle = await getTitleFromReport ( ) ;
189189 expect ( generatedReportTitle ) . toMatch (
190190 / ^ w e b p a c k - b u n d l e - a n a l y z e r \[ .* a t \d { 2 } : \d { 2 } \] / u,
@@ -198,7 +198,7 @@ describe("Plugin", () => {
198198 reportTitle,
199199 } ,
200200 } ) ;
201- await webpackCompile ( config , "4.44.2 " ) ;
201+ await webpackCompile ( config , "4" ) ;
202202 const generatedReportTitle = await getTitleFromReport ( ) ;
203203 expect ( generatedReportTitle ) . toBe ( reportTitle ) ;
204204 } ) ;
@@ -210,7 +210,7 @@ describe("Plugin", () => {
210210 reportTitle : ( ) => reportTitleResult ,
211211 } ,
212212 } ) ;
213- await webpackCompile ( config , "4.44.2 " ) ;
213+ await webpackCompile ( config , "4" ) ;
214214 const generatedReportTitle = await getTitleFromReport ( ) ;
215215 expect ( generatedReportTitle ) . toBe ( reportTitleResult ) ;
216216 } ) ;
@@ -227,7 +227,7 @@ describe("Plugin", () => {
227227
228228 let error = null ;
229229 try {
230- await webpackCompile ( config , "4.44.2 " ) ;
230+ await webpackCompile ( config , "4" ) ;
231231 } catch ( err ) {
232232 error = err ;
233233 }
@@ -239,23 +239,23 @@ describe("Plugin", () => {
239239 describe ( "compressionAlgorithm" , ( ) => {
240240 it ( "should default to gzip" , async ( ) => {
241241 const config = makeWebpackConfig ( { analyzerOpts : { } } ) ;
242- await webpackCompile ( config , "4.44.2 " ) ;
242+ await webpackCompile ( config , "4" ) ;
243243 await expectValidReport ( { parsedSize : 1317 , gzipSize : 341 } ) ;
244244 } ) ;
245245
246246 it ( "should support gzip" , async ( ) => {
247247 const config = makeWebpackConfig ( {
248248 analyzerOpts : { compressionAlgorithm : "gzip" } ,
249249 } ) ;
250- await webpackCompile ( config , "4.44.2 " ) ;
250+ await webpackCompile ( config , "4" ) ;
251251 await expectValidReport ( { parsedSize : 1317 , gzipSize : 341 } ) ;
252252 } ) ;
253253
254254 it ( "should support brotli" , async ( ) => {
255255 const config = makeWebpackConfig ( {
256256 analyzerOpts : { compressionAlgorithm : "brotli" } ,
257257 } ) ;
258- await webpackCompile ( config , "4.44.2 " ) ;
258+ await webpackCompile ( config , "4" ) ;
259259 await expectValidReport ( {
260260 gzipSize : undefined ,
261261 parsedSize : 1317 ,
@@ -268,7 +268,7 @@ describe("Plugin", () => {
268268 const config = makeWebpackConfig ( {
269269 analyzerOpts : { compressionAlgorithm : "zstd" } ,
270270 } ) ;
271- await webpackCompile ( config , "4.44.2 " ) ;
271+ await webpackCompile ( config , "4" ) ;
272272 await expectValidReport ( {
273273 parsedSize : 1317 ,
274274 gzipSize : undefined ,
0 commit comments