@@ -77,7 +77,7 @@ describe("JsonMinimizerPlugin", () => {
7777 {
7878 loader : path . resolve (
7979 __dirname ,
80- "./helpers/emitAssetInChildCompilationLoader"
80+ "./helpers/emitAssetInChildCompilationLoader" ,
8181 ) ,
8282 } ,
8383 ] ,
@@ -105,19 +105,19 @@ describe("JsonMinimizerPlugin", () => {
105105 const statsErrors = getErrors ( stats ) ;
106106
107107 expect ( statsErrors [ 0 ] ) . toContain (
108- `Error: "broken-json-syntax.json" in "/test/fixtures" from Json Minimizer:`
108+ `Error: "broken-json-syntax.json" in "/test/fixtures" from Json Minimizer:` ,
109109 ) ;
110110
111111 if (
112- process . version . startsWith ( "v19 " ) ||
113- process . version . startsWith ( "v20 " )
112+ process . version . startsWith ( "v20 " ) ||
113+ process . version . startsWith ( "v21 " )
114114 ) {
115115 expect ( statsErrors [ 0 ] ) . toContain (
116- `SyntaxError: Expected property name or '}' in JSON at position 4`
116+ `SyntaxError: Expected property name or '}' in JSON at position 4` ,
117117 ) ;
118118 } else {
119119 expect ( statsErrors [ 0 ] ) . toContain (
120- `SyntaxError: Unexpected token s in JSON at position 4`
120+ `SyntaxError: Unexpected token s in JSON at position 4` ,
121121 ) ;
122122 }
123123
@@ -149,7 +149,7 @@ describe("JsonMinimizerPlugin", () => {
149149 expect ( newStats . compilation . emittedAssets . size ) . toBe ( 0 ) ;
150150
151151 expect ( readAssets ( compiler , newStats , / \. j s o n $ / i) ) . toMatchSnapshot (
152- "assets"
152+ "assets" ,
153153 ) ;
154154 expect ( getWarnings ( newStats ) ) . toMatchSnapshot ( "errors" ) ;
155155 expect ( getErrors ( newStats ) ) . toMatchSnapshot ( "warnings" ) ;
@@ -183,7 +183,7 @@ describe("JsonMinimizerPlugin", () => {
183183 expect ( newStats . compilation . emittedAssets . size ) . toBe ( 0 ) ;
184184
185185 expect ( readAssets ( compiler , newStats , / \. j s o n $ / i) ) . toMatchSnapshot (
186- "assets"
186+ "assets" ,
187187 ) ;
188188 expect ( getWarnings ( newStats ) ) . toMatchSnapshot ( "errors" ) ;
189189 expect ( getErrors ( newStats ) ) . toMatchSnapshot ( "warnings" ) ;
@@ -217,7 +217,7 @@ describe("JsonMinimizerPlugin", () => {
217217 expect ( newStats . compilation . emittedAssets . size ) . toBe ( 0 ) ;
218218
219219 expect ( readAssets ( compiler , newStats , / \. j s o n $ / i) ) . toMatchSnapshot (
220- "assets"
220+ "assets" ,
221221 ) ;
222222 expect ( getWarnings ( newStats ) ) . toMatchSnapshot ( "errors" ) ;
223223 expect ( getErrors ( newStats ) ) . toMatchSnapshot ( "warnings" ) ;
@@ -254,7 +254,7 @@ describe("JsonMinimizerPlugin", () => {
254254 expect ( newStats . compilation . emittedAssets . size ) . toBe ( 2 ) ;
255255
256256 expect ( readAssets ( compiler , newStats , / \. j s o n $ / i) ) . toMatchSnapshot (
257- "assets"
257+ "assets" ,
258258 ) ;
259259 expect ( getWarnings ( newStats ) ) . toMatchSnapshot ( "errors" ) ;
260260 expect ( getErrors ( newStats ) ) . toMatchSnapshot ( "warnings" ) ;
@@ -288,7 +288,7 @@ describe("JsonMinimizerPlugin", () => {
288288 expect ( newStats . compilation . emittedAssets . size ) . toBe ( 6 ) ;
289289
290290 expect ( readAssets ( compiler , newStats , / \. j s o n $ / i) ) . toMatchSnapshot (
291- "assets"
291+ "assets" ,
292292 ) ;
293293 expect ( getWarnings ( newStats ) ) . toMatchSnapshot ( "errors" ) ;
294294 expect ( getErrors ( newStats ) ) . toMatchSnapshot ( "warnings" ) ;
0 commit comments