Skip to content
Prev Previous commit
Next Next commit
Remove leftover console.error reset
  • Loading branch information
philipp-spiess committed Sep 10, 2024
commit 1e46f208c65d939fefe132f47b5c1caf419307b0
14 changes: 2 additions & 12 deletions integrations/postcss/core-as-postcss-plugin.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { afterEach, beforeEach } from 'node:test'
import { expect, vi } from 'vitest'
import { expect } from 'vitest'
import { css, js, json, test } from '../utils'

const variantConfig = {
Expand Down Expand Up @@ -30,16 +29,7 @@ const variantConfig = {
},
}

let originalConsoleError: typeof console.error
beforeEach(() => {
originalConsoleError = console.error
console.error = vi.fn()
})
afterEach(() => {
console.error = originalConsoleError
})

for (let variant of ['string', 'ESM', 'CJS']) {
for (let variant of Object.keys(variantConfig)) {
test(
`can not use \`tailwindcss\` as a postcss module (${variant})`,
{
Expand Down