Skip to content

Commit dd9f656

Browse files
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
1 parent 8198819 commit dd9f656

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

integrations/postcss/core-as-postcss-plugin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe.each(Object.keys(variantConfig))('%s', (variant) => {
4848
},
4949
},
5050
async ({ exec, expect }) => {
51-
expect(
51+
await expect(
5252
exec('pnpm postcss src/index.css --output dist/out.css', undefined, { ignoreStdErr: true }),
5353
).rejects.toThrowError(
5454
`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.`,

integrations/postcss/index.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,7 @@ test(
698698
<div class="flex underline"></div>
699699
`)
700700

701-
await process.onStderr((message) =>
702-
message.includes('does-not-exist is not exported from package'),
703-
)
701+
await process.onStderr((message) => message.includes('"./does-not-exist" is not exported'))
704702

705703
expect(await fs.dumpFiles('dist/*.css')).toMatchInlineSnapshot(`
706704
"
@@ -743,9 +741,7 @@ test(
743741
`,
744742
)
745743

746-
await process.onStderr((message) =>
747-
message.includes('does-not-exist is not exported from package'),
748-
)
744+
await process.onStderr((message) => message.includes('"./does-not-exist" is not exported'))
749745

750746
expect(await fs.dumpFiles('dist/*.css')).toMatchInlineSnapshot(`
751747
"

0 commit comments

Comments
 (0)