mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
26 lines
574 B
TypeScript
26 lines
574 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
{
|
|
name: 'a-vitest-plugin-that-changes-config',
|
|
config: () => ({
|
|
test: {
|
|
setupFiles: [
|
|
'./setupFiles/add-something-to-global.ts',
|
|
'setupFiles/without-relative-path-prefix.ts',
|
|
],
|
|
},
|
|
}),
|
|
},
|
|
],
|
|
test: {
|
|
globalSetup: [
|
|
'./globalSetup/default-export.js',
|
|
'./globalSetup/named-exports.js',
|
|
'./globalSetup/ts-with-imports.ts',
|
|
'./globalSetup/another-vite-instance.ts',
|
|
],
|
|
},
|
|
})
|