import swc from 'unplugin-swc'; import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'node', }, plugins: [ swc.vite({ jsc: { parser: { syntax: 'typescript', decorators: true, }, transform: { decoratorMetadata: true, legacyDecorator: true, }, target: 'es2022', }, module: { type: 'nodenext', }, }), ], });