File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/@tailwindcss-postcss/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ describe('concurrent builds', () => {
378
378
} )
379
379
afterEach ( ( ) => rm ( dir , { recursive : true , force : true } ) )
380
380
381
- test ( 'the current working directory is used by default ' , async ( ) => {
381
+ test ( 'does experience a race-condition when calling the plugin two times for the same change ' , async ( ) => {
382
382
const spy = vi . spyOn ( process , 'cwd' )
383
383
spy . mockReturnValue ( dir )
384
384
@@ -401,6 +401,8 @@ describe('concurrent builds', () => {
401
401
402
402
expect ( result ) . toContain ( '.underline' )
403
403
404
+ // Ensure that the mtime is updated
405
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 100 ) )
404
406
await writeFile (
405
407
path . join ( dir , 'dependency.css' ) ,
406
408
css `
You can’t perform that action at this time.
0 commit comments