From dd9f6562747395c680a4d9a5a4ba55e01d4387b1 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 12 Dec 2025 09:38:08 -0500 Subject: [PATCH] Fix failing `postcss` integration test (#19436) This is what's causing the postcss test in #19434 to fail wanted to test this in isolation without the version bumps --- integrations/postcss/core-as-postcss-plugin.test.ts | 2 +- integrations/postcss/index.test.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/integrations/postcss/core-as-postcss-plugin.test.ts b/integrations/postcss/core-as-postcss-plugin.test.ts index 17545fea3..0856210fe 100644 --- a/integrations/postcss/core-as-postcss-plugin.test.ts +++ b/integrations/postcss/core-as-postcss-plugin.test.ts @@ -48,7 +48,7 @@ describe.each(Object.keys(variantConfig))('%s', (variant) => { }, }, async ({ exec, expect }) => { - expect( + await expect( exec('pnpm postcss src/index.css --output dist/out.css', undefined, { ignoreStdErr: true }), ).rejects.toThrowError( `It looks like you're trying to use \`tailwindcss\` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install \`@tailwindcss/postcss\` and update your PostCSS configuration.`, diff --git a/integrations/postcss/index.test.ts b/integrations/postcss/index.test.ts index 08ea852f9..80025f945 100644 --- a/integrations/postcss/index.test.ts +++ b/integrations/postcss/index.test.ts @@ -698,9 +698,7 @@ test(
`) - await process.onStderr((message) => - message.includes('does-not-exist is not exported from package'), - ) + await process.onStderr((message) => message.includes('"./does-not-exist" is not exported')) expect(await fs.dumpFiles('dist/*.css')).toMatchInlineSnapshot(` " @@ -743,9 +741,7 @@ test( `, ) - await process.onStderr((message) => - message.includes('does-not-exist is not exported from package'), - ) + await process.onStderr((message) => message.includes('"./does-not-exist" is not exported')) expect(await fs.dumpFiles('dist/*.css')).toMatchInlineSnapshot(` "