tailwindcss/integrations/postcss
Robin Malfait 52f94c74bb
Improve codebase quality (#19999)
Small PR that improves the overall quality of the codebase. It's a bit
of everything:

1. Using correct variants for the variants we are testing
2. Use `@reference` instead of `@import` in a test, testing the
`@reference` according to the test name
3. Use `using` for Vitest related mocks. They have a `Symbol.dispose`
implemented, so we can don't have to restore mocks ourselves (right now,
some of them are not cleaned up at all).
4. Updated deprecated `.toThrowError` with `.toThrow` APIs

## Test plan

Everything still passes.

[ci-all]
2026-04-30 23:32:37 +02:00
..
config.test.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00
core-as-postcss-plugin.test.ts Improve codebase quality (#19999) 2026-04-30 23:32:37 +02:00
index.test.ts Fix failing postcss integration test (#19436) 2025-12-12 09:38:08 -05:00
multi-root.test.ts Make @reference emit variable fallbacks instead of CSS variable declarations (#16774) 2025-02-25 11:36:43 +01:00
next.test.ts chore: fix some typos in comments (#19475) 2025-12-22 13:09:19 +00:00
plugins.test.ts Make @reference emit variable fallbacks instead of CSS variable declarations (#16774) 2025-02-25 11:36:43 +01:00
source.test.ts Use @layer properties for @property polyfills (#17506) 2025-04-02 18:16:28 +02:00
url-rewriting.test.ts Allow users to disable url rewriting in the PostCSS plugin (#18321) 2025-07-30 10:35:10 -04:00