Skip to content

Testing

The testing option enables linting support for test runners, test environments, and testing-oriented utilities.

IntegrationEnumUse It WhenAuto-Detected
VitestTesting.VitestThe project uses Vitest.Yes
PlaywrightTesting.PlaywrightThe project uses Playwright.Yes
JestTesting.JestThe project uses Jest.No
CypressTesting.CypressThe project uses Cypress.No
Testing LibraryTesting.TestingLibraryThe project uses Testing Library.No
Jest DOMTesting.JestDomThe project uses Testing Library with Jest DOM assertions.No
import { defineConfig, Testing } from '@santi020k/eslint-config-basic'
export default await defineConfig({
testing: [Testing.Vitest, Testing.Playwright]
})
  • Testing integrations can be mixed as needed.
  • Detection covers the most common tools, but manual selection is still available for every supported integration.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.