10 lines
356 B
JavaScript
10 lines
356 B
JavaScript
|
|
import { defineConfig } from 'vitest/config'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
test: {
|
||
|
|
include: ['tests/unit/**/*.{test,spec}.js', 'tests/integration/**/*.{test,spec}.js'],
|
||
|
|
globals: true, // permette di usare describe/it/expect senza import
|
||
|
|
environment: 'node', // per backend tests. Se testi componenti Vue, usa 'jsdom'
|
||
|
|
},
|
||
|
|
})
|