We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4200a1e commit 5a9d1f4Copy full SHA for 5a9d1f4
packages/@tailwindcss-postcss/src/index.test.ts
@@ -378,7 +378,7 @@ describe('concurrent builds', () => {
378
})
379
afterEach(() => rm(dir, { recursive: true, force: true }))
380
381
- test('the current working directory is used by default', async () => {
+ test('does experience a race-condition when calling the plugin two times for the same change', async () => {
382
const spy = vi.spyOn(process, 'cwd')
383
spy.mockReturnValue(dir)
384
@@ -401,6 +401,8 @@ describe('concurrent builds', () => {
401
402
expect(result).toContain('.underline')
403
404
+ // Ensure that the mtime is updated
405
+ await new Promise((resolve) => setTimeout(resolve, 100))
406
await writeFile(
407
path.join(dir, 'dependency.css'),
408
css`
0 commit comments