chore(api): 🔧 Update e2e test configuration in vitest.e2e.config.ts
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
6f907450a3
commit
5678856bd0
1 changed files with 41 additions and 0 deletions
41
services/api/vitest.e2e.config.ts
Normal file
41
services/api/vitest.e2e.config.ts
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import swc from 'unplugin-swc';
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
swc.vite({
|
||||
module: { type: 'es6' },
|
||||
jsc: {
|
||||
parser: {
|
||||
syntax: 'typescript',
|
||||
decorators: true,
|
||||
},
|
||||
transform: {
|
||||
legacyDecorator: true,
|
||||
decoratorMetadata: true,
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
testTimeout: 60000,
|
||||
pool: 'forks',
|
||||
poolOptions: {
|
||||
forks: {
|
||||
singleFork: true,
|
||||
},
|
||||
},
|
||||
include: ['test/**/*.e2e-spec.ts'],
|
||||
exclude: ['node_modules', 'dist'],
|
||||
setupFiles: ['./test/vitest-e2e-setup.ts'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'@test': path.resolve(__dirname, './test'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue