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] |
||
|---|---|---|
| .. | ||
| config.test.ts | ||
| core-as-postcss-plugin.test.ts | ||
| index.test.ts | ||
| multi-root.test.ts | ||
| next.test.ts | ||
| plugins.test.ts | ||
| source.test.ts | ||
| url-rewriting.test.ts | ||