import { cleanup, configure } from '@testing-library/react'
import { afterEach } from 'vitest'

configure({ reactStrictMode: false })

afterEach(async () => {
  cleanup()
  // useEditor destroys on the next tick — wait so the next test does not see stale DOM
  await new Promise((resolve) => setTimeout(resolve, 10))
})
