Table of Contents

Vitest’s IDE integration relies in general on the vitest.config.* files.

With the crafty ide command, vitest.config.mjs is generated to be read by your IDE.

Note that vitest.config.mjs is generated by Crafty, alternative Vitest config filenames are removed, and crafty test ignores official vitest.config.* files.

IDE plugins

  • Visual Studio Code: Use a Vitest extension that can discover vitest.config.mjs, or configure vitest.rootConfig manually when your extension requires it.