ConfigDeck
Back to Generator

vitest.config.ts

Generate a Vitest config with test environment, coverage, and setup files.

Preset

Test Environment

Configure the environment in which tests run.

Environment

Test runtime environment. Use jsdom or happy-dom for frontend tests that need DOM.

Files & Matching

Configure test file discovery patterns and paths.

Setup file to run before each test file.

Coverage

Configure code coverage measurement.