Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrations/postcss/core-as-postcss-plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down
8 changes: 2 additions & 6 deletions integrations/postcss/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,7 @@ test(
<div class="flex underline"></div>
`)

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(`
"
Expand Down Expand Up @@ -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(`
"
Expand Down