@@ -294,12 +294,14 @@ test(
294294 async ( { exec, fs } ) => {
295295 await exec ( 'npx @tailwindcss/upgrade -c tailwind.config.js' )
296296
297- await fs . expectFileToContain ( 'src/index.html' , html `
298- <div class= "flex" > </ div>
299- ` )
300- await fs . expectFileToContain ( 'src/other.html' , html `
301- <div class= "tw:flex" > </ div>
302- ` )
297+ expect ( await fs . dumpFiles ( './src/**/*.html' ) ) . toMatchInlineSnapshot ( `
298+ "
299+ --- ./src/index.html ---
300+ <div class="flex"></div>
301+
302+ --- ./src/other.html ---
303+ <div class="tw:flex></div>"
304+ ` )
303305 } ,
304306)
305307
@@ -332,19 +334,14 @@ test(
332334 async ( { exec, fs } ) => {
333335 await exec ( 'npx @tailwindcss/upgrade -c tailwind.config.js' )
334336
335- await fs . expectFileToContain (
336- 'src/index.html' ,
337- html `
338- <div class= "tw:bg-linear-to-t" > </div>
339- ` ,
340- )
337+ expect ( await fs . dumpFiles ( './src/**/*.html' ) ) . toMatchInlineSnapshot ( `
338+ "
339+ --- ./src/index.html ---
340+ <div class="tw:bg-linear-to-t/div>
341341
342- await fs . expectFileToContain (
343- 'src/other.html' ,
344- html `
345- <div class= "bg-gradient-to-t" > </div>
346- ` ,
347- )
342+ --- ./src/other.html ---
343+ <div class="bg-gradient-to-t"></div>"
344+ ` )
348345 } ,
349346)
350347
0 commit comments