Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions vitest.config.mts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Is this file being used out of the box?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes — vitest automatically discovers vitest.config.{ts,mts,js,...} in the project root before falling back to vite.config.*. No extra flags or package.json changes needed. The test script stays as vitest run and it picks up vitest.config.mts on its own.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
import mainPackage from './package.json' with { type: 'json' };

export default defineConfig({
define: {
__PKG_VERSION__: JSON.stringify(mainPackage.version),
},
});