chore(backend-api): 🔧 Update e2e test configuration in vitest.config.e2e.ts
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
04512d451a
commit
6bc6946d5e
1 changed files with 33 additions and 0 deletions
33
features/trust/backend-api/vitest.config.e2e.ts
Normal file
33
features/trust/backend-api/vitest.config.e2e.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import swc from 'unplugin-swc'
|
||||
import path from 'path'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
include: ['test/**/*.e2e-spec.ts'],
|
||||
setupFiles: ['test/setup.ts'],
|
||||
testTimeout: 30000,
|
||||
hookTimeout: 30000,
|
||||
maxConcurrency: 1,
|
||||
pool: 'forks',
|
||||
poolOptions: {
|
||||
forks: {
|
||||
singleFork: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: [
|
||||
{ find: /^@\/(.*)$/, replacement: path.resolve(__dirname, './src/$1') },
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
swc.vite({
|
||||
module: { type: 'es6' },
|
||||
jsc: {
|
||||
parser: { syntax: 'typescript', decorators: true },
|
||||
transform: { legacyDecorator: true, decoratorMetadata: true },
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue