Skip to content

Commit 5273e76

Browse files
Copilotcyanzhong
andauthored
Add vitest config to prevent deploy side-effect (#44)
* Initial plan * Decouple build from lint/test to avoid deploy on validation Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com> * Add vitest.config.mts to prevent deploy side-effect during tests Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
1 parent 6a02f05 commit 5273e76

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

vitest.config.mts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'vitest/config';
2+
import mainPackage from './package.json' with { type: 'json' };
3+
4+
export default defineConfig({
5+
define: {
6+
__PKG_VERSION__: JSON.stringify(mainPackage.version),
7+
},
8+
});

0 commit comments

Comments
 (0)