mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
e0db372285
* fix(repo): require pnpm v9 with engineStrict set * fix: bump node version to v20 LTS * fix(repo): apply formatting and importing sorting required for CI to pass
22 lines
392 B
TypeScript
22 lines
392 B
TypeScript
/// <reference types="vitest" />
|
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
return {
|
|
root: __dirname,
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['**/*.spec.ts'],
|
|
cache: {
|
|
dir: '../../node_modules/.vitest',
|
|
},
|
|
},
|
|
define: {
|
|
'import.meta.vitest': mode !== 'production',
|
|
},
|
|
};
|
|
});
|